function openGames(t,e){var n,r,i;for(r=document.getElementsByClassName("tabcontent"),n=0;n<r.length;n++)r[n].style.display="none";for(i=document.getElementsByClassName("tabgame"),n=0;n<i.length;n++)i[n].className=i[n].className.replace(" active","");document.getElementById(e).style.display="block",t.currentTarget.className+=" active"}function openDW(t,e){var n,r,i;for(r=document.getElementsByClassName("tabcontentre"),n=0;n<r.length;n++)r[n].style.display="none";for(i=document.getElementsByClassName("tablinks"),n=0;n<i.length;n++)i[n].className=i[n].className.replace(" active","");document.getElementById(e).style.display="block",t.currentTarget.className+=" active"}function openTitle(t,e){var n,r,i;for(r=document.getElementsByClassName("tabcontenttitle"),n=0;n<r.length;n++)r[n].style.display="none";for(i=document.getElementsByClassName("tablinkstitle"),n=0;n<i.length;n++)i[n].className=i[n].className.replace(" active","");document.getElementById(e).style.display="block",t.currentTarget.className+=" active"}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.ActiveStorage={})}(this,function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){var e=i(document.head,'meta[name="'+t+'"]');if(e)return e.getAttribute("content")}function r(t,e){return"string"==typeof t&&(e=t,t=document),s(t.querySelectorAll(e))}function i(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function o(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=t.disabled,i=n.bubbles,o=n.cancelable,s=n.detail,a=document.createEvent("Event");a.initEvent(e,i||!0,o||!0),a.detail=s||{};try{t.disabled=!1,t.dispatchEvent(a)}finally{t.disabled=r}return a}function s(t){return Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}function a(t,e){if(t&&"function"==typeof t[e]){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t[e].apply(t,r)}}function u(){O||(O=!0,document.addEventListener("click",c,!0),document.addEventListener("submit",l),document.addEventListener("ajax:before",f))}function c(t){var e=t.target;"INPUT"!=e.tagName&&"BUTTON"!=e.tagName||"submit"!=e.type||!e.form||D.set(e.form,e)}function l(t){h(t)}function f(t){"FORM"==t.target.tagName&&h(t)}function h(t){var e=t.target;if(e.hasAttribute(A))t.preventDefault();else{var n=new E(e),r=n.inputs;r.length&&(t.preventDefault(),e.setAttribute(A,""),r.forEach(p),n.start(function(t){e.removeAttribute(A),t?r.forEach(m):d(e)}))}}function d(t){var e=D.get(t)||i(t,"input[type=submit], button[type=submit]");if(e){var n=e.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else(e=document.createElement("input")).type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e);D["delete"](t)}function p(t){t.disabled=!0}function m(t){t.disabled=!1}function v(){window.ActiveStorage&&u()}var $=e(function(t){var e;e=function(t){function e(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function n(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function i(t){var r,i,o,s,a,u,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=c;r+=64)e(l,n(t.substring(r-64,r)));for(i=(t=t.substring(r-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<i;r+=1)o[r>>2]|=t.charCodeAt(r)<<(r%4<<3);if(o[r>>2]|=128<<(r%4<<3),r>55)for(e(l,o),r=0;r<16;r+=1)o[r]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),u=parseInt(s[1],16)||0,o[14]=a,o[15]=u,e(l,o),l}function o(t){var n,i,o,s,a,u,c=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=c;n+=64)e(l,r(t.subarray(n-64,n)));for(i=(t=n-64<c?t.subarray(n-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<i;n+=1)o[n>>2]|=t[n]<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(e(l,o),n=0;n<16;n+=1)o[n]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),u=parseInt(s[1],16)||0,o[14]=a,o[15]=u,e(l,o),l}function s(t){var e,n="";for(e=0;e<4;e+=1)n+=p[t>>8*e+4&15]+p[t>>8*e&15];return n}function a(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function u(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}function l(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function f(t,e,n){var r=new Uint8Array(t.byteLength+e.byteLength);return r.set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),n?r:r.buffer}function h(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function d(){this.reset()}var p=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return a(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,u=this.byteLength,c=e(n,u),l=u;return r!==t&&(l=e(r,u)),c>l?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,c,i),s.set(a),o)}}(),d.prototype.append=function(t){return this.appendBinary(u(t)),this},d.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var r,i=this._buff.length;for(r=64;r<=i;r+=64)e(this._hash,n(this._buff.substring(r-64,r)));return this._buff=this._buff.substring(r-64),this},d.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=h(n)),this.reset(),n},d.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},d.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},d.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},d.prototype._finish=function(t,n){var r,i,o,s=n;if(t[s>>2]|=128<<(s%4<<3),s>55)for(e(this._hash,t),s=0;s<16;s+=1)t[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,e(this._hash,t)},d.hash=function(t,e){return d.hashBinary(u(t),e)},d.hashBinary=function(t,e){var n=a(i(t));return e?h(n):n},d.ArrayBuffer=function(){this.reset()},d.ArrayBuffer.prototype.append=function(t){var n,i=f(this._buff.buffer,t,!0),o=i.length;for(this._length+=t.byteLength,n=64;n<=o;n+=64)e(this._hash,r(i.subarray(n-64,n)));return this._buff=n-64<o?new Uint8Array(i.buffer.slice(n-64)):new Uint8Array(0),this},d.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=h(n)),this.reset(),n},d.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.ArrayBuffer.prototype.getState=function(){var t=d.prototype.getState.call(this);return t.buff=l(t.buff),t},d.ArrayBuffer.prototype.setState=function(t){return t.buff=c(t.buff,!0),d.prototype.setState.call(this,t)},d.ArrayBuffer.prototype.destroy=d.prototype.destroy,d.ArrayBuffer.prototype._finish=d.prototype._finish,d.ArrayBuffer.hash=function(t,e){var n=a(o(new Uint8Array(t)));return e?h(n):n},d},t.exports=e()}),g=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,w=function(){function t(e){g(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return y(t,null,[{key:"create",value:function(e,n){new t(e).create(n)}}]),y(t,[{key:"create",value:function(t){var e=this;this.callback=t,this.md5Buffer=new $.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",function(t){return e.fileReaderDidLoad(t)}),this.fileReader.addEventListener("error",function(t){return e.fileReaderDidError(t)}),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var e=this.md5Buffer.end(!0),n=btoa(e);this.callback(null,n)}}},{key:"fileReaderDidError",value:function(){this.callback("Error reading "+this.file.name)}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),n=b.call(this.file,t,e);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}]),t}(),x=function(){function t(e,r,i){var o=this;g(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type,byte_size:e.size,checksum:r},this.xhr=new XMLHttpRequest,this.xhr.open("POST",i,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this.xhr.setRequestHeader("X-CSRF-Token",n("csrf-token")),this.xhr.addEventListener("load",function(t){return o.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return o.requestDidError(t)})}return y(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var e=this.response,n=e.direct_upload;delete e.direct_upload,this.attributes=e,this.directUploadData=n,this.callback(null,this.toJSON())}else this.requestDidError(t)}},{key:"requestDidError",value:function(){this.callback('Error creating Blob for "'+this.file.name+'". Status: '+this.status)}},{key:"toJSON",value:function(){var t={};for(var e in this.attributes)t[e]=this.attributes[e];return t}},{key:"status",get:function(){return this.xhr.status}},{key:"response",get:function(){var t=this.xhr,e=t.responseType,n=t.response;return"json"==e?n:JSON.parse(n)}}]),t}(),S=function(){function t(e){var n=this;g(this,t),this.blob=e,this.file=e.file;var r=e.directUploadData,i=r.url,o=r.headers;for(var s in this.xhr=new XMLHttpRequest,this.xhr.open("PUT",i,!0),this.xhr.responseType="text",o)this.xhr.setRequestHeader(s,o[s]);this.xhr.addEventListener("load",function(t){return n.requestDidLoad(t)}),this.xhr.addEventListener("error",function(t){return n.requestDidError(t)})}return y(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var e=this.xhr,n=e.status,r=e.response;n>=200&&n<300?this.callback(null,r):this.requestDidError(t)}},{key:"requestDidError",value:function(){this.callback('Error storing "'+this.file.name+'". Status: '+this.xhr.status)}}]),t}(),_=0,k=function(){function t(e,n,r){g(this,t),this.id=++_,this.file=e,this.url=n,this.delegate=r}return y(t,[{key:"create",value:function(t){var e=this;w.create(this.file,function(n,r){if(n)t(n);else{var i=new x(e.file,r,e.url);a(e.delegate,"directUploadWillCreateBlobWithXHR",i.xhr),i.create(function(n){if(n)t(n);else{var r=new S(i);a(e.delegate,"directUploadWillStoreFileWithXHR",r.xhr),r.create(function(e){e?t(e):t(null,i.toJSON())})}})}})}}]),t}(),C=function(){function t(e,n){g(this,t),this.input=e,this.file=n,this.directUpload=new k(this.file,this.url,this),this.dispatch("initialize")}return y(t,[{key:"start",value:function(t){var e=this,n=document.createElement("input");n.type="hidden",n.name=this.input.name,this.input.insertAdjacentElement("beforebegin",n),this.dispatch("start"),this.directUpload.create(function(r,i){r?(n.parentNode.removeChild(n),e.dispatchError(r)):n.value=i.signed_id,e.dispatch("end"),t(r)})}},{key:"uploadRequestDidProgress",value:function(t){var e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"dispatch",value:function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e.file=this.file,e.id=this.directUpload.id,o(this.input,"direct-upload:"+t,{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",function(t){return e.uploadRequestDidProgress(t)})}},{key:"url",get:function(){return this.input.getAttribute("data-direct-upload-url")}}]),t}(),M="input[type=file][data-direct-upload-url]:not([disabled])",E=function(){function t(e){g(this,t),this.form=e,this.inputs=r(e,M).filter(function(t){return t.files.length})}return y(t,[{key:"start",value:function(t){var e=this,n=this.createDirectUploadControllers(),r=function i(){var r=n.shift();r?r.start(function(n){n?(t(n),e.dispatch("end")):i()}):(t(),e.dispatch("end"))};this.dispatch("start"),r()}},{key:"createDirectUploadControllers",value:function(){var t=[];return this.inputs.forEach(function(e){s(e.files).forEach(function(n){var r=new C(e,n);t.push(r)})}),t}},{key:"dispatch",value:function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return o(this.form,"direct-uploads:"+t,{detail:e})}}]),t}(),A="data-direct-uploads-processing",D=new WeakMap,O=!1;setTimeout(v,1),t.start=u,t.DirectUpload=k,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,s=o[0],a="["+(t?t+":":"")+s+"] ";for(a+=o[1].replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1)+i;return e<o.length?gt(o[e]):t}),a+="\nhttp://errors.angularjs.org/1.5.8/"+(t?t+"/":"")+s,r=i,n="?";r<o.length;r++,n="&")a+=n+"p"+(r-i)+"="+encodeURIComponent(gt(o[r]));return new e(a)}}function n(t){if(null==t||C(t))return!1;if(Zr(t)||w(t)||Vr&&t instanceof Vr)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var o,s;if(t)if(_(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(i,t[o],o,t);else if(Zr(t)||n(t)){var a="object"!=typeof t;for(o=0,s=t.length;o<s;o++)(a||o in t)&&e.call(i,t[o],o,t)}else if(t.forEach&&t.forEach!==r)t.forEach(e,i,t);else if(b(t))for(o in t)e.call(i,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);else for(o in t)Tr.call(t,o)&&e.call(i,t[o],o,t);return t}function i(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function o(t){return function(e,n){t(n,e)}}function s(){return++Gr}function a(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(y(s)||_(s))for(var c=Object.keys(s),l=0,f=c.length;l<f;l++){var h=c[l],d=s[h];n&&y(d)?S(d)?t[h]=new Date(d.valueOf()):k(d)?t[h]=new RegExp(d):d.nodeName?t[h]=d.cloneNode(!0):P(d)?t[h]=d.clone():(y(t[h])||(t[h]=Zr(d)?[]:{}),u(t[h],[d],!0)):t[h]=d}}return a(t,r),t}function c(t){return u(t,Lr.call(arguments,1),!1)}function l(t){return u(t,Lr.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function h(t,e){return c(Object.create(t),e)}function d(){}function p(t){return t}function m(t){return function(){return t}}function v(t){return _(t.toString)&&t.toString!==Wr}function $(t){return void 0===t}function g(t){return void 0!==t}function y(t){return null!==t&&"object"==typeof t}function b(t){return null!==t&&"object"==typeof t&&!qr(t)}function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function S(t){return"[object Date]"===Wr.call(t)}function _(t){return"function"==typeof t}function k(t){return"[object RegExp]"===Wr.call(t)}function C(t){return t&&t.window===t}function M(t){return t&&t.$evalAsync&&t.$watch}function E(t){return"[object File]"===Wr.call(t)}function A(t){return"[object FormData]"===Wr.call(t)}function D(t){return"[object Blob]"===Wr.call(t)}function O(t){return"boolean"==typeof t}function T(t){return t&&_(t.then)}function N(t){return t&&x(t.length)&&Jr.test(Wr.call(t))}function j(t){return"[object ArrayBuffer]"===Wr.call(t)}function P(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function R(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function I(t){return Nr(t.nodeName||t[0]&&t[0].nodeName)}function V(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function Y(t,e){function n(t,e){var n,r=e.$$hashKey;if(Zr(t))for(var o=0,s=t.length;o<s;o++)e.push(i(t[o]));else if(b(t))for(n in t)e[n]=i(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=i(t[n]));else for(n in t)Tr.call(t,n)&&(e[n]=i(t[n]));return a(e,r),e}function i(t){if(!y(t))return t;var e=s.indexOf(t);if(-1!==e)return u[e];if(C(t)||M(t))throw Br("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(t);return i===undefined&&(i=Zr(t)?[]:Object.create(qr(t)),r=!0),s.push(t),u.push(i),r?n(t,i):i}function o(t){switch(Wr.call(t)){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 t.constructor(i(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(_(t.cloneNode))return t.cloneNode(!0)}var s=[],u=[];if(e){if(N(e)||j(e))throw Br("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Br("cpi","Can't copy! Source and destination are identical.");return Zr(e)?e.length=0:r(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),s.push(t),u.push(e),n(t,e)}return i(t)}function F(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r,i,o=typeof t;if(o==typeof e&&"object"==o){if(!Zr(t)){if(S(t))return!!S(e)&&F(t.getTime(),e.getTime());if(k(t))return!!k(e)&&t.toString()==e.toString();if(M(t)||M(e)||C(t)||C(e)||Zr(e)||S(e)||k(e))return!1;for(r in i=pt(),t)if("$"!==r.charAt(0)&&!_(t[r])){if(!F(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&g(e[r])&&!_(e[r]))return!1;return!0}if(!Zr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!F(t[r],e[r]))return!1;return!0}}return!1}function L(t,e,n){return t.concat(Lr.call(e,n))}function U(t,e){return Lr.call(t,e||0)}function H(t,e){var n=arguments.length>2?U(arguments,2):[];return!_(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,L(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function W(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=undefined:C(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":M(n)&&(r="$SCOPE"),r}function q(t,e){return $(t)?undefined:(x(e)||(e=e?2:null),JSON.stringify(t,W,e))}function B(t){return w(t)?JSON.parse(t):t}function z(t,e){t=t.replace(ei,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function Z(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return G(t,n*(z(e,r)-r))}function J(t){t=Vr(t).clone();try{t.empty()}catch(n){}var e=Vr("<div>").append(t).html();try{return t[0].nodeType===ai?Nr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Nr(e)})}catch(n){return Nr(e)}}function X(t){try{return decodeURIComponent(t)}catch(e){}}function K(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),g(r=X(r))&&(i=!g(i)||X(i),Tr.call(e,r)?Zr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function Q(t){var e=[];return r(t,function(t,n){Zr(t)?r(t,function(t){e.push(et(n,!0)+(!0===t?"":"="+et(t,!0)))}):e.push(et(n,!0)+(!0===t?"":"="+et(t,!0)))}),e.length?e.join("&"):""}function tt(t){return et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function nt(t,e){var n,r,i=ni.length;for(r=0;r<i;++r)if(n=ni[r]+e,w(n=t.getAttribute(n)))return n;return null}function rt(t,e){var n,i,o={};r(ni,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),r(ni,function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==nt(n,"strict-di"),e(n,i?[i]:[],o))}function it(e,n,i){y(i)||(i={}),i=c({strictDi:!1},i);var o=function(){if((e=Vr(e)).injector()){var r=e[0]===t.document?"document":J(e);throw Br("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=re(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!a.test(t.name))return o();t.name=t.name.replace(a,""),zr.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),o()},_(zr.resumeDeferredBootstrap)&&zr.resumeDeferredBootstrap()}function ot(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function st(t){var e=zr.element(t).injector();if(!e)throw Br("test","no injector found for element argument to getTestability");return e.get("$$testability")}function at(t,e){return e=e||"_",t.replace(ri,function(t,n){return(n?e:"")+t.toLowerCase()})}function ut(){var e;if(!ii){var n=ti();(Yr=$(n)?t.jQuery:n?t[n]:undefined)&&Yr.fn.on?(Vr=Yr,c(Yr.fn,{scope:Ci.scope,isolateScope:Ci.isolateScope,controller:Ci.controller,injector:Ci.injector,inheritedData:Ci.inheritedData}),e=Yr.cleanData,Yr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=Yr._data(r,"events"))&&n.$destroy&&Yr(r).triggerHandler("$destroy");e(t)}):Vr=At,zr.element=Vr,ii=!0}}function ct(t,e,n){if(!t)throw Br("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function lt(t,e,n){return n&&Zr(t)&&(t=t[t.length-1]),ct(_(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ft(t,e){if("hasOwnProperty"===t)throw Br("badname","hasOwnProperty is not a valid {0} name",e)}function ht(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a<s;a++)r=i[a],t&&(t=(o=t)[r]);return!n&&_(t)?H(o,t):t}function dt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Vr(Lr.call(t,0,i))),e.push(n));return e||t}function pt(){return Object.create(null)}function mt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,s){return function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)}(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),l}}function n(t,n){return function(r,o){return o&&_(o)&&(o.$$moduleName=e),i.push([t,n,arguments]),l}}if(!o)throw r("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.",e);var i=[],a=[],u=[],c=t("$injector","invoke","push",a),l={_invokeQueue:i,_configBlocks:a,_runBlocks:u,requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:c,run:function(t){return u.push(t),this}};return s&&c(s),l})}})}function vt(t,e){if(Zr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function $t(t){var e=[];return JSON.stringify(t,function(t,n){if(y(n=W(t,n))){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function gt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):$(t)?"undefined":"string"!=typeof t?$t(t):t}function yt(n){c(n,{bootstrap:it,copy:Y,extend:c,merge:l,equals:F,element:Vr,forEach:r,injector:re,noop:d,bind:H,toJson:q,fromJson:B,identity:p,isUndefined:$,isDefined:g,isString:w,isFunction:_,isObject:y,isNumber:x,isElement:P,isArray:Zr,version:fi,isDate:S,lowercase:Nr,uppercase:jr,callbacks:{$$counter:0},getTestability:st,$$minErr:e,$$csp:Qr,reloadWithDebugInfo:ot}),(Fr=mt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:kn}),t.provider("$compile",pe).directive({a:Po,input:ts,textarea:ts,form:Fo,script:Zs,select:Ks,style:ta,option:Qs,ngBind:rs,ngBindHtml:os,ngBindTemplate:is,ngClass:as,ngClassEven:cs,ngClassOdd:us,ngCloak:ls,ngController:fs,ngForm:Lo,ngHide:Us,ngIf:ps,ngInclude:ms,ngInit:$s,ngNonBindable:Ns,ngPluralize:Is,ngRepeat:Vs,ngShow:Ls,ngStyle:Hs,ngSwitch:Ws,ngSwitchWhen:qs,ngSwitchDefault:Bs,ngOptions:Rs,ngTransclude:Gs,ngModel:Ds,ngList:gs,ngChange:ss,pattern:na,ngPattern:na,required:ea,ngRequired:ea,minlength:ia,ngMinlength:ia,maxlength:ra,ngMaxlength:ra,ngValue:ns,ngModelOptions:Ts}).directive({ngInclude:vs}).directive(Ro).directive(hs),t.provider({$anchorScroll:ie,$animate:Ui,$animateCss:qi,$$animateJs:Fi,$$animateQueue:Li,$$AnimateRunner:Wi,$$animateAsyncRun:Hi,$browser:le,$cacheFactory:fe,$controller:be,$document:we,$exceptionHandler:xe,$filter:Yn,$$forceReflow:Xi,$interpolate:Re,$interval:Ie,$http:Te,$httpParamSerializer:_e,$httpParamSerializerJQLike:ke,$httpBackend:je,$xhrFactory:Ne,$jsonpCallbacks:so,$location:Ke,$log:Qe,$parse:yn,$rootScope:_n,$q:bn,$$q:wn,$sce:An,$sceDelegate:En,$sniffer:Dn,$templateCache:he,$templateRequest:On,$$testability:Tn,$timeout:Nn,$window:Rn,$$rAF:Sn,$$jqLite:Jt,$$HashMap:Di,$$cookieReader:Vn})}])}function bt(){return++di}function wt(t){return t.replace(vi,function(t,e,n,r){return r?n.toUpperCase():n}).replace($i,"Moz$1")}function xt(t){return!wi.test(t)}function St(t){var e=t.nodeType;return e===oi||!e||e===ci}function _t(t){for(var e in hi[t.ng339])return!0;return!1}function kt(t){for(var e=0,n=t.length;e<n;e++)Nt(t[e])}function Ct(t,e){var n,i,o,s,a=e.createDocumentFragment(),u=[];if(xt(t))u.push(e.createTextNode(t));else{for(n=a.appendChild(e.createElement("div")),i=(xi.exec(t)||["",""])[1].toLowerCase(),o=_i[i]||_i._default,n.innerHTML=o[1]+t.replace(Si,"<$1></$2>")+o[2],s=o[0];s--;)n=n.lastChild;u=L(u,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",r(u,function(t){a.appendChild(t)}),a}function Mt(e,n){var r;return n=n||t.document,(r=bi.exec(e))?[n.createElement(r[1])]:(r=Ct(e,n))?r.childNodes:[]}function Et(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function At(t){if(t instanceof At)return t;var e;if(w(t)&&(t=Xr(t),e=!0),!(this instanceof At)){if(e&&"<"!=t.charAt(0))throw yi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}Yt(this,e?Mt(t):t)}function Dt(t){return t.cloneNode(!0)}function Ot(t,e){if(e||Nt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Nt(n[r])}function Tt(t,e,n,i){if(g(i))throw yi("offargs","jqLite#off() does not support the `selector` argument");var o=jt(t),s=o&&o.events,a=o&&o.handle;if(a)if(e){var u=function(e){var r=s[e];g(n)&&V(r||[],n),g(n)&&r&&r.length>0||(mi(t,e,a),delete s[e])};r(e.split(" "),function(t){u(t),gi[t]&&u(gi[t])})}else for(e in s)"$destroy"!==e&&mi(t,e,a),delete s[e]}function Nt(t,e){var n=t.ng339,r=n&&hi[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Tt(t)),delete hi[n],t.ng339=undefined}}function jt(t,e){
var n=t.ng339,r=n&&hi[n];return e&&!r&&(t.ng339=n=bt(),r=hi[n]={events:{},data:{},handle:undefined}),r}function Pt(t,e,n){if(St(t)){var r=g(n),i=!r&&e&&!y(e),o=!e,s=jt(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];c(a,e)}}}function Rt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function It(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",Xr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(e)+" "," ")))})}function Vt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=Xr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Xr(n))}}function Yt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ft(t,e){return Lt(t,"$"+(e||"ngController")+"Controller")}function Lt(t,e,n){t.nodeType==ci&&(t=t.documentElement);for(var r=Zr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(g(n=Vr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===li&&t.host}}function Ut(t){for(Ot(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ht(t,e){e||Ot(t);var n=t.parentNode;n&&n.removeChild(t)}function Wt(e,n){"complete"===(n=n||t).document.readyState?n.setTimeout(e):Vr(n).on("load",e)}function qt(t,e){var n=Mi[e.toLowerCase()];return n&&Ei[I(t)]&&n}function Bt(t){return Ai[t]}function zt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if($(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||Gt;o>1&&(i=vt(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||a(t,n,i[u])}};return n.elem=t,n}function Gt(t,e,n){n.call(t,e)}function Zt(t,e,n){var r=e.relatedTarget;r&&(r===t||ki.call(t,r))||n.call(t,e)}function Jt(){this.$get=function(){return c(At,{hasClass:function(t,e){return t.attr&&(t=t[0]),Rt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Vt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),It(t,e)}})}}function Xt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||s)():r+":"+t}function Kt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}r(t,this.put,this)}function Qt(t){return Function.prototype.toString.call(t)+" "}function te(t){var e=Qt(t).replace(Pi,"");return e.match(Oi)||e.match(Ti)}function ee(t){var e=te(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ne(t,e,n){var i,o;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw w(n)&&n||(n=t.name||ee(t)),Ri("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);r(te(t)[1].split(Ni),function(t){t.replace(ji,function(t,e,n){i.push(n)})})}t.$inject=i}}else Zr(t)?(lt(t[o=t.length-1],"fn"),i=t.slice(0,o)):lt(t,"fn",!0);return i}function re(t,e){function n(t){return function(e,n){if(!y(e))return t(e,n);r(e,o(t))}}function i(t,e){if(ft(t,"service"),(_(e)||Zr(e))&&(e=S.instantiate(e)),!e.$get)throw Ri("pget","Provider '{0}' must define $get factory method.",t);return x[t+v]=e}function s(t,e){return function(){var n=M.invoke(e,this);if($(n))throw Ri("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function a(t,e,n){return i(t,{$get:!1!==n?s(t,e):e})}function u(t,e){return a(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return a(t,m(e),!1)}function l(t,e){ft(t,"constant"),x[t]=e,k[t]=e}function f(t,e){var n=S.get(t+v),r=n.$get;n.$get=function(){var t=M.invoke(r,n);return M.invoke(e,null,{$delegate:t})}}function h(t){ct($(t)||Zr(t),"modulesToLoad","not an array");var e,n=[];return r(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=S.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{w(t)?(e=Fr(t),n=n.concat(h(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):_(t)?n.push(S.invoke(t)):Zr(t)?n.push(S.invoke(t)):lt(t,"module")}catch(i){throw Zr(t)&&(t=t[t.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Ri("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function d(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===p)throw Ri("cdep","Circular dependency found: {0}",e+" <- "+g.join(" <- "));return t[e]}try{return g.unshift(e),t[e]=p,t[e]=n(e,r)}catch(i){throw t[e]===p&&delete t[e],i}finally{g.shift()}}function i(t,n,i){for(var o=[],s=re.$$annotate(t,e,i),a=0,u=s.length;a<u;a++){var c=s[a];if("string"!=typeof c)throw Ri("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}function o(t){return!(Ir<=11)&&("function"==typeof t&&/^(?:class\b|constructor\()/.test(Qt(t)))}function s(t,e,n,r){"string"==typeof n&&(r=n,n=null);var s=i(t,n,r);return Zr(t)&&(t=t[t.length-1]),o(t)?(s.unshift(null),new(Function.prototype.bind.apply(t,s))):t.apply(e,s)}function a(t,e,n){var r=Zr(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:s,instantiate:a,get:r,annotate:re.$$annotate,has:function(e){return x.hasOwnProperty(e+v)||t.hasOwnProperty(e)}}}e=!0===e;var p={},v="Provider",g=[],b=new Kt([],!0),x={$provide:{provider:n(i),factory:n(a),service:n(u),value:n(c),constant:n(l),decorator:f}},S=x.$injector=d(x,function(t,e){throw zr.isString(e)&&g.push(e),Ri("unpr","Unknown provider: {0}",g.join(" <- "))}),k={},C=d(k,function(t,e){var n=S.get(t+v,e);return M.invoke(n.$get,n,undefined,t)}),M=C;x["$injector"+v]={$get:m(C)};var E=h(t);return(M=C.get("$injector")).strictDi=e,r(E,function(t){t&&M.invoke(t)}),M}function ie(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===I(t))return e=t,!0}),e}function o(){var t=a.yOffset;if(_(t))t=t();else if(P(t)){var n=t[0];t="fixed"!==e.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else x(t)||(t=0);return t}function s(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function a(t){var e;(t=w(t)?t:n.hash())?(e=u.getElementById(t))?s(e):(e=i(u.getElementsByName(t)))?s(e):"top"===t&&s(null):s(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Wt(function(){r.$evalAsync(a)})}),a}]}function oe(t,e){return t||e?t?e?(Zr(t)&&(t=t.join(" ")),Zr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function se(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Vi)return n}}function ae(t){w(t)&&(t=t.split(" "));var e=pt();return r(t,function(t){t.length&&(e[t]=!0)}),e}function ue(t){return y(t)?t:{}}function ce(t,e,n,i){function o(t){try{t.apply(null,U(arguments,1))}finally{if(0===--g)for(;y.length;)try{y.pop()()}catch(e){n.error(e)}}}function s(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}function a(){_=null,u(),c()}function u(){F(b=$(b=k())?null:b,E)&&(b=E),E=b}function c(){x===l.url()&&w===b||(x=l.url(),w=b,r(C,function(t){t(l.url(),b)}))}var l=this,f=t.location,h=t.history,p=t.setTimeout,m=t.clearTimeout,v={};l.isMock=!1;var g=0,y=[];l.$$completeOutstandingRequest=o,l.$$incOutstandingRequestCount=function(){g++},l.notifyWhenNoOutstandingRequests=function(t){0===g?t():y.push(t)};var b,w,x=f.href,S=e.find("base"),_=null,k=i.history?function(){try{return h.state}catch(t){}}:d;u(),w=b,l.url=function(e,n,r){if($(r)&&(r=null),f!==t.location&&(f=t.location),h!==t.history&&(h=t.history),e){var o=w===r;if(x===e&&(!i.history||o))return l;var a=x&&He(x)===He(e);return x=e,w=r,!i.history||a&&o?(a||(_=e),n?f.replace(e):a?f.hash=s(e):f.href=e,f.href!==e&&(_=e)):(h[n?"replaceState":"pushState"](r,"",e),u(),w=b),_&&(_=e),l}return _||f.href.replace(/%27/g,"'")},l.state=function(){return b};var C=[],M=!1,E=null;l.onUrlChange=function(e){return M||(i.history&&Vr(t).on("popstate",a),Vr(t).on("hashchange",a),M=!0),C.push(e),e},l.$$applicationDestroyed=function(){Vr(t).off("hashchange popstate",a)},l.$$checkUrlChange=c,l.baseHref=function(){var t=S.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(t,e){var n;return g++,n=p(function(){delete v[n],o(t)},e||0),v[n]=!0,n},l.defer.cancel=function(t){return!!v[t]&&(delete v[t],m(t),o(d),!0)}}function le(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ce(t,r,e,n)}]}function fe(){this.$get=function(){function t(t,r){function i(t){t!=h&&(d?d==t&&(d=t.n):d=t,o(t.n,t.p),o(t,h),(h=t).n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=c({},r,{id:t}),u=pt(),l=r&&r.capacity||Number.MAX_VALUE,f=pt(),h=null,d=null;return n[t]={put:function(t,e){if(!$(e)){if(l<Number.MAX_VALUE)i(f[t]||(f[t]={key:t}));return t in u||s++,u[t]=e,s>l&&this.remove(d.key),e}},get:function(t){if(l<Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=f[t];if(!e)return;e==h&&(h=e.p),e==d&&(d=e.n),o(e.n,e.p),delete f[t]}t in u&&(delete u[t],s--)},removeAll:function(){u=pt(),s=0,f=pt(),h=d=null},destroy:function(){u=null,a=null,f=null,delete n[t]},info:function(){return c({},a,{size:s})}}}var n={};return t.info=function(){var t={};return r(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function he(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function de(){}function pe(e,n){function i(t,e,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=pt();return r(t,function(t,r){if(t in C)o[r]=C[t];else{var s=t.match(i);if(!s)throw Bi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t,n?"controller bindings definition":"isolate scope definition");o[r]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||r},s[4]&&(C[t]=o[r])}}),o}function s(t,e){var n={isolateScope:null,bindToController:null};if(y(t.scope)&&(!0===t.bindToController?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),y(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw Bi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!ye(r,o))throw Bi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function a(t){var e=t.charAt(0);if(!e||e!==Nr(e))throw Bi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Bi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}function u(t){var e=t.require||t.controller&&t.name;return!Zr(e)&&y(e)&&r(e,function(t,n){var r=t.match(S);t.substring(r[0].length)||(e[n]=r[0]+n)}),e}var l={},f="Directive",v=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,b=/(([\w\-]+)(?:\:([^;]+))?;?)/,x=R("ngSrc,ngSrcset,src,srcset"),S=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,C=pt();this.directive=function D(t,n){return ft(t,"directive"),w(t)?(a(t),ct(n,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],e.factory(t+f,["$injector","$exceptionHandler",function(e,n){var i=[];return r(l[t],function(r,o){try{var s=e.invoke(r);_(s)?s={compile:m(s)}:!s.compile&&s.link&&(s.compile=m(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||t,s.require=u(s),s.restrict=s.restrict||"EA",s.$$moduleName=r.$$moduleName,i.push(s)}catch(a){n(a)}}),i}])),l[t].push(n)):r(t,o(D)),this},this.component=function(t,e){function n(t){function n(e){return _(e)||Zr(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var o=e.template||e.templateUrl?e.template:"",s={controller:i,controllerAs:ye(e.controller)||e.controllerAs||"$ctrl",template:n(o),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return r(e,function(t,e){"$"===e.charAt(0)&&(s[e]=t)}),s}var i=e.controller||function(){};return r(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,_(i)&&(i[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return g(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return g(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var E=!0;this.debugInfoEnabled=function(t){return g(t)?(E=t,this):E};var A=10;this.onChangesTtl=function(t){return arguments.length?(A=t,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,i,o,a,u,m,C,D,T){function N(){try{if(!--St)throw yt=undefined,Bi("infchng","{0} $onChanges() iterations reached. Aborting!\n",A);m.$apply(function(){for(var t=[],e=0,n=yt.length;e<n;++e)try{yt[e]()}catch(r){t.push(r)}if(yt=undefined,t.length)throw t})}finally{St++}}function j(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function P(t,e,n){wt.innerHTML="<span "+e+">";var r=wt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function R(t,e){try{t.addClass(e)}catch(n){}}function Y(e,n,r,i,o){e instanceof Vr||(e=Vr(e));for(var s=/\S+/,a=0,u=e.length;a<u;a++){var c=e[a];c.nodeType===ai&&c.nodeValue.match(s)&&Et(c,e[a]=t.document.createElement("span"))}var l=W(e,n,e,r,i,o);Y.$$addScopeClass(e);var f=null;return function(t,n,r){ct(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new());var i,s=(r=r||{}).parentBoundTranscludeFn,a=r.transcludeControllers,u=r.futureParentElement;if(s&&s.$$boundTransclude&&(s=s.$$boundTransclude),f||(f=L(u)),i="html"!==f?Vr(ft(f,Vr("<div>").append(e).html())):n?Ci.clone.call(e):e,a)for(var c in a)i.data("$"+c+"Controller",a[c].instance);return Y.$$addScopeInfo(i,t),n&&n(i,t),l&&l(t,i,i,s),i}}function L(t){var e=t&&t[0];return e&&"foreignobject"!==I(e)&&Wr.call(e).match(/SVG/)?"svg":"html"}function W(t,e,n,r,i,o){function s(t,n,r,i){var o,s,a,u,c,l,f,h;if(d){var m=n.length;for(h=new Array(m),c=0;c<p.length;c+=3)h[f=p[c]]=n[f]}else h=n;for(c=0,l=p.length;c<l;)a=h[p[c++]],o=p[c++],s=p[c++],o?(o.scope?(u=t.$new(),Y.$$addScopeInfo(Vr(a),u)):u=t,o(s,u,a,r,o.transcludeOnThisElement?q(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?q(t,e):null)):s&&s(t,a.childNodes,undefined,i)}for(var a,u,c,l,f,h,d,p=[],m=0;m<t.length;m++)a=new j,(c=(u=B(t[m],[],a,0===m?r:undefined,i)).length?K(u,t[m],a,e,n,null,[],[],o):null)&&c.scope&&Y.$$addScopeClass(a.$$element),f=c&&c.terminal||!(l=t[m].childNodes)||!l.length?null:W(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||f)&&(p.push(m,c,f),h=!0,d=d||c),o=null;return h?s:null}function q(t,e,n){function r(r,i,o,s,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=pt();for(var o in e.$$slots)e.$$slots[o]?i[o]=q(t,e.$$slots[o],n):i[o]=null;return r}function B(t,e,n,r,i){var o,s,a=t.nodeType,u=n.$attr;switch(a){case oi:nt(e,ve(I(t)),"E",r,i);for(var c,l,f,h,d,p,m=t.attributes,v=0,$=m&&m.length;v<$;v++){var g=!1,x=!1;l=(c=m[v]).name,d=Xr(c.value),h=ve(l),(p=Mt.test(h))&&(l=l.replace(Gi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var S=h.match(At);S&&rt(S[1])&&(g=l,x=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),u[f=ve(l.toLowerCase())]=l,!p&&n.hasOwnProperty(f)||(n[f]=d,qt(t,f)&&(n[f]=!0)),dt(t,e,d,f,p),nt(e,f,"A",r,i,g,x)}if(y(s=t.className)&&(s=s.animVal),w(s)&&""!==s)for(;o=b.exec(s);)nt(e,f=ve(o[2]),"C",r,i)&&(n[f]=Xr(o[3])),s=s.substr(o.index+o[0].length);break;case ai:if(11===Ir)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===ai;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);lt(e,t.nodeValue);break;case ui:z(t,e,n,r,i)}return e.sort(st),e}function z(t,e,n,r,i){try{var o=v.exec(t.nodeValue);if(o){var s=ve(o[1]);nt(e,s,"M",r,i)&&(n[s]=Xr(o[2]))}}catch(a){}}function G(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Bi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==oi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Vr(r)}function Z(t,e,n){return function(r,i,o,s,a){return i=G(i[0],e,n),t(r,i,o,s,a)}}function X(t,e,n,r,i,o){var s;return t?Y(e,n,r,i,o):function(){return s||(s=Y(e,n,r,i,o),e=n=o=null),s.apply(this,arguments)}}function K(t,e,n,o,s,a,u,l,f){function h(t,e,n,r){t&&(n&&(t=Z(t,n,r)),t.require=p.require,t.directiveName=m,(k===p||p.$$isolateScope)&&(t=vt(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=Z(e,n,r)),e.require=p.require,e.directiveName=m,(k===p||p.$$isolateScope)&&(e=vt(e,{isolateScope:!0})),l.push(e))}function d(t,o,s,a,f){function h(t,e,n,r){var i;if(M(t)||(r=n,n=e,e=t,t=undefined),O&&(i=b),n||(n=O?E.parent():E),!r)return f(t,e,i,n,V);var o=f.$$slots[r];if(o)return o(t,e,i,n,V);if($(o))throw Bi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,J(E))}var d,p,m,v,g,b,w,E,A,D;for(var T in e===s?(A=n,E=n.$$element):A=new j(E=Vr(s),n),g=o,k?v=o.$new(!0):x&&(g=o.$parent),f&&((w=h).$$boundTransclude=f,w.isSlotFilled=function(t){return!!f.$$slots[t]}),S&&(b=tt(E,A,w,S,v,o,k)),k&&(Y.$$addScopeInfo(E,v,!0,!(C&&(C===k||C===k.$$originalDirective))),Y.$$addScopeClass(E,!0),v.$$isolateBindings=k.$$isolateBindings,(D=gt(o,A,v,v.$$isolateBindings,k)).removeWatches&&v.$on("$destroy",D.removeWatches)),b){var N=S[T],P=b[T],R=N.$$bindings.bindToController;P.identifier&&R?P.bindingInfo=gt(g,A,P.instance,R,N):P.bindingInfo={};var I=P();I!==P.instance&&(P.instance=I,E.data("$"+N.name+"Controller",I),P.bindingInfo.removeWatches&&P.bindingInfo.removeWatches(),P.bindingInfo=gt(g,A,P.instance,R,N))}for(r(S,function(t,e){var n=t.require;t.bindToController&&!Zr(n)&&y(n)&&c(b[e].instance,Q(e,n,E,b))}),r(b,function(t){var e=t.instance;if(_(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(n){i(n)}if(_(e.$onInit))try{e.$onInit()}catch(n){i(n)}_(e.$doCheck)&&(g.$watch(function(){e.$doCheck()}),e.$doCheck()),_(e.$onDestroy)&&g.$on("$destroy",function(){e.$onDestroy()})}),d=0,p=u.length;d<p;d++)$t(m=u[d],m.isolateScope?v:o,E,A,m.require&&Q(m.directiveName,m.require,E,b),w);var V=o;for(k&&(k.template||null===k.templateUrl)&&(V=v),t&&t(V,s.childNodes,undefined,f),d=l.length-1;d>=0;d--)$t(m=l[d],m.isolateScope?v:o,E,A,m.require&&Q(m.directiveName,m.require,E,b),w);r(b,function(t){var e=t.instance;_(e.$postLink)&&e.$postLink()})}f=f||{};for(var p,m,v,g,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,S=f.controllerDirectives,k=f.newIsolateScopeDirective,C=f.templateDirective,E=f.nonTlbTranscludeDirective,A=!1,D=!1,O=f.hasElementTranscludeDirective,T=n.$$element=Vr(e),N=a,P=o,R=!1,V=!1,F=0,L=t.length;F<L;F++){var W=(p=t[F]).$$start,q=p.$$end;if(W&&(T=G(e,W,q)),v=undefined,w>p.priority)break;if((b=p.scope)&&(p.templateUrl||(y(b)?(ut("new/isolated scope",k||x,p,T),k=p):ut("new/isolated scope",k,p,T)),x=x||p),m=p.name,!R&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var z,K=F+1;z=t[K++];)if(z.transclude&&!z.$$tlb||z.replace&&(z.templateUrl||z.template)){V=!0;break}R=!0}if(!p.templateUrl&&p.controller&&(b=p.controller,S=S||pt(),ut("'"+m+"' controller",S[m],p,T),S[m]=p),b=p.transclude)if(A=!0,p.$$tlb||(ut("transclusion",E,p,T),E=p),"element"==b)O=!0,w=p.priority,v=T,T=n.$$element=Vr(Y.$$createComment(m,n[m])),e=T[0],mt(s,U(v),e),v[0].$$parentNode=v[0].parentNode,P=X(V,v,o,w,N&&N.name,{nonTlbTranscludeDirective:E});else{var nt=pt();if(v=Vr(Dt(e)).contents(),y(b)){v=[];var rt=pt(),st=pt();for(var at in r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,rt[t]=e,nt[e]=null,st[e]=n}),r(T.contents(),function(t){var e=rt[ve(I(t))];e?(st[e]=!0,nt[e]=nt[e]||[],nt[e].push(t)):v.push(t)}),r(st,function(t,e){if(!t)throw Bi("reqslot","Required transclusion slot `{0}` was not filled.",e)}),nt)nt[at]&&(nt[at]=X(V,nt[at],o))}T.empty(),(P=X(V,v,o,undefined,undefined,{needsNewScope:p.$$isolateScope||p.$$newScope})).$$slots=nt}if(p.template)if(D=!0,ut("template",C,p,T),C=p,b=_(p.template)?p.template(T,n):p.template,b=Ct(b),p.replace){if(N=p,v=xt(b)?[]:ge(ft(p.templateNamespace,Xr(b))),e=v[0],1!=v.length||e.nodeType!==oi)throw Bi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");mt(s,T,e);var ct={$attr:{}},lt=B(e,[],ct),ht=t.splice(F+1,t.length-(F+1));(k||x)&&et(lt,k,x),t=t.concat(lt).concat(ht),it(n,ct),L=t.length}else T.html(b);if(p.templateUrl)D=!0,ut("template",C,p,T),C=p,p.replace&&(N=p),d=ot(t.splice(F,t.length-F),T,n,s,A&&P,u,l,{controllerDirectives:S,newScopeDirective:x!==p&&x,newIsolateScopeDirective:k,templateDirective:C,nonTlbTranscludeDirective:E}),L=t.length;else if(p.compile)try{g=p.compile(T,n,P);var dt=p.$$originalDirective||p;_(g)?h(null,H(dt,g),W,q):g&&h(H(dt,g.pre),H(dt,g.post),W,q)}catch(yt){i(yt,J(T))}p.terminal&&(d.terminal=!0,w=Math.max(w,p.priority))}return d.scope=x&&!0===x.scope,d.transcludeOnThisElement=A,d.templateOnThisElement=D,d.transclude=P,f.hasElementTranscludeDirective=O,d}function Q(t,e,n,i){var o;if(w(e)){var s=e.match(S),a=e.substring(s[0].length),u=s[1]||s[3],c="?"===s[2];if("^^"===u?n=n.parent():o=(o=i&&i[a])&&o.instance,!o){var l="$"+a+"Controller";o=u?n.inheritedData(l):n.data(l)}if(!o&&!c)throw Bi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Zr(e)){o=[];for(var f=0,h=e.length;f<h;f++)o[f]=Q(t,e[f],n,i)}else y(e)&&(o={},r(e,function(e,r){o[r]=Q(t,e,n,i)}));return o||null}function tt(t,e,n,r,i,o,s){var a=pt();for(var c in r){var l=r[c],f={$scope:l===s||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},h=l.controller;"@"==h&&(h=e[l.name]);var d=u(h,f,!0,l.controllerAs);a[l.name]=d,t.data("$"+l.name+"Controller",d.instance)}return a}function et(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function nt(t,n,r,o,a,u,c){if(n===a)return null;var d=null;if(l.hasOwnProperty(n))for(var p,m=e.get(n+f),v=0,g=m.length;v<g;v++)try{if(p=m[v],($(o)||o>p.priority)&&-1!=p.restrict.indexOf(r)){if(u&&(p=h(p,{$$start:u,$$end:c})),!p.$$bindings){var b=p.$$bindings=s(p,p.name);y(b.isolateScope)&&(p.$$isolateBindings=b.isolateScope)}t.push(p),d=p}}catch(w){i(w)}return d}function rt(t){if(l.hasOwnProperty(t))for(var n=e.get(t+f),r=0,i=n.length;r<i;r++)if(n[r].multiElement)return!0;return!1}function it(t,e){var n=e.$attr,i=t.$attr;t.$$element;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ot(t,e,n,i,s,a,u,c){var l,f,d=[],p=e[0],m=t.shift(),v=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),$=_(m.templateUrl)?m.templateUrl(e,n):m.templateUrl,g=m.templateNamespace;return e.empty(),o($).then(function(o){var h,b,w,x;if(o=Ct(o),m.replace){if(w=xt(o)?[]:ge(ft(g,Xr(o))),h=w[0],1!=w.length||h.nodeType!==oi)throw Bi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,$);b={$attr:{}},mt(i,e,h);var S=B(h,[],b);y(m.scope)&&et(S,!0),t=S.concat(t),it(n,b)}else h=p,e.html(o);for(t.unshift(v),l=K(t,h,n,s,e,m,a,u,c),r(i,function(t,n){t==h&&(i[n]=e[0])}),f=W(e[0].childNodes,s);d.length;){var _=d.shift(),k=d.shift(),C=d.shift(),M=d.shift(),E=e[0];if(!_.$$destroyed){if(k!==p){var A=k.className;c.hasElementTranscludeDirective&&m.replace||(E=Dt(h)),mt(C,Vr(k),E),R(Vr(E),A)}x=l.transcludeOnThisElement?q(_,l.transclude,M):M,l(f,_,E,i,x)}}d=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(d?d.push(e,n,r,o):(l.transcludeOnThisElement&&(o=q(e,l.transclude,i)),l(f,e,n,r,o)))}}function st(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function ut(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Bi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,J(r))}function lt(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&Y.$$addBindingClass(e),function(t,e){var i=e.parent();n||Y.$$addBindingClass(i),Y.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function ft(e,n){switch(e=Nr(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function ht(t,e){if("srcdoc"==e)return C.HTML;var n=I(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}function dt(t,e,r,i,o){var s=ht(t,i);o=x[i]||o;var a=n(r,!0,s,o);if(a){if("multiple"===i&&"select"===I(t))throw Bi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var c=u.$$observers||(u.$$observers=pt());if(k.test(i))throw Bi("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==r&&(a=l&&n(l,!0,s,o),r=l),a&&(u[i]=a(t),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(a,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function mt(e,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==s){e[i++]=r;for(var c=i,l=c+a-1,f=e.length;c<f;c++,l++)l<f?e[c]=e[l]:delete e[c];e.length-=a-1,e.context===s&&(e.context=r);break}u&&u.replaceChild(r,s);var h=t.document.createDocumentFragment();for(i=0;i<a;i++)h.appendChild(n[i]);for(Vr.hasData(s)&&(Vr.data(r,Vr.data(s)),Vr(s).off("$destroy")),Vr.cleanData(h.querySelectorAll("*")),i=1;i<a;i++)delete n[i];n[0]=r,n.length=1}function vt(t,e){return c(function(){return t.apply(null,arguments)},t,e)}function $t(t,e,n,r,o,s){try{t(e,n,r,o,s)}catch(a){i(a,J(n))}}function gt(t,e,i,o,s){function u(e,n,r){_(i.$onChanges)&&n!==r&&(yt||(t.$$postDigest(N),yt=[]),l||(l={},yt.push(c)),l[e]&&(r=l[e].previousValue),l[e]=new me(r,n))}function c(){i.$onChanges(l),l=undefined}var l,f=[],h={};return r(o,function(r,o){var c,l,p,m,v,$=r.attrName,g=r.optional;switch(r.mode){case"@":g||Tr.call(e,$)||(i[o]=e[$]=void 0),e.$observe($,function(t){if(w(t)||O(t)){var e=i[o];u(o,t,e),i[o]=t}}),e.$$observers[$].$$scope=t,w(c=e[$])?i[o]=n(c)(t):O(c)&&(i[o]=c),h[o]=new me(zi,i[o]);break;case"=":if(!Tr.call(e,$)){if(g)break;e[$]=void 0}if(g&&!e[$])break;l=a(e[$]),m=l.literal?F:function(t,e){return t===e||t!=t&&e!=e},p=l.assign||function(){throw c=i[o]=l(t),Bi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[$],$,s.name)},c=i[o]=l(t);var y=function(e){return m(e,i[o])||(m(e,c)?p(t,e=i[o]):i[o]=e),c=e};y.$stateful=!0,v=r.collection?t.$watchCollection(e[$],y):t.$watch(a(e[$],y),null,l.literal),f.push(v);break;case"<":if(!Tr.call(e,$)){if(g)break;e[$]=void 0}if(g&&!e[$])break;l=a(e[$]);var b=i[o]=l(t);h[o]=new me(zi,i[o]),v=t.$watch(l,function(t,e){if(e===t){if(e===b)return;e=b}u(o,t,e),i[o]=t},l.literal),f.push(v);break;case"&":if((l=e.hasOwnProperty($)?a(e[$]):d)===d&&g)break;i[o]=function(e){return l(t,e)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var t=0,e=f.length;t<e;++t)f[t]()}}}var yt,bt=/^\w/,wt=t.document.createElement("div"),St=A;j.prototype={$normalize:ve,$addClass:function(t){t&&t.length>0&&D.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&D.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=$e(t,e);n&&n.length&&D.addClass(this.$$element,n);var r=$e(e,t);r&&r.length&&D.removeClass(this.$$element,r)},$set:function(t,e,n,o){var s,a=qt(this.$$element[0],t),u=Bt(t),c=t;if(a?(this.$$element.prop(t,e),o=a):u&&(this[u]=e,c=u),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t])||(this.$attr[t]=o=at(t,"-")),"a"===(s=I(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===s&&"src"===t)this[t]=e=T(e,"src"===t);else if("img"===s&&"srcset"===t&&g(e)){for(var l="",f=Xr(e),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(f)?h:/(,)/,p=f.split(d),m=Math.floor(p.length/2),v=0;v<m;v++){var y=2*v;l+=T(Xr(p[y]),!0),l+=" "+Xr(p[y+1])}var b=Xr(p[2*v]).split(/\s/);l+=T(Xr(b[0]),!0),2===b.length&&(l+=" "+Xr(b[1])),this[t]=e=l}!1!==n&&(null===e||$(e)?this.$$element.removeAttr(o):bt.test(o)?this.$$element.attr(o,e):P(this.$$element[0],o,e));var w=this.$$observers;w&&r(w[c],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=pt()),i=r[t]||(r[t]=[]);return i.push(e),m.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||$(n[t])||e(n[t])}),function(){V(i,e)}}};var _t=n.startSymbol(),kt=n.endSymbol(),Ct="{{"==_t&&"}}"==kt?p:function(t){return t.replace(/\{\{/g,_t).replace(/}}/g,kt)},Mt=/^ngAttr[A-Z]/,At=/^(.+)Start$/;return Y.$$addBindingInfo=E?function(t,e){var n=t.data("$binding")||[];Zr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:d,Y.$$addBindingClass=E?function(t){R(t,"ng-binding")}:d,Y.$$addScopeInfo=E?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:d,Y.$$addScopeClass=E?function(t,e){R(t,e?"ng-isolate-scope":"ng-scope")}:d,Y.$$createComment=function(e,n){var r="";return E&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},Y}]}function me(t,e){this.previousValue=t,this.currentValue=e}function ve(t){return wt(t.replace(Gi,""))}function $e(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s==i[a])continue t;n+=(n.length>0?" ":"")+s}return n}function ge(t){var e=(t=Vr(t)).length;if(e<=1)return t;for(;e--;){t[e].nodeType===ui&&Ur.call(t,e,1)}return t}function ye(t,e){if(e&&w(e))return e;if(w(t)){var n=Ji.exec(t);if(n)return n[3]}}function be(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ft(e,"controller"),y(e)?c(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!y(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,s,a,u){var l,f,h,d;if(a=!0===a,u&&w(u)&&(d=u),w(e)){if(!(f=e.match(Ji)))throw Zi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);h=f[1],d=d||f[3],lt(e=t.hasOwnProperty(h)?t[h]:ht(s.$scope,h,!0)||(n?ht(i,h,!0):undefined),h,!0)}if(a){var p=(Zr(e)?e[e.length-1]:e).prototype;return l=Object.create(p||null),d&&o(s,d,l,h||e.name),c(function(){var t=r.invoke(e,l,s,h);return t!==l&&(y(t)||_(t))&&(l=t,d&&o(s,d,l,h||e.name)),l},{instance:l,identifier:d})}return l=r.instantiate(e,s,h),d&&o(s,d,l,h||e.name),l}}]}function we(){this.$get=["$window",function(t){return Vr(t.document)}]}function xe(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function Se(t){return y(t)?S(t)?t.toISOString():q(t):t}function _e(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||$(t)||(Zr(t)?r(t,function(t){e.push(et(n)+"="+et(Se(t)))}):e.push(et(n)+"="+et(Se(t))))}),e.join("&")}}}function ke(){this.$get=function(){return function(t){function e(t,o,s){null===t||$(t)||(Zr(t)?r(t,function(t,n){e(t,o+"["+(y(t)?n:"")+"]")}):y(t)&&!S(t)?i(t,function(t,n){e(t,o+(s?"":"[")+n+(s?"":"]"))}):n.push(et(o)+"="+et(Se(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Ce(t,e){if(w(t)){var n=t.replace(no,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Ki)||Me(n))&&(t=B(n))}}return t}function Me(t){var e=t.match(to);return e&&eo[e[0]].test(t)}function Ee(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=pt();return w(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Nr(Xr(t.substr(0,n))),Xr(t.substr(n+1)))}):y(t)&&r(t,function(t,n){e(Nr(n),Xr(t))}),i}function Ae(t){var e;return function(n){if(e||(e=Ee(t)),n){var r=e[Nr(n)];return void 0===r&&(r=null),r}return e}}
function De(t,e,n,i){return _(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function Oe(t){return 200<=t&&t<300}function Te(){var t=this.defaults={transformResponse:[Ce],transformRequest:[function(t){return!y(t)||E(t)||D(t)||A(t)?t:q(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:vt(Qi),put:vt(Qi),patch:vt(Qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return g(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return g(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,a,u,l,f,h){function d(n){function o(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function s(t,e){var n,i={};return r(t,function(t,r){_(t)?null!=(n=t(e))&&(i[r]=n):i[r]=t}),i}function a(e){var n,r,i,o=t.headers,a=c({},e.headers);o=c({},o.common,o[Nr(e.method)]);t:for(n in o){for(i in r=Nr(n),a)if(Nr(i)===r)continue t;a[n]=o[n]}return s(a,vt(e))}function u(e){var n=e.headers,i=De(e.data,Ae(n),undefined,e.transformRequest);return $(i)&&r(n,function(t,e){"content-type"===Nr(e)&&delete n[e]}),$(e.withCredentials)&&!$(t.withCredentials)&&(e.withCredentials=t.withCredentials),v(e,i).then(l,l)}function l(t){var e=c({},t);return e.data=De(t.data,t.headers,t.status,d.transformResponse),Oe(t.status)?e:f.reject(e)}if(!y(n))throw e("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!w(n.url))throw e("$http")("badreq","Http request configuration url must be a string.  Received: {0}",n.url);var d=c({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);d.headers=a(n),d.method=jr(d.method),d.paramSerializer=w(d.paramSerializer)?h.get(d.paramSerializer):d.paramSerializer;var p=[],m=[],g=f.when(d);return r(S,function(t){(t.request||t.requestError)&&p.unshift(t.request,t.requestError),(t.response||t.responseError)&&m.push(t.response,t.responseError)}),g=o(g=(g=o(g,p)).then(u),m),i?(g.success=function(t){return lt(t,"fn"),g.then(function(e){t(e.data,e.status,e.headers,d)}),g},g.error=function(t){return lt(t,"fn"),g.then(null,function(e){t(e.data,e.status,e.headers,d)}),g}):(g.success=io("success"),g.error=io("error")),g}function p(){r(arguments,function(t){d[t]=function(e,n){return d(c({},n||{},{method:t,url:e}))}})}function m(){r(arguments,function(t){d[t]=function(e,n,r){return d(c({},r||{},{method:t,url:e,data:n}))}})}function v(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),e}}function u(t,e,r,i){function o(){c(e,t,r,i)}m&&(Oe(t)?m.put(k,[t,e,Ee(r),i]):m.remove(k)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function c(t,n,r,i){(Oe(n=n>=-1?n:0)?w.resolve:w.reject)({data:t,status:n,headers:Ae(r),config:e,statusText:i})}function h(t){c(t.data,t.status,vt(t.headers()),t.statusText)}function p(){var t=d.pendingRequests.indexOf(e);-1!==t&&d.pendingRequests.splice(t,1)}var m,v,w=f.defer(),S=w.promise,_=e.headers,k=b(e.url,e.paramSerializer(e.params));if(d.pendingRequests.push(e),S.then(p,p),!e.cache&&!t.cache||!1===e.cache||"GET"!==e.method&&"JSONP"!==e.method||(m=y(e.cache)?e.cache:y(t.cache)?t.cache:x),m&&(g(v=m.get(k))?T(v)?v.then(h,h):Zr(v)?c(v[1],v[0],vt(v[2]),v[3]):c(v,200,{},"OK"):m.put(k,S)),$(v)){var C=Pn(e.url)?a()[e.xsrfCookieName||t.xsrfCookieName]:undefined;C&&(_[e.xsrfHeaderName||t.xsrfHeaderName]=C),s(e.method,k,i,u,_,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))}return S}function b(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var x=u("$http");t.paramSerializer=w(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var S=[];return r(o,function(t){S.unshift(w(t)?h.get(t):h.invoke(t))}),d.pendingRequests=[],p("get","delete","head","jsonp"),m("post","put","patch"),d.defaults=t,d}]}function Ne(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function je(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return Pe(t,r,t.defer,e,n[0])}]}function Pe(t,e,n,i,o){function s(t,e,n){t=t.replace("JSON_CALLBACK",e);var r=o.createElement("script"),s=null;return r.type="text/javascript",r.src=t,r.async=!0,s=function(t){mi(r,"load",s),mi(r,"error",s),o.body.removeChild(r),r=null;var a=-1,u="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),u=t.type,a="error"===t.type?404:200),n&&n(a,u)},pi(r,"load",s),pi(r,"error",s),o.body.appendChild(r),s}return function(o,a,u,c,l,f,h,p,m,v){function y(){x&&x(),S&&S.abort()}function b(e,r,i,o,s){g(k)&&n.cancel(k),x=S=null,e(r,i,o,s),t.$$completeOutstandingRequest(d)}if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"===Nr(o))var w=i.createCallback(a),x=s(a,w,function(t,e){var n=200===t&&i.getResponse(w);b(c,t,n,"",e),i.removeCallback(w)});else{var S=e(o,a);S.open(o,a,!0),r(l,function(t,e){g(t)&&S.setRequestHeader(e,t)}),S.onload=function(){var t=S.statusText||"",e="response"in S?S.response:S.responseText,n=1223===S.status?204:S.status;0===n&&(n=e?200:"file"==jn(a).protocol?404:0),b(c,n,e,S.getAllResponseHeaders(),t)};var _=function(){b(c,-1,null,null,"")};if(S.onerror=_,S.onabort=_,r(m,function(t,e){S.addEventListener(e,t)}),r(v,function(t,e){S.upload.addEventListener(e,t)}),h&&(S.withCredentials=!0),p)try{S.responseType=p}catch(C){if("json"!==p)throw C}S.send($(u)?null:u)}if(f>0)var k=n(y,f);else T(f)&&f.then(y)}}function Re(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function s(n){return n.replace(d,t).replace(p,e)}function a(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=q(t)}return t}function u(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function l(o,l,d,p){function v(t){try{return t=O(t),p&&!g(t)?t:a(t)}catch(e){r(oo.interr(o,e))}}if(!o.length||-1===o.indexOf(t)){var y;if(!l)(y=m(s(o))).exp=o,y.expressions=[],y.$$watchDelegate=u;return y}p=!!p;for(var b,w,x,S=0,k=[],C=[],M=o.length,E=[],A=[];S<M;){if(-1==(b=o.indexOf(t,S))||-1==(w=o.indexOf(e,b+f))){S!==M&&E.push(s(o.substring(S)));break}S!==b&&E.push(s(o.substring(S,b))),x=o.substring(b+f,w),k.push(x),C.push(n(x,v)),S=w+h,A.push(E.length),E.push("")}if(d&&E.length>1&&oo.throwNoconcat(o),!l||k.length){var D=function(t){for(var e=0,n=k.length;e<n;e++){if(p&&$(t[e]))return;E[A[e]]=t[e]}return E.join("")},O=function(t){return d?i.getTrusted(d,t):i.valueOf(t)};return c(function(t){var e=0,n=k.length,i=new Array(n);try{for(;e<n;e++)i[e]=C[e](t);return D(i)}catch(s){r(oo.interr(o,s))}},{exp:o,expressions:k,$$watchDelegate:function(t,e){var n;return t.$watchGroup(C,function(r,i){var o=D(r);_(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var f=t.length,h=e.length,d=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return l.startSymbol=function(){return t},l.endSymbol=function(){return e},l}]}function Ie(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,a,u,c){function l(){f?o.apply(null,h):o(m)}var f=arguments.length>4,h=f?U(arguments,4):[],d=e.setInterval,p=e.clearInterval,m=0,v=g(c)&&!c,$=(v?r:n).defer(),y=$.promise;return u=g(u)?u:0,y.$$intervalId=d(function(){v?i.defer(l):t.$evalAsync(l),$.notify(m++),u>0&&m>=u&&($.resolve(m),p(y.$$intervalId),delete s[y.$$intervalId]),v||t.$apply()},a),s[y.$$intervalId]=$,y}var s={};return o.cancel=function(t){return!!(t&&t.$$intervalId in s)&&(s[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete s[t.$$intervalId],!0)},o}]}function Ve(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=tt(e[n]);return e.join("/")}function Ye(t,e){var n=jn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||uo[n.protocol]||null}function Fe(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=jn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=K(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Le(t,e){return 0===t.lastIndexOf(e,0)}function Ue(t,e){if(Le(e,t))return e.substr(t.length)}function He(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function We(t){return t.replace(/(#.+)|#$/,"$1")}function qe(t){return t.substr(0,He(t).lastIndexOf("/")+1)}function Be(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function ze(t,e,n){this.$$html5=!0,n=n||"",Ye(t,this),this.$$parse=function(t){var n=Ue(e,t);if(!w(n))throw co("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Fe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=Q(this.$$search),n=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(g(o=Ue(t,r))?(s=o,a=g(o=Ue(n,o))?e+(Ue("/",o)||o):t+s):g(o=Ue(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,s,a}}function Ge(t,e,n){Ye(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Le(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t))?r[1]:t}var o,s=Ue(t,r)||Ue(e,r);$(s)||"#"!==s.charAt(0)?this.$$html5?o=s:(o="",$(s)&&(t=r,this.replace())):$(o=Ue(n,s))&&(o=s),Fe(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e){return He(t)==He(e)&&(this.$$parse(e),!0)}}function Ze(t,e,n){this.$$html5=!0,Ge.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t==He(r)?o=r:(s=Ue(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=Ve(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Je(t){return function(){return this[t]}}function Xe(t,e){return function(n){return $(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ke(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return g(e)?(t=e,this):t},this.html5Mode=function(t){return O(t)?(e.enabled=t,this):y(t)?(O(t.enabled)&&(e.enabled=t.enabled),O(t.requireBase)&&(e.requireBase=t.requireBase),O(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(s){throw c.url(i),c.$$state=o,s}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,h=r.baseHref(),d=r.url();if(e.enabled){if(!h&&e.requireBase)throw co("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Be(d)+(h||"/"),l=i.history?ze:Ze}else f=He(d),l=Ge;var p=qe(f);(c=new l(f,p,"#"+t)).$$parseLinkUrl(d,d),c.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Vr(t.target);"a"!==I(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var a=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");y(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=jn(a.animVal).href),m.test(a)||!a||i.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(a,u)&&(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),We(c.absUrl())!=We(d)&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){$(Ue(p,t))?s.location.href=t:(n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=We(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,a(i,!1,o)):(v=!1,u(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var t=We(r.url()),e=We(c.absUrl()),o=r.state(),s=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&a(e,s,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function Qe(){var t=!0,e=this;this.debugEnabled=function(e){return g(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||d,s=!1;try{s=!!o.apply}catch(a){}return s?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:(s=o("debug"),function(){t&&s.apply(e,arguments)})};var s}]}function tn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw fo("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function en(t){return t+""}function nn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw fo("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw fo("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw fo("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function rn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===ho||t===po||t===mo)throw fo("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function on(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw fo("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function sn(t,e){return void 0!==t?t:e}function an(t,e){return void 0===t?e:void 0===e?t:t+e}function un(t,e){return!t(e).$stateful}function cn(t,e){var n,i;switch(t.type){case yo.Program:n=!0,r(t.body,function(t){cn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case yo.Literal:t.constant=!0,t.toWatch=[];break;case yo.UnaryExpression:cn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case yo.BinaryExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case yo.LogicalExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case yo.ConditionalExpression:cn(t.test,e),cn(t.alternate,e),cn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case yo.Identifier:t.constant=!1,t.toWatch=[t];break;case yo.MemberExpression:cn(t.object,e),t.computed&&cn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case yo.CallExpression:n=!!t.filter&&un(e,t.callee.name),i=[],r(t.arguments,function(t){cn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&un(e,t.callee.name)?i:[t];break;case yo.AssignmentExpression:cn(t.left,e),cn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case yo.ArrayExpression:n=!0,i=[],r(t.elements,function(t){cn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ObjectExpression:n=!0,i=[],r(t.properties,function(t){cn(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ThisExpression:case yo.LocalsExpression:t.constant=!1,t.toWatch=[]}}function ln(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:undefined}}function fn(t){return t.type===yo.Identifier||t.type===yo.MemberExpression}function hn(t){if(1===t.body.length&&fn(t.body[0].expression))return{type:yo.AssignmentExpression,left:t.body[0].expression,right:{type:yo.NGValueParameter},operator:"="}}function dn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===yo.Literal||t.body[0].expression.type===yo.ArrayExpression||t.body[0].expression.type===yo.ObjectExpression)}function pn(t){return t.constant}function mn(t,e){this.astBuilder=t,this.$filter=e}function vn(t,e){this.astBuilder=t,this.$filter=e}function $n(t){return"constructor"==t}function gn(t){return _(t.valueOf)?t.valueOf():wo.call(t)}function yn(){var t,e,n=pt(),i=pt(),o={"true":!0,"false":!1,"null":null,undefined:undefined};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(s){function a(t,e,r){var o,a,c;switch(r=r||b,typeof t){case"string":t=t.trim();var v=r?i:n;if(!(o=v[c=t])){":"===t.charAt(0)&&":"===t.charAt(1)&&(a=!0,t=t.substring(2));var g=r?y:$,w=new go(g);(o=new bo(w,s,g).parse(t)).constant?o.$$watchDelegate=p:a?o.$$watchDelegate=o.literal?h:f:o.inputs&&(o.$$watchDelegate=l),r&&(o=u(o)),v[c]=o}return m(o,e);case"function":return m(t,e);default:return m(d,e)}}function u(t){function e(e,n,r,i){var o=b;b=!0;try{return t(e,n,r,i)}finally{b=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=u(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=u(t.inputs[n]);return e.inputs=t.inputs,e}function c(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=gn(t)))&&(t===e||t!=t&&e!=e)}function l(t,e,n,r,i){var o,s=r.inputs;if(1===s.length){var a=c;return s=s[0],t.$watch(function(t){var e=s(t);return c(e,a)||(o=r(t,undefined,undefined,[e]),a=e&&gn(e)),o},e,n,i)}for(var u=[],l=[],f=0,h=s.length;f<h;f++)u[f]=c,l[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=s.length;n<i;n++){var a=s[n](t);(e||(e=!c(a,u[n])))&&(l[n]=a,u[n]=a&&gn(a))}return e&&(o=r(t,undefined,undefined,l)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,_(e)&&e.apply(this,arguments),g(t)&&r.$$postDigest(function(){g(o)&&i()})},n)}function h(t,e,n,i){function o(t){var e=!0;return r(t,function(t){g(t)||(e=!1)}),e}var s,a;return s=t.$watch(function(t){return i(t)},function(t,n,r){a=t,_(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(a)&&s()})},n)}function p(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function m(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==h&&n!==f?function(n,i,o,s){var a=r&&s?s[0]:t(n,i,o,s);return e(a,n,i)}:function(n,r,i,o){var s=t(n,r,i,o),a=e(s,n,r);return g(s)?a:s};return t.$$watchDelegate&&t.$$watchDelegate!==l?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=l,r=!t.inputs,i.inputs=t.inputs?t.inputs:[t]),i}var v=Qr().noUnsafeEval,$={csp:v,expensiveChecks:!1,literals:Y(o),isIdentifierStart:_(t)&&t,isIdentifierContinue:_(e)&&e},y={csp:v,expensiveChecks:!0,literals:Y(o),isIdentifierStart:_(t)&&t,isIdentifierContinue:_(e)&&e},b=!1;return a.$$runningExpensiveChecks=function(){return b},a}]}function bn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return xn(function(e){t.$evalAsync(e)},e)}]}function wn(){this.$get=["$browser","$exceptionHandler",function(t,e){return xn(function(e){t.defer(e)},e)}]}function xn(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function s(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=undefined;for(var o=0,s=i.length;o<s;++o){r=i[o][0],e=i[o][t.status];try{_(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(a){r.reject(a),n(a)}}}function a(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){s(e)}))}function u(){this.promise=new i}function l(t){var e=new u,n=0,i=Zr(t)?[]:{};return r(t,function(t,r){n++,g(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}function f(t){var e=d();return r(t,function(t){g(t).then(e.resolve,e.reject)}),e.promise}var h=e("$q",TypeError),d=function(){var t=new u;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};c(i.prototype,{then:function(t,e,n){if($(t)&&$(e)&&$(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&a(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return v(e,!0,t)},function(e){return v(e,!1,t)},e)}}),c(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(h("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){u||(u=!0,s.$$resolve(t))}function r(t){u||(u=!0,s.$$reject(t))}var i,s=this,u=!1;try{(y(t)||_(t))&&(i=t&&t.then),_(i)?(this.promise.$$state.status=-1,i.call(t,e,r,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,a(this.promise.$$state))}catch(c){r(c),n(c)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,s=r.length;o<s;o++){i=r[o][0],t=r[o][3];try{i.notify(_(t)?t(e):e)}catch(a){n(a)}}})}});var p=function(t){var e=new u;return e.reject(t),e.promise},m=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},v=function(t,e,n){var r=null;try{_(n)&&(r=n())}catch(i){return m(i,!1)}return T(r)?r.then(function(){return m(t,e)},function(t){return m(t,!1)}):m(t,e)},g=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},b=g,w=function(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!_(t))throw h("norslvr","Expected resolverFn, got '{0}'",t);var r=new u;return t(e,n),r.promise};return w.prototype=i.prototype,w.defer=d,w.reject=p,w.when=g,w.resolve=b,w.all=l,w.race=f,w}function Sn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function _n(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=s(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),a=null,u=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,c,l){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===Ir&&(t.$$childHead&&h(t.$$childHead),t.$$nextSibling&&h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=s(),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 m(t){if(k.$$phase)throw o("inprog","{0} already in progress",k.$$phase);k.$$phase=t}function v(){k.$$phase=null}function g(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function b(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function w(){}function x(){for(;E.length;)try{E.shift()()}catch(t){e(t)}u=null}function S(){null===u&&(u=l.defer(function(){k.$apply(x)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return a=null,_(e)||(u.fn=d),s||(s=o.$$watchers=[]),s.unshift(u),g(this,1),function(){V(s,u)>=0&&g(o,-1),a=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(o,o,a)):e(o,i,a)}var i=new Array(t.length),o=new Array(t.length),s=[],a=this,u=!1,c=!0;if(!t.length){var l=!0;return a.$evalAsync(function(){l&&e(o,o,a)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=a.$watch(t,function(t,r){o[e]=t,i[e]=r,u||(u=!0,a.$evalAsync(n))});s.push(r)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function r(t){var e,r,i,a;if(!$(o=t)){if(y(o))if(n(o)){s!==d&&(v=(s=d).length=0,f++),e=o.length,v!==e&&(f++,s.length=v=e);for(var u=0;u<e;u++)a=s[u],i=o[u],a!=a&&i!=i||a===i||(f++,s[u]=i)}else{for(r in s!==p&&(s=p={},v=0,f++),e=0,o)Tr.call(o,r)&&(e++,i=o[r],a=s[r],r in s?a!=a&&i!=i||a===i||(f++,s[r]=i):(v++,s[r]=i,f++));if(v>e)for(r in f++,s)Tr.call(o,r)||(v--,delete s[r])}else s!==o&&(s=o,f++);return f}}function i(){if(m?(m=!1,e(o,o,u)):e(o,a,u),l)if(y(o))if(n(o)){a=new Array(o.length);for(var t=0;t<o.length;t++)a[t]=o[t]}else for(var r in a={},o)Tr.call(o,r)&&(a[r]=o[r]);else a=o}r.$stateful=!0;var o,s,a,u=this,l=e.length>1,f=0,h=c(t,r),d=[],p={},m=!0,v=0;return this.$watch(h,i)},$digest:function(){var t,n,r,s,c,f,h,d,p,$,g=i,y=this,b=[];m("$digest"),l.$$checkUrlChange(),this===k&&null!==u&&(l.defer.cancel(u),x()),a=null;do{f=!1,d=y;for(var S=0;S<C.length;S++){try{($=C[S]).scope.$eval($.expression,$.locals)}catch(E){e(E)}a=null}C.length=0;t:do{if(s=d.$$watchers)for(c=s.length;c--;)try{if(t=s[c])if((n=(0,t.get)(d))===(r=t.last)||(t.eq?F(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(t===a){f=!1;break t}}else f=!0,a=t,t.last=t.eq?Y(n,null):n,(0,t.fn)(n,r===w?n:r,d),g<5&&(b[p=4-g]||(b[p]=[]),b[p].push({msg:_(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(E){e(E)}if(!(h=d.$$watchersCount&&d.$$childHead||d!==y&&d.$$nextSibling))for(;d!==y&&!(h=d.$$nextSibling);)d=d.$parent}while(d=h);if((f||C.length)&&!g--)throw v(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,b)}while(f||C.length);for(v();A<M.length;)try{M[A++]()}catch(E){e(E)}M.length=A=0},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&l.$$applicationDestroyed(),g(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$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=d,this.$on=this.$watch=this.$watchGroup=function(){return d},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){k.$$phase||C.length||l.defer(function(){C.length&&k.$digest()}),C.push({scope:this,expression:c(t),locals:e})},$$postDigest:function(t){M.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{v()}}catch(n){e(n)}finally{try{k.$digest()}catch(n){throw e(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&E.push(e),t=c(t),S()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,b(i,1,t))}},$emit:function(t){var n,r,i,o=[],s=this,a=!1,u={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=L([u],arguments,1);do{for(n=s.$$listeners[t]||o,u.currentScope=s,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,c)}catch(l){e(l)}else n.splice(r,1),r--,i--;if(a)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(t){var n=this,r=n,i=n,o={name:t,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return o;for(var s,a,u,c=L([o],arguments,1);r=i;){for(o.currentScope=r,a=0,u=(s=r.$$listeners[t]||[]).length;a<u;a++)if(s[a])try{s[a].apply(null,c)}catch(l){e(l)}else s.splice(a,1),a--,u--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var k=new p,C=k.$$asyncQueue=[],M=k.$$postDigestQueue=[],E=k.$$applyAsyncQueue=[],A=0;return k}]}function kn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return g(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return g(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return""===(i=jn(n).href)||i.match(o)?n:"unsafe:"+i}}}function Cn(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw xo("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=Kr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(k(t))return new RegExp("^"+t.source+"$");throw xo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Mn(t){var e=[];return g(t)&&r(t,function(t){e.push(Cn(t))}),e}function En(){this.SCE_CONTEXTS=So;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Mn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Mn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Pn(e):!!t.exec(e.href)}function i(n){var i,o,s=jn(n.toString()),a=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],s)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(r(e[i],s)){a=!1;break}return a}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw xo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||$(e)||""===e)return e;if("string"!=typeof e)throw xo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function a(t){return t instanceof l?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||$(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===So.RESOURCE_URL){if(i(e))return e;throw xo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===So.HTML)return c(e);throw xo("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw xo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var l=o(),f={};return f[So.HTML]=o(l),f[So.CSS]=o(l),f[So.URL]=o(l),f[So.JS]=o(l),f[So.RESOURCE_URL]=o(f[So.URL]),{trustAs:s,getTrusted:u,valueOf:a}}]}function An(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Ir<8)throw xo("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.");var i=vt(So)
;i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=p),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,s=i.getTrusted,a=i.trustAs;return r(So,function(t,e){var n=Nr(e);i[wt("parse_as_"+n)]=function(e){return o(t,e)},i[wt("get_trusted_"+n)]=function(e){return s(t,e)},i[wt("trust_as_"+n)]=function(e){return a(t,e)}}),i}]}function Dn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=!(t.chrome&&t.chrome.app&&t.chrome.app.runtime)&&t.history&&t.history.pushState,s=f((/android (\d+)/.exec(Nr((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),u=e[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,l=u.body&&u.body.style,h=!1,d=!1;if(l){for(var p in l)if(r=c.exec(p)){n=(n=r[0])[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),h=!!("transition"in l||n+"Transition"in l),d=!!("animation"in l||n+"Animation"in l),!s||h&&d||(h=w(l.webkitTransition),d=w(l.webkitAnimation))}return{history:!(!o||s<4||a),hasEvent:function(t){if("input"===t&&Ir<=11)return!1;if($(i[t])){var e=u.createElement("div");i[t]="on"+t in e}return i[t]},csp:Qr(),vendorPrefix:n,transitions:h,animations:d,android:s}}]}function On(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(s,a){function u(t){if(!a)throw _o("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText);return r.reject(t)}o.totalPendingRequests++,w(s)&&!$(e.get(s))||(s=i.getTrustedResourceUrl(s));var l=n.defaults&&n.defaults.transformResponse;return Zr(l)?l=l.filter(function(t){return t!==Ce}):l===Ce&&(l=null),n.get(s,c({cache:e,transformResponse:l},t))["finally"](function(){o.totalPendingRequests--}).then(function(t){return e.put(s,t.data),t.data},u)}return o.totalPendingRequests=0,o}]}function Tn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={findBindings:function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return r(i,function(t){var i=zr.element(t).data("$binding");i&&r(i,function(r){n?new RegExp("(^|\\s)"+Kr(e)+"(\\s|\\||$)").test(r)&&o.push(t):-1!=r.indexOf(e)&&o.push(t)})}),o},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",s="["+r[i]+"model"+o+'"'+e+'"]',a=t.querySelectorAll(s);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}};return i}]}function Nn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,a,u){_(o)||(u=a,a=o,o=d);var c,l=U(arguments,3),f=g(u)&&!u,h=(f?r:n).defer(),p=h.promise;return c=e.defer(function(){try{h.resolve(o.apply(null,l))}catch(e){h.reject(e),i(e)}finally{delete s[p.$$timeoutId]}f||t.$apply()},a),p.$$timeoutId=c,s[c]=h,p}var s={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in s)&&(s[t.$$timeoutId].reject("canceled"),delete s[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function jn(t){var e=t;return Ir&&(ko.setAttribute("href",e),e=ko.href),ko.setAttribute("href",e),{href:ko.href,protocol:ko.protocol?ko.protocol.replace(/:$/,""):"",host:ko.host,search:ko.search?ko.search.replace(/^\?/,""):"",hash:ko.hash?ko.hash.replace(/^#/,""):"",hostname:ko.hostname,port:ko.port,pathname:"/"===ko.pathname.charAt(0)?ko.pathname:"/"+ko.pathname}}function Pn(t){var e=w(t)?jn(t):t;return e.protocol===Co.protocol&&e.host===Co.host}function Rn(){this.$get=m(t)}function In(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,s,a,u,c=n.cookie||"";if(c!==i)for(t=(i=c).split("; "),r={},s=0;s<t.length;s++)(a=(o=t[s]).indexOf("="))>0&&(u=e(o.substring(0,a)),$(r[u])&&(r[u]=e(o.substring(a+1))));return r}}function Vn(){this.$get=In}function Yn(t){function e(i,o){if(y(i)){var s={};return r(i,function(t,n){s[n]=e(n,t)}),s}return t.factory(i+n,o)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Wn),e("date",or),e("filter",Fn),e("json",sr),e("limitTo",ar),e("lowercase",No),e("number",qn),e("orderBy",cr),e("uppercase",jo)}function Fn(){return function(t,r,i,o){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}var s,a;switch(o=o||"$",Hn(r)){case"function":s=r;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":s=Ln(r,i,o,a);break;default:return t}return Array.prototype.filter.call(t,s)}}function Ln(t,e,n,r){var i=y(t)&&n in t;return!0===e?e=F:_(e)||(e=function(t,e){return!$(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!v(t))&&(t=Nr(""+t),e=Nr(""+e),-1!==t.indexOf(e)))}),function(o){return i&&!y(o)?Un(o,t[n],e,n,!1):Un(o,t,e,n,r)}}function Un(t,e,n,r,i,o){var s=Hn(t),a=Hn(e);if("string"===a&&"!"===e.charAt(0))return!Un(t,e.substring(1),n,r,i);if(Zr(t))return t.some(function(t){return Un(t,e,n,r,i)});switch(s){case"object":var u;if(i){for(u in t)if("$"!==u.charAt(0)&&Un(t[u],e,n,r,!0))return!0;return!o&&Un(t,e,n,r,!1)}if("object"===a){for(u in e){var c=e[u];if(!_(c)&&!$(c)){var l=u===r;if(!Un(l?t:t[u],c,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Hn(t){return null===t?"null":typeof t}function Wn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return $(n)&&(n=e.CURRENCY_SYM),$(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Gn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function qn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Gn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Bn(t){var e,n,r,i,o,s=0;for((n=t.indexOf(Eo))>-1&&(t=t.replace(Eo,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==Ao;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==Ao;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>Mo&&(e=e.splice(0,Mo-1),s=n-1,n=1),{d:e,e:s,i:n}}function zn(t,e,n,r){var i=t.d,o=i.length-t.i,s=(e=$(e)?Math.min(Math.max(n,o),r):+e)+t.i,a=i[s];if(s>0){i.splice(Math.max(t.i,s));for(var u=s;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,s=e+1),i[0]=0;for(var c=1;c<s;c++)i[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[s-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);f&&(i.unshift(f),t.i++)}function Gn(t,e,n,r,i){if(!w(t)&&!x(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,u=Math.abs(t)+"",c="";if(s)c="\u221e";else{zn(o=Bn(u),i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,h=o.e,d=[];for(a=l.reduce(function(t,e){return t&&!e},!0);f<0;)l.unshift(0),f++;f>0?d=l.splice(f,l.length):(d=l,l=[0]);var p=[];for(l.length>=e.lgSize&&p.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)p.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),c=p.join(n),d.length&&(c+=r+d.join("")),h&&(c+="e+"+h)}return t<0&&!a?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function Zn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t=Ao+t;return n&&(t=t.substr(t.length-e)),i+t}function Jn(t,e,n,r,i){return n=n||0,function(o){var s=o["get"+t]();return(n>0||s>-n)&&(s+=n),0===s&&-12==n&&(s=12),Zn(s,e,r,i)}}function Xn(t,e,n){return function(r,i){var o=r["get"+t]();return i[jr((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function Kn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Zn(Math[r>0?"floor":"ceil"](r/60),2)+Zn(Math.abs(r%60),2)}function Qn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function tr(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function er(t){return function(e){var n=Qn(e.getFullYear()),r=+tr(e)-+n;return Zn(1+Math.round(r/6048e5),t)}}function nr(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function rr(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function ir(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function or(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,s=e[8]?r.setUTCFullYear:r.setFullYear,a=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),o=f(e[9]+e[11])),s.call(r,f(e[1]),f(e[2])-1,f(e[3]));var u=f(e[4]||0)-i,c=f(e[5]||0)-o,l=f(e[6]||0),h=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(r,u,c,l,h),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var s,a,u="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,w(n)&&(n=To.test(n)?f(n):e(n)),x(n)&&(n=new Date(n)),!S(n)||!isFinite(n.getTime()))return n;for(;i;)(a=Oo.exec(i))?i=(c=L(c,a,1)).pop():(c.push(i),i=null);var l=n.getTimezoneOffset();return o&&(l=z(o,l),n=Z(n,o,!0)),r(c,function(e){s=Do[e],u+=s?s(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function sr(){return function(t,e){return $(e)&&(e=2),q(t,e)}}function ar(){return function(t,e,r){return e=Math.abs(Number(e))===Infinity?Number(e):f(e),isNaN(e)?t:(x(t)&&(t=t.toString()),n(t)?(r=(r=!r||isNaN(r)?0:f(r))<0?Math.max(0,t.length+r):r,e>=0?ur(t,r,r+e):0===r?ur(t,e,t.length):ur(t,Math.max(0,r+e),r)):t)}}function ur(t,e,n){return w(t)?t.slice(e,n):Lr.call(t,e,n)}function cr(t){function r(e){return e.map(function(e){var n=1,r=p;if(_(e))r=e;else if(w(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t){return _(t.valueOf)&&i(t=t.valueOf())?t:(v(t)&&i(t=t.toString()),t)}function s(t,e){var n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=o(t)),{value:t,type:n,index:e}}function a(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,s=e.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(y(o)&&(o=t.index),y(s)&&(s=e.index)),o!==s&&(n=o<s?-1:1)}else n=r<i?-1:1;return n}return function(t,i,o,u){function c(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:f.map(function(n){return s(n.get(t),e)})}}function l(t,e){for(var n=0,r=f.length;n<r;n++){var i=d(t.predicateValues[n],e.predicateValues[n]);if(i)return i*f[n].descending*h}return d(t.tieBreaker,e.tieBreaker)*h}if(null==t)return t;if(!n(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);Zr(i)||(i=[i]),0===i.length&&(i=["+"]);var f=r(i),h=o?-1:1,d=_(u)?u:a,p=Array.prototype.map.call(t,c);return p.sort(l),t=p.map(function(t){return t.value})}}function lr(t){return _(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function fr(t,e){t.$name=e}function hr(t,e,n,i,o){var s=this,a=[];s.$error={},s.$$success={},s.$pending=undefined,s.$name=o(e.name||e.ngForm||"")(n),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=Io,s.$rollbackViewValue=function(){r(a,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){r(a,function(t){t.$commitViewValue()})},s.$addControl=function(t){ft(t.$name,"input"),a.push(t),t.$name&&(s[t.$name]=t),t.$$parentForm=s},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],r(s.$pending,function(e,n){s.$setValidity(n,null,t)}),r(s.$error,function(e,n){s.$setValidity(n,null,t)}),r(s.$$success,function(e,n){s.$setValidity(n,null,t)}),V(a,t),t.$$parentForm=Io},Mr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])},$animate:i}),s.$setDirty=function(){i.removeClass(t,ws),i.addClass(t,xs),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(t,ws,xs+" "+Vo),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,r(a,function(t){t.$setPristine()})},s.$setUntouched=function(){r(a,function(t){t.$setUntouched()})},s.$setSubmitted=function(){i.addClass(t,Vo),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function dr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function pr(t,e,n,r,i,o){mr(t,e,n,r,i,o),dr(r)}function mr(t,e,n,r,i,o){var s,a=Nr(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",function(){u=!0}),e.on("compositionend",function(){u=!1,c()})}var c=function(t){if(s&&(o.defer.cancel(s),s=null),!u){var i=e.val(),c=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){s||(s=o.defer(function(){s=null,e&&e.value===n||c(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",l)}e.on("change",c),Ko[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Xo,function(t){if(!s){var e=this[Or],n=e.badInput,r=e.typeMismatch;s=o.defer(function(){s=null,e.badInput===n&&e.typeMismatch===r||c(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function vr(t,e){if(S(t))return t;if(w(t)){Go.lastIndex=0;var n=Go.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,u=0,c=Qn(r),l=7*(i-1);return e&&(o=e.getHours(),s=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,c.getDate()+l,o,s,a,u)}}return NaN}function $r(t,e){return function(n,i){var o,s;if(S(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Uo.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),s=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n<e.length&&(s[e[n]]=+t)}),new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0)}return NaN}}function gr(t,e,n,r){return function(i,o,s,a,u,c,l){function f(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return g(t)&&!S(t)?n(t)||undefined:t}yr(i,o,s,a),mr(i,o,s,a,u,c);var d,p,m,v=a&&a.$options&&a.$options.timezone;(a.$$parserName=t,a.$parsers.push(function(t){if(a.$isEmpty(t))return null;if(e.test(t)){var r=n(t,d);return v&&(r=Z(r,v)),r}return undefined}),a.$formatters.push(function(t){if(t&&!S(t))throw Es("datefmt","Expected `{0}` to be a date",t);return f(t)?((d=t)&&v&&(d=Z(d,v,!0)),l("date")(t,r,v)):(d=null,"")}),g(s.min)||s.ngMin)&&(a.$validators.min=function(t){return!f(t)||$(p)||n(t)>=p},s.$observe("min",function(t){p=h(t),a.$validate()}));(g(s.max)||s.ngMax)&&(a.$validators.max=function(t){return!f(t)||$(m)||n(t)<=m},s.$observe("max",function(t){m=h(t),a.$validate()}))}}function yr(t,e,n,r){var i=e[0];(r.$$hasNativeValidators=y(i.validity))&&r.$parsers.push(function(t){var n=e.prop(Or)||{};return n.badInput||n.typeMismatch?undefined:t})}function br(t,e,n,r,i,o){var s,a;(yr(t,e,n,r),mr(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:qo.test(t)?parseFloat(t):undefined}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!x(t))throw Es("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),g(n.min)||n.ngMin)&&(r.$validators.min=function(t){return r.$isEmpty(t)||$(s)||t>=s},n.$observe("min",function(t){g(t)&&!x(t)&&(t=parseFloat(t)),s=x(t)&&!isNaN(t)?t:undefined,r.$validate()}));(g(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||$(a)||t<=a},n.$observe("max",function(t){g(t)&&!x(t)&&(t=parseFloat(t)),a=x(t)&&!isNaN(t)?t:undefined,r.$validate()}))}function wr(t,e,n,r,i,o){mr(t,e,n,r,i,o),dr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ho.test(n)}}function xr(t,e,n,r,i,o){mr(t,e,n,r,i,o),dr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Wo.test(n)}}function Sr(t,e,n,r){$(n.name)&&e.attr("name",s());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function _r(t,e,n,r,i){var o;if(g(r)){if(!(o=t(r)).constant)throw Es("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function kr(t,e,n,r,i,o,s,a){var u=_r(a,t,"ngTrueValue",n.ngTrueValue,!0),c=_r(a,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return F(t,u)}),r.$parsers.push(function(t){return t?u:c})}function Cr(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function o(t){var e=[];return Zr(t)?(r(t,function(t){e=e.concat(o(t))}),e):w(t)?t.split(" "):y(t)?(r(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(s,a,u){function c(t){var e=f(t,1);u.$addClass(e)}function l(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=a.data("$classCounts")||pt(),i=[];return r(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),a.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),o=i(t,e);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(a,r),o&&o.length&&n.removeClass(a,o)}function d(t){if(!0===e||(1&s.$index)===e){var n=o(t||[]);if(p){if(!F(t,p)){h(o(p),n)}}else c(n)}p=Zr(t)?t.map(function(t){return vt(t)}):vt(t)}var p;s.$watch(u[t],d,!0),u.$observe("class",function(){d(s.$eval(u[t]))}),"ngClass"!==t&&s.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var a=o(s.$eval(u[t]));i===e?c(a):l(a)}})}}}]}function Mr(t){function e(t,e,a){var u;$(e)?n("$pending",t,a):r("$pending",t,a),O(e)?e?(l(s.$error,t,a),c(s.$$success,t,a)):(c(s.$error,t,a),l(s.$$success,t,a)):(l(s.$error,t,a),l(s.$$success,t,a)),s.$pending?(i(ks,!0),s.$valid=s.$invalid=undefined,o("",null)):(i(ks,!1),s.$valid=Er(s.$error),s.$invalid=!s.$valid,o("",s.$valid)),o(t,u=s.$pending&&s.$pending[t]?undefined:!s.$error[t]&&(!!s.$$success[t]||null)),s.$$parentForm.$setValidity(t,u,s)}function n(t,e,n){s[t]||(s[t]={}),c(s[t],e,n)}function r(t,e,n){s[t]&&l(s[t],e,n),Er(s[t])&&(s[t]=undefined)}function i(t,e){e&&!u[t]?(f.addClass(a,t),u[t]=!0):!e&&u[t]&&(f.removeClass(a,t),u[t]=!1)}function o(t,e){t=t?"-"+at(t,"-"):"",i(ys+t,!0===e),i(bs+t,!1===e)}var s=t.ctrl,a=t.$element,u={},c=t.set,l=t.unset,f=t.$animate;u[bs]=!(u[ys]=a.hasClass(ys)),s.$setValidity=e}function Er(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Ar(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var Dr=/^\/(.+)\/([a-z]*)$/,Or="validity",Tr=Object.prototype.hasOwnProperty,Nr=function(t){return w(t)?t.toLowerCase():t},jr=function(t){return w(t)?t.toUpperCase():t},Pr=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Rr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Nr=Pr,jr=Rr);var Ir,Vr,Yr,Fr,Lr=[].slice,Ur=[].splice,Hr=[].push,Wr=Object.prototype.toString,qr=Object.getPrototypeOf,Br=e("ng"),zr=t.angular||(t.angular={}),Gr=0;Ir=t.document.documentMode,d.$inject=[],p.$inject=[];var Zr=Array.isArray,Jr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Xr=function(t){return w(t)?t.trim():t},Kr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Qr=function(){function e(){try{return new Function(""),!1}catch(t){return!0}}if(!g(Qr.rules)){var n=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Qr.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Qr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Qr.rules},ti=function(){if(g(ti.name_))return ti.name_;var e,n,r,i,o=ni.length;for(n=0;n<o;++n)if(r=ni[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ti.name_=i},ei=/:/g,ni=["ng-","data-ng-","ng:","x-ng-"],ri=/[A-Z]/g,ii=!1,oi=1,si=2,ai=3,ui=8,ci=9,li=11,fi={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};At.expando="ng339";var hi=At.cache={},di=1,pi=function(t,e,n){t.addEventListener(e,n,!1)},mi=function(t,e,n){t.removeEventListener(e,n,!1)};At._data=function(t){return this.cache[t[this.expando]]||{}};var vi=/([\:\-\_]+(.))/g,$i=/^moz([A-Z])/,gi={mouseleave:"mouseout",mouseenter:"mouseover"},yi=e("jqLite"),bi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wi=/<|&#?\w+;/,xi=/<([\w:-]+)/,Si=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,_i={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,"",""]};_i.optgroup=_i.option,_i.tbody=_i.tfoot=_i.colgroup=_i.caption=_i.thead,_i.th=_i.td;var ki=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Ci=At.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),At(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Vr(t>=0?this[t]:this[this.length+t])},length:0,push:Hr,sort:[].sort,splice:[].splice},Mi={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Mi[Nr(t)]=t});var Ei={};r("input,select,option,textarea,button,form,details".split(","),function(t){Ei[t]=!0});var Ai={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:Pt,removeData:Nt,hasData:_t,cleanData:kt},function(t,e){At[e]=t}),r({data:Pt,inheritedData:Lt,scope:function(t){return Vr.data(t,"$scope")||Lt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Vr.data(t,"$isolateScope")||Vr.data(t,"$isolateScopeNoTemplate")},controller:Ft,injector:function(t){return Lt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Rt,css:function(t,e,n){if(e=wt(e),!g(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r=t.nodeType;if(r!==ai&&r!==si&&r!==ui){var i=Nr(e);if(Mi[i]){if(!g(n))return t[e]||(t.attributes.getNamedItem(e)||d).specified?i:undefined;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(g(n))t.setAttribute(e,n);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?undefined:o}}},prop:function(t,e,n){if(!g(n))return t[e];t[e]=n},text:function(){function t(t,e){if($(e)){var n=t.nodeType;return n===oi||n===ai?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if($(e)){if(t.multiple&&"select"===I(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if($(e))return t.innerHTML;Ot(t,!0),t.innerHTML=e},empty:Ut},function(t,e){At.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ut&&$(2==t.length&&t!==Rt&&t!==Ft?e:n)){if(y(e)){for(r=0;r<o;r++)if(t===Pt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=$(s)?Math.min(o,1):o,u=0;u<a;u++){var c=t(this[u],e,n);s=s?s+c:c}return s}for(r=0;r<o;r++)t(this[r],e,n);return this}}),r({removeData:Nt,on:function(t,e,n,r){if(g(r))throw yi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(St(t)){var i=jt(t,!0),o=i.events,s=i.handle;s||(s=i.handle=zt(t,o));for(var a=e.indexOf(" ")>=0?e.split(" "):[e],u=a.length,c=function(e,r,i){var a=o[e];a||((a=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||pi(t,e,s)),a.push(n)};u--;)e=a[u],gi[e]?(c(gi[e],Zt),c(e,undefined,!0)):c(e)}},off:Tt,one:function(t,e,n){(t=Vr(t)).on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Ot(t),r(new At(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===oi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===oi||n===li)for(var r=0,i=(e=new At(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(t.nodeType===oi){var n=t.firstChild;r(new At(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){Et(t,Vr(e).eq(0).clone()[0])},remove:Ht,detach:function(t){Ht(t,!0)},after:function(t,e){for(var n=t,r=t.parentNode,i=0,o=(e=new At(e)).length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:Vt,removeClass:It,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;$(r)&&(r=!Rt(t,e)),(r?Vt:It)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==li?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var i,o,s,a=e.type||e,u=jt(t),l=u&&u.events,f=l&&l[a];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:d,type:a,target:t},e.type&&(i=c(i,e)),o=vt(f),s=n?[i].concat(n):[i],r(o,function(e){i.isImmediatePropagationStopped()||e.apply(t,s)}))}},function(t,e){At.prototype[e]=function(e,n,r){for(var i,o=0,s=this.length;o<s;o++)$(i)?g(i=t(this[o],e,n,r))&&(i=Vr(i)):Yt(i,t(this[o],e,n,r));return g(i)?i:this},At.prototype.bind=At.prototype.on,At.prototype.unbind=At.prototype.off}),Kt.prototype={put:function(t,e){this[Xt(t,this.nextUid)]=e},get:function(t){return this[Xt(t,this.nextUid)]},remove:function(t){var e=this[t=Xt(t,this.nextUid)];return delete this[t],e}};var Di=[function(){this.$get=[function(){return Kt}]}],Oi=/^([^\(]+?)=>/,Ti=/^[^\(]*\(\s*([^\)]*)\)/m,Ni=/,/,ji=/^\s*(_?)(\S+?)\1\s*$/,Pi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ri=e("$injector");re.$$annotate=ne;var Ii=e("$animate"),Vi=1,Yi="ng-animate",Fi=function(){this.$get=d},Li=function(){var t=new Kt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&r(e=w(e)?e.split(" "):Zr(e)?e:[],function(e){e&&(i=!0,t[e]=n)}),i}function s(){r(e,function(e){var n=t.get(e);if(n){var i=ae(e.attr("class")),o="",s="";r(n,function(t,e){t!==!!i[e]&&(t?o+=(o.length?" ":"")+e:s+=(s.length?" ":"")+e)}),r(e,function(t){o&&Vt(t,o),s&&It(t,s)}),t.remove(e)}}),e.length=0}function a(n,r,a){var u=t.get(n)||{},c=o(u,r,!0),l=o(u,a,!1);(c||l)&&(t.put(n,u),e.push(n),1===e.length&&i.$$postDigest(s))}return{enabled:d,on:d,off:d,pin:d,push:function(t,e,r,i){i&&i(),(r=r||{}).from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&a(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ui=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ii("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter&&new RegExp("(\\s+|\\/)"+Yi+"(\\s+|\\/)").test(this.$$classNameFilter.toString())))throw Ii("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Yi);return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=se(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&Vr(r),i=i&&Vr(i),e(n,r=r||i.parent(),i),t.push(n,"enter",ue(o))},move:function(n,r,i,o){return r=r&&Vr(r),i=i&&Vr(i),e(n,r=r||i.parent(),i),t.push(n,"move",ue(o))},leave:function(e,n){return t.push(e,"leave",ue(n),function(){e.remove()})},addClass:function(e,n,r){return(r=ue(r)).addClass=oe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=ue(r)).removeClass=oe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=ue(i)).addClass=oe(i.addClass,n),i.removeClass=oe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=ue(o)).from=o.from?c(o.from,n):n,o.to=o.to?c(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=oe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Hi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},Wi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,i,o){function s(t){this.setHost(t);var e=n(),r=function(t){o(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=i[0];n&&n.hidden?r(t):e(t)},this._state=0}var a=0,u=1,c=2;return s.chain=function(t,e){function n(){r!==t.length?t[r](function(t){!1!==t?(r++,n()):e(!1)}):e(!0)}var r=0;n()},s.all=function(t,e){function n(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;r(t,function(t){t.done(n)})},s.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===c?t():this._doneCallbacks.push(t)},progress:d,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},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(t){var e=this;e._state===a&&(e._state=u,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==c&&(r(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=c)}},s}]},qi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),a||u.complete(),a=!0}),u}function o(){s.addClass&&(e.addClass(s.addClass),s.addClass=null),s.removeClass&&(e.removeClass(s.removeClass),s.removeClass=null),s.to&&(e.css(s.to),s.to=null)}var s=r||{};s.$$prepared||(s=Y(s)),s.cleanupStyles&&(s.from=s.to=null),s.from&&(e.css(s.from),s.from=null);var a,u=new n;return{start:i,end:i}}}]},Bi=e("$compile"),zi=new de;pe.$inject=["$provide","$$sanitizeUriProvider"],me.prototype.isFirstChange=function(){return this.previousValue===zi};var Gi=/^((?:x|data)[\:\-_])/i,Zi=e("$controller"),Ji=/^(\S+)(\s+as\s+([\w$]+))?$/,Xi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Vr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Ki="application/json",Qi={"Content-Type":Ki+";charset=utf-8"},to=/^\[|^\{(?!\{)/,eo={"[":/]$/,"{":/}$/},no=/^\)\]\}',?\n/,ro=e("$http"),io=function(t){return function(){throw ro("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},oo=zr.$interpolateMinErr=e("$interpolate");oo.throwNoconcat=function(t){throw oo("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",t)},oo.interr=function(t,e){return oo("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var so=function(){this.$get=["$window",function(t){function e(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}var n=t.angular.callbacks,r={};return{createCallback:function(){var t="_"+(n.$$counter++).toString(36),i="angular.callbacks."+t,o=e(t);return r[i]=n[t]=o,i},wasCalled:function(t){return r[t].called},getResponse:function(t){return r[t].data},removeCallback:function(t){var e=r[t];delete n[e.id],delete r[t]}}}]},ao=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,uo={http:80,https:443,
ftp:21},co=e("$location"),lo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Je("$$absUrl"),url:function(t){if($(t))return this.$$url;var e=ao.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Je("$$protocol"),host:Je("$$host"),port:Je("$$port"),path:Xe("$$path",function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||x(t))t=t.toString(),this.$$search=K(t);else{if(!y(t))throw co("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");r(t=Y(t,{}),function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:$(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Xe("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Ze,Ge,ze],function(t){t.prototype=Object.create(lo),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ze||!this.$$html5)throw co("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=$(e)?null:e,this}});var fo=e("$parse"),ho=Function.prototype.call,po=Function.prototype.apply,mo=Function.prototype.bind,vo=pt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){vo[t]=!0});var $o={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},go=function(t){this.options=t};go.prototype={constructor:go,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=vo[e],o=vo[n],s=vo[r];if(i||o||s){var a=s?r:o?n:e;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\x0B"===t||"\xa0"===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=g(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw fo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Nr(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{n+=$o[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var yo=function(t,e){this.lexer=t,this.options=e};yo.Program="Program",yo.ExpressionStatement="ExpressionStatement",yo.AssignmentExpression="AssignmentExpression",yo.ConditionalExpression="ConditionalExpression",yo.LogicalExpression="LogicalExpression",yo.BinaryExpression="BinaryExpression",yo.UnaryExpression="UnaryExpression",yo.CallExpression="CallExpression",yo.MemberExpression="MemberExpression",yo.Identifier="Identifier",yo.Literal="Literal",yo.ArrayExpression="ArrayExpression",yo.Property="Property",yo.ObjectExpression="ObjectExpression",yo.ThisExpression="ThisExpression",yo.LocalsExpression="LocalsExpression",yo.NGValueParameter="NGValueParameter",yo.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:yo.Program,body:t}},expressionStatement:function(){return{type:yo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:yo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:yo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:yo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:yo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:yo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=Y(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:yo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:yo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:yo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:yo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:yo.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:yo.Identifier,name:t.text}},constant:function(){return{type:yo.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:yo.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:yo.ObjectExpression,properties:e}},throwError:function(t,e){throw fo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},mn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},cn(i,n.$filter);var o,s="";if(this.stage="assign",o=hn(i)){this.state.computing="assign";var a=this.nextId();this.recurse(o,a),this.return_(a),s="fn.assign="+this.generateFunction("assign","s,v,l")}var u=ln(i.body);n.stage="inputs",r(u,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,tn,nn,rn,en,on,sn,an,t);return this.state=this.stage=undefined,l.literal=dn(i),l.constant=pn(i),l},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,i,o,s){var a,u,c,l,f,h=this;if(i=i||d,!s&&g(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));switch(t.type){case yo.Program:r(t.body,function(e,n){h.recurse(e.expression,undefined,undefined,function(t){u=t}),n!==t.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case yo.Literal:l=this.escape(t.value),this.assign(e,l),i(l);break;case yo.UnaryExpression:this.recurse(t.argument,undefined,undefined,function(t){u=t}),l=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,l),i(l);break;case yo.BinaryExpression:this.recurse(t.left,undefined,undefined,function(t){a=t}),this.recurse(t.right,undefined,undefined,function(t){u=t}),l="+"===t.operator?this.plus(a,u):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(u,0):"("+a+")"+t.operator+"("+u+")",this.assign(e,l),i(l);break;case yo.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case yo.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case yo.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),tn(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){o&&1!==o&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||$n(t.name))&&h.addEnsureSafeObject(e),i(e);break;case yo.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,a,undefined,function(){h.if_(h.notNull(a),function(){o&&1!==o&&h.addEnsureSafeAssignContext(a),t.computed?(u=h.nextId(),h.recurse(t.property,u),h.getStringValue(u),h.addEnsureSafeMemberName(u),o&&1!==o&&h.if_(h.not(h.computedMember(a,u)),h.lazyAssign(h.computedMember(a,u),"{}")),l=h.ensureSafeObject(h.computedMember(a,u)),h.assign(e,l),n&&(n.computed=!0,n.name=u)):(tn(t.property.name),o&&1!==o&&h.if_(h.not(h.nonComputedMember(a,t.property.name)),h.lazyAssign(h.nonComputedMember(a,t.property.name),"{}")),l=h.nonComputedMember(a,t.property.name),(h.state.expensiveChecks||$n(t.property.name))&&(l=h.ensureSafeObject(l)),h.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!o);break;case yo.CallExpression:e=e||this.nextId(),t.filter?(u=h.filter(t.callee.name),c=[],r(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),c.push(e)}),l=u+"("+c.join(",")+")",h.assign(e,l),i(e)):(u=h.nextId(),a={},c=[],h.recurse(t.callee,u,a,function(){h.if_(h.notNull(u),function(){h.addEnsureSafeFunction(u),r(t.arguments,function(t){h.recurse(t,h.nextId(),undefined,function(t){c.push(h.ensureSafeObject(t))})}),a.name?(h.state.expensiveChecks||h.addEnsureSafeObject(a.context),l=h.member(a.context,a.name,a.computed)+"("+c.join(",")+")"):l=u+"("+c.join(",")+")",l=h.ensureSafeObject(l),h.assign(e,l)},function(){h.assign(e,"undefined")}),i(e)}));break;case yo.AssignmentExpression:if(u=this.nextId(),a={},!fn(t.left))throw fo("lval","Trying to assign a value to a non l-value");this.recurse(t.left,undefined,a,function(){h.if_(h.notNull(a.context),function(){h.recurse(t.right,u),h.addEnsureSafeObject(h.member(a.context,a.name,a.computed)),h.addEnsureSafeAssignContext(a.context),l=h.member(a.context,a.name,a.computed)+t.operator+u,h.assign(e,l),i(e||l)})},1);break;case yo.ArrayExpression:c=[],r(t.elements,function(t){h.recurse(t,h.nextId(),undefined,function(t){c.push(t)})}),l="["+c.join(",")+"]",this.assign(e,l),i(l);break;case yo.ObjectExpression:c=[],f=!1,r(t.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),r(t.properties,function(t){t.computed?(a=h.nextId(),h.recurse(t.key,a)):a=t.key.type===yo.Identifier?t.key.name:""+t.key.value,u=h.nextId(),h.recurse(t.value,u),h.assign(h.member(e,a,t.computed),u)})):(r(t.properties,function(e){h.recurse(e.value,t.constant?undefined:h.nextId(),undefined,function(t){c.push(h.escape(e.key.type===yo.Identifier?e.key.name:""+e.key.value)+":"+t)})}),l="{"+c.join(",")+"}",this.assign(e,l)),i(e||l);break;case yo.ThisExpression:this.assign(e,"s"),i("s");break;case yo.LocalsExpression:this.assign(e,"l"),i("l");break;case yo.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[^$_a-zA-Z0-9]/g;return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(e)?t+"."+e:t+'["'+e.replace(n,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw fo("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},vn.prototype={compile:function(t,e){var n,i,o=this,s=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,cn(s,o.$filter),(n=hn(s))&&(i=this.recurse(n));var a,u=ln(s.body);u&&(a=[],r(u,function(t,e){var n=o.recurse(t);t.input=n,a.push(n),t.watchId=e}));var c=[];r(s.body,function(t){c.push(o.recurse(t.expression))});var l=0===s.body.length?d:1===s.body.length?c[0]:function(t,e){var n;return r(c,function(r){n=r(t,e)}),n};return i&&(l.assign=function(t,e,n){return i(t,n,e)}),a&&(l.inputs=a),l.literal=dn(s),l.constant=pn(s),l},recurse:function(t,e,n){var i,o,s,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case yo.Literal:return this.value(t.value,e);case yo.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case yo.BinaryExpression:case yo.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case yo.Identifier:return tn(t.name,a.expression),a.identifier(t.name,a.expensiveChecks||$n(t.name),e,n,a.expression);case yo.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(tn(t.property.name,a.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,a.expression):this.nonComputedMember(i,o,a.expensiveChecks,e,n,a.expression);case yo.CallExpression:return s=[],r(t.arguments,function(t){s.push(a.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var a=[],u=0;u<s.length;++u)a.push(s[u](t,n,r,i));var c=o.apply(undefined,a,i);return e?{context:undefined,name:undefined,value:c}:c}:function(t,n,r,i){var u,c=o(t,n,r,i);if(null!=c.value){nn(c.context,a.expression),rn(c.value,a.expression);for(var l=[],f=0;f<s.length;++f)l.push(nn(s[f](t,n,r,i),a.expression));u=nn(c.value.apply(c.context,l),a.expression)}return e?{value:u}:u};case yo.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,s){var u=i(t,n,r,s),c=o(t,n,r,s);return nn(u.value,a.expression),on(u.context),u.context[u.name]=c,e?{value:c}:c};case yo.ArrayExpression:return s=[],r(t.elements,function(t){s.push(a.recurse(t))}),function(t,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](t,n,r,i));return e?{value:o}:o};case yo.ObjectExpression:return s=[],r(t.properties,function(t){t.computed?s.push({key:a.recurse(t.key),computed:!0,value:a.recurse(t.value)}):s.push({key:t.key.type===yo.Identifier?t.key.name:""+t.key.value,computed:!1,value:a.recurse(t.value)})}),function(t,n,r,i){for(var o={},a=0;a<s.length;++a)s[a].computed?o[s[a].key(t,n,r,i)]=s[a].value(t,n,r,i):o[s[a].key]=s[a].value(t,n,r,i);return e?{value:o}:o};case yo.ThisExpression:return function(t){return e?{value:t}:t};case yo.LocalsExpression:return function(t,n){return e?{value:n}:n};case yo.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=g(s)?+s:0,e?{value:s}:s}},"unary-":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=g(s)?-s:0,e?{value:s}:s}},"unary!":function(t,e){return function(n,r,i,o){var s=!t(n,r,i,o);return e?{value:s}:s}},"binary+":function(t,e,n){return function(r,i,o,s){var a=an(t(r,i,o,s),e(r,i,o,s));return n?{value:a}:a}},"binary-":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s),u=e(r,i,o,s),c=(g(a)?a:0)-(g(u)?u:0);return n?{value:c}:c}},"binary*":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)*e(r,i,o,s);return n?{value:a}:a}},"binary/":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)/e(r,i,o,s);return n?{value:a}:a}},"binary%":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)%e(r,i,o,s);return n?{value:a}:a}},"binary===":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)===e(r,i,o,s);return n?{value:a}:a}},"binary!==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!==e(r,i,o,s);return n?{value:a}:a}},"binary==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)==e(r,i,o,s);return n?{value:a}:a}},"binary!=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!=e(r,i,o,s);return n?{value:a}:a}},"binary<":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<e(r,i,o,s);return n?{value:a}:a}},"binary>":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>e(r,i,o,s);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<=e(r,i,o,s);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>=e(r,i,o,s);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)&&e(r,i,o,s);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)||e(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,o,s,a){var u=t(i,o,s,a)?e(i,o,s,a):n(i,o,s,a);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:undefined,name:undefined,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,s){var a=s&&t in s?s:o;r&&1!==r&&a&&!a[t]&&(a[t]={});var u=a?a[t]:undefined;return e&&nn(u,i),n?{context:a,name:t,value:u}:u}},computedMember:function(t,e,n,r,i){return function(o,s,a,u){var c,l,f=t(o,s,a,u);return null!=f&&(tn(c=en(c=e(o,s,a,u)),i),r&&1!==r&&(on(f),f&&!f[c]&&(f[c]={})),nn(l=f[c],i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,n,r,i,o){return function(s,a,u,c){var l=t(s,a,u,c);i&&1!==i&&(on(l),l&&!l[e]&&(l[e]={}));var f=null!=l?l[e]:undefined;return(n||$n(e))&&nn(f,o),r?{context:l,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var bo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new yo(t,n),this.astCompiler=n.csp?new vn(this.ast,e):new mn(this.ast,e)};bo.prototype={constructor:bo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var wo=Object.prototype.valueOf,xo=e("$sce"),So={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},_o=e("$compile"),ko=t.document.createElement("a"),Co=jn(t.location.href);In.$inject=["$document"],Yn.$inject=["$provide"];var Mo=22,Eo=".",Ao="0";Wn.$inject=["$locale"],qn.$inject=["$locale"];var Do={yyyy:Jn("FullYear",4,0,!1,!0),yy:Jn("FullYear",2,0,!0,!0),y:Jn("FullYear",1,0,!1,!0),MMMM:Xn("Month"),MMM:Xn("Month",!0),MM:Jn("Month",2,1),M:Jn("Month",1,1),LLLL:Xn("Month",!1,!0),dd:Jn("Date",2),d:Jn("Date",1),HH:Jn("Hours",2),H:Jn("Hours",1),hh:Jn("Hours",2,-12),h:Jn("Hours",1,-12),mm:Jn("Minutes",2),m:Jn("Minutes",1),ss:Jn("Seconds",2),s:Jn("Seconds",1),sss:Jn("Milliseconds",3),EEEE:Xn("Day"),EEE:Xn("Day",!0),a:nr,Z:Kn,ww:er(2),w:er(1),G:rr,GG:rr,GGG:rr,GGGG:ir},Oo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,To=/^\-?\d+$/;or.$inject=["$locale"];var No=m(Nr),jo=m(jr);cr.$inject=["$parse"];var Po=m({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Wr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Ro={};r(Mi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=ve("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Ro[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Ai,function(t,e){Ro[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Dr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=ve("ng-"+t);Ro[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===Wr.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,function(e){e?(i.$set(s,e),Ir&&o&&r.prop(o,i[s])):"href"===t&&i.$set(s,null)})}}}});var Io={$addControl:d,$$renameControl:fr,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d,$setSubmitted:d},Vo="ng-submitted";hr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Yo=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||d}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:hr,compile:function(n,i){n.addClass(ws).addClass(ys);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,s){var a=s[0];if(!("action"in i)){var u=function(e){t.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),e.preventDefault()};pi(n[0],"submit",u),n.on("$destroy",function(){e(function(){mi(n[0],"submit",u)},0,!1)})}(s[1]||a.$$parentForm).$addControl(a);var l=o?r(a.$name):d;o&&(l(t,a),i.$observe(o,function(e){a.$name!==e&&(l(t,undefined),a.$$parentForm.$$renameControl(a,e),(l=r(a.$name))(t,a))})),n.on("$destroy",function(){a.$$parentForm.$removeControl(a),l(t,undefined),c(a,Io)})}}}}}]},Fo=Yo(),Lo=Yo(!0),Uo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ho=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Wo=/^(?=.{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])?)*$/,qo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Bo=/^(\d{4,})-(\d{2})-(\d{2})$/,zo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Go=/^(\d{4,})-W(\d\d)$/,Zo=/^(\d{4,})-(\d\d)$/,Jo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Xo="keydown wheel mousedown",Ko=pt();r("date,datetime-local,month,time,week".split(","),function(t){Ko[t]=!0});var Qo={text:pr,date:gr("date",Bo,$r(Bo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gr("datetimelocal",zo,$r(zo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gr("time",Jo,$r(Jo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gr("week",Go,vr,"yyyy-Www"),month:gr("month",Zo,$r(Zo,["yyyy","MM"]),"yyyy-MM"),number:br,url:wr,email:xr,radio:Sr,checkbox:kr,hidden:d,button:d,submit:d,reset:d,file:d},ts=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Qo[Nr(s.type)]||Qo.text)(i,o,s,a[0],e,t,n,r)}}}}],es=/^(true|false|\d+)$/,ns=function(){return{restrict:"A",priority:100,compile:function(t,e){return es.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},rs=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=$(t)?"":t})}}}}],is=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=$(t)?"":t})}}}}],os=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),s=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(s,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],ss=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),as=Cr("",!0),us=Cr("Odd",0),cs=Cr("Even",1),ls=lr({compile:function(t,e){e.$set("ngCloak",undefined),t.removeClass("ng-cloak")}}),fs=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],hs={},ds={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=ve("ng-"+t);hs[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){s(e,{$event:n})};ds[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var ps=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,u,c;n.$watch(i.ngIf,function(n){n?u||s(function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),a={clone:n},t.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),a&&(c=dt(a.clone),t.leave(c).then(function(){c=null}),a=null))})}}}],ms=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:zr.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,u,c,l){var f,h,d,p=0,m=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),
d&&(n.leave(d).then(function(){h=null}),h=d,d=null)};r.$watch(o,function(o){var u=function(){!g(a)||a&&!r.$eval(a)||e()},h=++p;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===p){var e=r.$new();c.template=t;var a=l(e,function(t){m(),n.enter(t,null,i).then(u)});d=a,(f=e).$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),c.template=null)})}}}}],vs=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(Wr.call(r[0]).match(/SVG/))return r.empty(),void e(Ct(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],$s=lr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),gs=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",s="false"!==n.ngTrim,a=s?Xr(o):o,u=function(t){if(!$(t)){var e=[];return t&&r(t.split(a),function(t){t&&e.push(s?Xr(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){return Zr(t)?t.join(o):undefined}),i.$isEmpty=function(t){return!t||!t.length}}}},ys="ng-valid",bs="ng-invalid",ws="ng-pristine",xs="ng-dirty",Ss="ng-untouched",_s="ng-touched",ks="ng-pending",Cs="ng-empty",Ms="ng-not-empty",Es=e("ngModel"),As=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,s,a,u,c,l){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=l(n.name||"",!1)(t),this.$$parentForm=Io;var f,h=o(n.ngModel),p=h.assign,m=h,v=p,y=null,b=this;this.$$setOptions=function(t){if(b.$options=t,t&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");m=function(t){var n=h(t);return _(n)&&(n=e(t)),n},v=function(t,e){_(h(t))?r(t,{$$$p:e}):p(t,e)}}else if(!h.assign)throw Es("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,J(i))},this.$render=d,this.$isEmpty=function(t){return $(t)||""===t||null===t||t!=t},this.$$updateEmptyClasses=function(t){b.$isEmpty(t)?(s.removeClass(i,Ms),s.addClass(i,Cs)):(s.removeClass(i,Cs),s.addClass(i,Ms))};var w=0;Mr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:s}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,s.removeClass(i,xs),s.addClass(i,ws)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,s.removeClass(i,ws),s.addClass(i,xs),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,s.setClass(i,Ss,_s)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,s.setClass(i,_s,Ss)},this.$rollbackViewValue=function(){a.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var t=b.$$lastCommittedViewValue,e=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(e,t,function(t){i||n===t||(b.$modelValue=t?e:undefined,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var t=b.$$parserName||"parse";return $(f)?(a(t,null),!0):(f||(r(b.$validators,function(t,e){a(e,null)}),r(b.$asyncValidators,function(t,e){a(e,null)})),a(t,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(t,e);n=n&&o,a(i,o)}),!!n||(r(b.$asyncValidators,function(t,e){a(e,null)}),!1)}function s(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var s=r(t,e);if(!T(s))throw Es("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);a(o,undefined),n.push(s.then(function(){a(o,!0)},function(){i=!1,a(o,!1)}))}),n.length?c.all(n).then(function(){u(i)},d):u(!0)}function a(t,e){l===w&&b.$setValidity(t,e)}function u(t){l===w&&n(t)}var l=++w;i()&&o()?s():u(!1)},this.$commitViewValue=function(){var t=b.$viewValue;a.cancel(y),(b.$$lastCommittedViewValue!==t||""===t&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(t),b.$$lastCommittedViewValue=t,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){b.$modelValue!==i&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue;if(f=!$(n)||undefined)for(var r=0;r<b.$parsers.length;r++)if($(n=b.$parsers[r](n))){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=m(t));var i=b.$modelValue,o=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=n,o&&(b.$modelValue=n,e()),b.$$runValidators(n,b.$$lastCommittedViewValue,function(t){o||(b.$modelValue=t?n:undefined,e())})},this.$$writeModelToScope=function(){v(t,b.$modelValue),r(b.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){b.$viewValue=t,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=b.$options;i&&g(i.debounce)&&(x(n=i.debounce)?r=n:x(n[e])?r=n[e]:x(n["default"])&&(r=n["default"])),a.cancel(y),r?y=a(function(){b.$commitViewValue()},r):u.$$phase?b.$commitViewValue():t.$apply(function(){b.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==b.$modelValue&&(b.$modelValue==b.$modelValue||e==e)){b.$modelValue=b.$$rawModelValue=e,f=undefined;for(var n=b.$formatters,r=n.length,i=e;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(e,i,d))}return e})}],Ds=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:As,priority:1,compile:function(e){return e.addClass(ws).addClass(Ss).addClass(ys),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Os=/(\s+|^)default(\s+|$)/,Ts=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=Y(t.$eval(e.ngModelOptions)),g(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Xr(this.$options.updateOn.replace(Os,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ns=lr({terminal:!0,priority:1e3}),js=e("ngOptions"),Ps=/^\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]+?))?$/,Rs=["$compile","$document","$parse",function(e,i,o){function s(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function s(t){var e;if(!c&&n(t))e=t;else for(var r in e=[],t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r);return e}var a=t.match(Ps);if(!a)throw js("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,J(e));var u=a[5]||a[7],c=a[6],l=/ as /.test(a[0])&&a[1],f=a[9],h=o(a[2]?a[1]:u),d=l&&o(l)||h,p=f&&o(f),m=f?function(t,e){return p(r,e)}:function(t){return Xt(t)},v=function(t,e){return m(t,x(t,e))},$=o(a[2]||a[1]),g=o(a[3]||""),y=o(a[4]||""),b=o(a[8]),w={},x=c?function(t,e){return w[c]=e,w[u]=t,w}:function(t){return w[u]=t,w};return{trackBy:f,getTrackByValue:v,getWatchables:o(b,function(t){for(var e=[],n=s(t=t||[]),i=n.length,o=0;o<i;o++){var u=t===n?o:n[o],c=t[u],l=x(c,u),f=m(c,l);if(e.push(f),a[2]||a[1]){var h=$(r,l);e.push(h)}if(a[4]){var d=y(r,l);e.push(d)}}return e}),getOptions:function(){for(var t=[],e={},n=b(r)||[],o=s(n),a=o.length,u=0;u<a;u++){var c=n===o?u:o[u],l=n[c],h=x(l,c),p=d(r,h),w=m(p,h),S=new i(w,p,$(r,h),g(r,h),y(r,h));t.push(S),e[w]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[v(t)]},getViewValueFromOption:function(t){return f?zr.copy(t.viewValue):t.viewValue}}}}}function a(t,n,o,a){function l(t,e){var n=u.cloneNode(!1);e.appendChild(n),f(t,n)}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function h(){var t=w&&p.readValue();if(w)for(var e=w.items.length-1;e>=0;e--){var r=w.items[e];g(r.group)?Ht(r.element.parentNode):Ht(r.element)}w=_.getOptions();var i={};if(x&&n.prepend(d),w.items.forEach(function(t){var e;g(t.group)?((e=i[t.group])||(e=c.cloneNode(!1),k.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),l(t,e)):l(t,k)}),n[0].appendChild(k),m.$render(),!m.$isEmpty(t)){var o=p.readValue();(_.trackBy||v?F(t,o):t===o)||(m.$setViewValue(o),m.$render())}}for(var d,p=a[0],m=a[1],v=o.multiple,$=0,y=n.children(),b=y.length;$<b;$++)if(""===y[$].value){d=y.eq($);break}var w,x=!!d,S=Vr(u.cloneNode(!1));S.val("?");var _=s(o.ngOptions,n,t),k=i[0].createDocumentFragment(),C=function(){x||n.prepend(d),n.val(""),d.prop("selected",!0),d.attr("selected",!0)},M=function(){x||d.remove()},E=function(){n.prepend(S),n.val("?"),S.prop("selected",!0),S.attr("selected",!0)},A=function(){S.remove()};v?(m.$isEmpty=function(t){return!t||0===t.length},p.writeValue=function(t){w.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=w.getOptionFromViewValue(t);e&&(e.element.selected=!0)})},p.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){var n=w.selectValueMap[t];n&&!n.disabled&&e.push(w.getViewValueFromOption(n))}),e},_.trackBy&&t.$watchCollection(function(){if(Zr(m.$viewValue))return m.$viewValue.map(function(t){return _.getTrackByValue(t)})},function(){m.$render()})):(p.writeValue=function(t){var e=w.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(A(),M(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||x?(A(),C()):(M(),E())},p.readValue=function(){var t=w.selectValueMap[n.val()];return t&&!t.disabled?(M(),A(),w.getViewValueFromOption(t)):null},_.trackBy&&t.$watch(function(){return _.getTrackByValue(m.$viewValue)},function(){m.$render()})),x?(d.remove(),e(d)(t),d.removeClass("ng-scope")):d=Vr(u.cloneNode(!1)),n.empty(),h(),t.$watchCollection(_.getWatchables,h)}var u=t.document.createElement("option"),c=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=d},post:a}}}],Is=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(s,a,u){function c(t){a.text(t||"")}var l,f=u.count,h=u.$attr.when&&a.attr(u.$attr.when),p=u.offset||0,m=s.$eval(h)||{},v={},g=e.startSymbol(),y=e.endSymbol(),b=g+f+"-"+p+y,w=zr.noop;r(u,function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+Nr(n[2]);m[r]=a.attr(u.$attr[e])}}),r(m,function(t,n){v[n]=e(t.replace(i,b))}),s.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in m||(r=t.pluralCat(r-p)),r!==l&&!(i&&x(l)&&isNaN(l))){w();var o=v[r];$(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=d,c()):w=s.$watch(o,c),l=r}})}}}],Vs=["$parse","$animate","$compile",function(t,i,o){var s="$$NG_REMOVED",a=e("ngRepeat"),u=function(t,e,n,r,i,o,s){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},c=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,f){var h=f.ngRepeat,d=o.$$createComment("end ngRepeat",h),p=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var m=p[1],v=p[2],$=p[3],g=p[4];if(!(p=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var y,b,w,x,S=p[3]||p[1],_=p[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);var k={$id:Xt};return g?y=t(g):(w=function(t,e){return Xt(e)},x=function(t){return t}),function(t,e,o,f,p){y&&(b=function(e,n,r){return _&&(k[_]=e),k[S]=n,k.$index=r,y(t,k)});var m=pt();t.$watchCollection(v,function(o){var f,v,g,y,k,C,M,E,A,D,O,T,N=e[0],j=pt();if($&&(t[$]=o),n(o))A=o,E=b||w;else for(var P in E=b||x,A=[],o)Tr.call(o,P)&&"$"!==P.charAt(0)&&A.push(P);for(y=A.length,O=new Array(y),f=0;f<y;f++)if(k=o===A?f:A[f],C=o[k],M=E(k,C,f),m[M])D=m[M],delete m[M],j[M]=D,O[f]=D;else{if(j[M])throw r(O,function(t){t&&t.scope&&(m[t.id]=t)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,M,C);O[f]={id:M,scope:undefined,clone:undefined},j[M]=!0}for(var R in m){if(T=dt((D=m[R]).clone),i.leave(T),T[0].parentNode)for(f=0,v=T.length;f<v;f++)T[f][s]=!0;D.scope.$destroy()}for(f=0;f<y;f++)if(k=o===A?f:A[f],C=o[k],(D=O[f]).scope){g=N;do{g=g.nextSibling}while(g&&g[s]);c(D)!=g&&i.move(dt(D.clone),null,N),N=l(D),u(D.scope,f,S,C,_,k,y)}else p(function(t,e){D.scope=e;var n=d.cloneNode(!1);t[t.length++]=n,i.enter(t,null,N),N=n,D.clone=t,j[D.id]=D,u(D.scope,f,S,C,_,k,y)});m=j})}}}}],Ys="ng-hide",Fs="ng-hide-animate",Ls=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Ys,{tempClasses:Fs})})}}}],Us=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Ys,{tempClasses:Fs})})}}}],Hs=lr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Ws=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,s){var a=o.ngSwitch||o.on,u=[],c=[],l=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(a,function(n){var i,o;for(i=0,o=l.length;i<o;++i)t.cancel(l[i]);for(l.length=0,i=0,o=f.length;i<o;++i){var a=dt(c[i].clone);f[i].$destroy(),(l[i]=t.leave(a)).then(h(l,i))}c.length=0,f.length=0,(u=s.cases["!"+n]||s.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var s={clone:r};c.push(s),t.enter(r,o.parent(),o)})})})}}}],qs=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Bs=lr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),zs=e("ngTransclude"),Gs=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){function s(t,n){t.length?e.append(t):(a(),n.$destroy())}function a(){n(t,function(t){e.append(t)})}if(!o)throw zs("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var u=r.ngTransclude||r.ngTranscludeSlot;o(s,null,u),u&&!o.isSlotFilled(u)&&a()}}}}],Zs=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Js={$setViewValue:d,$render:d},Xs=["$element","$scope",function(e,n){var r=this,i=new Kt;r.ngModelCtrl=Js,r.unknownOption=Vr(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Xt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=d}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(e[0].nodeType!==ui){ft(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),Ar(e)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=undefined)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){var s;i?n.$observe("value",function(t){g(s)&&r.removeOption(s),s=t,r.addOption(t,e)}):o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Ks=function(){function t(t,e,n,i){var o=i[1];if(o){var s=i[0];if(s.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(s.readValue())})}),n.multiple){s.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},s.writeValue=function(t){var n=new Kt(t);r(e.find("option"),function(t){t.selected=g(n.get(t.value))})};var a,u=NaN;t.$watch(function(){u!==o.$viewValue||F(a,o.$viewValue)||(a=vt(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Xs,priority:1,link:{pre:t,post:e}}},Qs=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(g(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",s=e.parent(),a=s.data(o)||s.parent().data(o);a&&a.registerOption(t,e,n,r,i)}}}}],ta=m({restrict:"E",terminal:!1}),ea=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},na=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,s=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,t,J(n));o=t||undefined,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||$(o)||o.test(e)}}}}},ra=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},ia=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(ut(),yt(zr),zr.module("ngLocale",[],["$provide",function(t){function e(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}function n(t,n){var r=n;undefined===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r);return{v:r,f:(t*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.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:"-\xa4",negSuf:"",posPre:"\xa4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Vr(t.document).ready(function(){rt(t.document,it)}))}(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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Mr.apply(null,arguments)}function e(t){Mr=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return _e(t,e,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function d(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=d(t),n=Er.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&e.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=f(NaN);return null!=t?l(d(e),t):d(e).userInvalidated=!0,e}function v(t,e){var n,r,i;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=d(e)),o(e._locale)||(t._locale=e._locale),Dr.length>0)for(n=0;n<Dr.length;n++)o(i=e[r=Dr[n]])||(t[r]=i);return t}function $(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Or&&(Or=!0,t.updateOffset(this),Or=!1)}function g(t){return t instanceof $||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function w(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&b(t[r])!==b(e[r]))&&s++;return s+o}function x(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,n){var r=!0;return l(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var i,o=[],s=0;s<arguments.length;s++){if(i="","object"==typeof arguments[s]){for(var a in i+="\n["+s+"] ",arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];o.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function _(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Tr[e]||(x(n),Tr[e]=!0)}function k(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)k(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function M(t,e){var n,i=l({},t);for(n in e)c(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},l(i[n],t[n]),l(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&r(t[n])&&(i[n]=l({},i[n]));return i}function E(t){null!=t&&this.set(t)}function A(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return k(r)?r.call(e,n):r}function D(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function T(t){return this._ordinal.replace("%d",t)}function N(t,e,n,r){var i=this._relativeTime[n];return k(i)?i(t,e,n,r):i.replace(/%d/i,t)}function j(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}function P(t,e){var n=t.toLowerCase();Yr[n]=Yr[n+"s"]=Yr[e]=t}function R(t){return"string"==typeof t?Yr[t]||Yr[t.toLowerCase()]:undefined}function I(t){var e,n,r={};for(n in t)c(t,n)&&(e=R(n))&&(r[e]=t[n]);return r}function V(t,e){Fr[t]=e}function Y(t){var e=[];for(var n in t)e.push({unit:n,priority:Fr[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function F(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function L(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Wr[t]=i),e&&(Wr[e[0]]=function(){return F(i.apply(this,arguments),e[1],e[2])}),n&&(Wr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,n,r=t.match(Lr);for(e=0,n=r.length;e<n;e++)Wr[r[e]]?r[e]=Wr[r[e]]:r[e]=U(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=k(r[i])?r[i].call(e,t):r[i];return o}}function W(t,e){return t.isValid()?(e=q(e,t.localeData()),Hr[e]=Hr[e]||H(e),Hr[e](t)):t.localeData().invalidDate()}function q(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(Ur.lastIndex=0;r>=0&&Ur.test(t);)t=t.replace(Ur,n),Ur.lastIndex=0,r-=1;return t}function B(t,e,n){ui[t]=k(e)?e:function(t){return t&&n?n:e}}function z(t,e){return c(ui,t)?ui[t](e._strict,e._locale):new RegExp(G(t))}function G(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),s(e)&&(r=function(t,n){n[e]=b(t)}),n=0;n<t.length;n++)ci[t[n]]=r}function X(t,e){J(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function K(t,e,n){null!=e&&c(ci,t)&&ci[t](e,n._a,n,t)}function Q(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function nt(e,n){return function(r){return null!=r?(it(this,e,r),t.updateOffset(this,n),this):rt(this,e)}}function rt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function it(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ut(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function ot(t){return k(this[t=R(t)])?this[t]():this}function st(t,e){if("object"==typeof t)for(var n=Y(t=I(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(k(this[t=R(t)]))return this[t](e);return this}function at(t,e){return(t%e+e)%e}function ut(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=at(e,12);return t+=(e-n)/12,1===n?tt(t)?29:28:31-n%7%2}function ct(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wi).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function lt(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wi.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ft(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=yi.call(this._shortMonthsParse,s))?i:null:-1!==(i=yi.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=yi.call(this._shortMonthsParse,s))?i:-1!==(i=yi.call(this._longMonthsParse,s))?i:null:-1!==(i=yi.call(this._longMonthsParse,s))?i:-1!==(i=yi.call(this._shortMonthsParse,s))?i:null}function ht(t,e,n){var r,i,o;if(this._monthsParseExact)return ft.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function dt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=b(e);else if(!s(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ut(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function pt(e){return null!=e?(dt(this,e),t.updateOffset(this,!0),this):rt(this,"Month")}function mt(){return ut(this.year(),this.month())}function vt(t){return this._monthsParseExact?(c(this,"_monthsRegex")||gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=_i),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function $t(t){return this._monthsParseExact?(c(this,"_monthsRegex")||gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=ki),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function gt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=Z(r[e]),i[e]=Z(i[e]);for(e=0;e<24;e++)o[e]=Z(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function yt(t,e,n,r,i,o,s){var a=new Date(t,e,n,r,i,o,s);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function wt(t,e,n){var r=7+e-n;return-((7+bt(t,0,r).getUTCDay()-e)%7)+r-1}function xt(t,e,n,r,i){var o,s,a=1+7*(e-1)+(7+n-r)%7+wt(t,r,i)
;return a<=0?s=Q(o=t-1)+a:a>Q(t)?(o=t+1,s=a-Q(t)):(o=t,s=a),{year:o,dayOfYear:s}}function St(t,e,n){var r,i,o=wt(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?r=s+_t(i=t.year()-1,e,n):s>_t(t.year(),e,n)?(r=s-_t(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function _t(t,e,n){var r=wt(t,e,n),i=wt(t+1,e,n);return(Q(t)-r+i)/7}function kt(t){return St(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function Mt(){return this._week.doy}function Et(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function At(t){var e=St(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Dt(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Tt(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Nt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function jt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Pt(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=yi.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=yi.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=yi.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=yi.call(this._weekdaysParse,s))?i:-1!==(i=yi.call(this._shortWeekdaysParse,s))?i:-1!==(i=yi.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=yi.call(this._shortWeekdaysParse,s))?i:-1!==(i=yi.call(this._weekdaysParse,s))?i:-1!==(i=yi.call(this._minWeekdaysParse,s))?i:null:-1!==(i=yi.call(this._minWeekdaysParse,s))?i:-1!==(i=yi.call(this._weekdaysParse,s))?i:-1!==(i=yi.call(this._shortWeekdaysParse,s))?i:null}function Rt(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Pt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function It(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Dt(t,this.localeData()),this.add(t-e,"d")):e}function Vt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Yt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Di),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oi),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ut(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ti),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ht(){function t(t,e){return e.length-t.length}var e,n,r,i,o,s=[],a=[],u=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);for(s.sort(t),a.sort(t),u.sort(t),c.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),u[e]=Z(u[e]),c[e]=Z(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Wt(){return this.hours()%12||12}function qt(){return this.hours()||24}function Bt(t,e){L(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function zt(t,e){return e._meridiemParse}function Gt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Jt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,r,i,o=0;o<t.length;){for(e=(i=Jt(t[o]).split("-")).length,n=(n=Jt(t[o+1]))?n.split("-"):null;e>0;){if(r=Kt(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&w(i,n,!0)>=e-1)break;e--}o++}return null}function Kt(t){var e=null;if(!Ii[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Ni._abbr,require("./locale/"+t),Qt(e)}catch(n){}return Ii[t]}function Qt(t,e){var n;return t&&(n=o(e)?ne(t):te(t,e))&&(Ni=n),Ni._abbr}function te(t,e){if(null!==e){var n=Ri;if(e.abbr=t,null!=Ii[t])_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ii[t]._config;else if(null!=e.parentLocale){if(null==Ii[e.parentLocale])return Vi[e.parentLocale]||(Vi[e.parentLocale]=[]),Vi[e.parentLocale].push({name:t,config:e}),null;n=Ii[e.parentLocale]._config}return Ii[t]=new E(M(n,e)),Vi[t]&&Vi[t].forEach(function(t){te(t.name,t.config)}),Qt(t),Ii[t]}return delete Ii[t],null}function ee(t,e){if(null!=e){var n,r,i=Ri;null!=(r=Kt(t))&&(i=r._config),(n=new E(e=M(i,e))).parentLocale=Ii[t],Ii[t]=n,Qt(t)}else null!=Ii[t]&&(null!=Ii[t].parentLocale?Ii[t]=Ii[t].parentLocale:null!=Ii[t]&&delete Ii[t]);return Ii[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ni;if(!n(t)){if(e=Kt(t))return e;t=[t]}return Xt(t)}function re(){return Ar(Ii)}function ie(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[fi]<0||n[fi]>11?fi:n[hi]<1||n[hi]>ut(n[li],n[fi])?hi:n[di]<0||n[di]>24||24===n[di]&&(0!==n[pi]||0!==n[mi]||0!==n[vi])?di:n[pi]<0||n[pi]>59?pi:n[mi]<0||n[mi]>59?mi:n[vi]<0||n[vi]>999?vi:-1,d(t)._overflowDayOfYear&&(e<li||e>hi)&&(e=hi),d(t)._overflowWeeks&&-1===e&&(e=$i),d(t)._overflowWeekday&&-1===e&&(e=gi),d(t).overflow=e),t}function oe(t,e,n){return null!=t?t:null!=e?e:n}function se(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ae(t){var e,n,r,i,o,s=[];if(!t._d){for(r=se(t),t._w&&null==t._a[hi]&&null==t._a[fi]&&ue(t),null!=t._dayOfYear&&(o=oe(t._a[li],r[li]),(t._dayOfYear>Q(o)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=bt(o,0,t._dayOfYear),t._a[fi]=n.getUTCMonth(),t._a[hi]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[di]&&0===t._a[pi]&&0===t._a[mi]&&0===t._a[vi]&&(t._nextDay=!0,t._a[di]=0),t._d=(t._useUTC?bt:yt).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[di]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==i&&(d(t).weekdayMismatch=!0)}}function ue(t){var e,n,r,i,o,s,a,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,n=oe(e.GG,t._a[li],St(ke(),1,4).year),r=oe(e.W,1),((i=oe(e.E,1))<1||i>7)&&(u=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var c=St(ke(),o,s);n=oe(e.gg,t._a[li],c.year),r=oe(e.w,c.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o}r<1||r>_t(n,o,s)?d(t)._overflowWeeks=!0:null!=u?d(t)._overflowWeekday=!0:(a=xt(n,r,i,o,s),t._a[li]=a.year,t._dayOfYear=a.dayOfYear)}function ce(t){var e,n,r,i,o,s,a=t._i,u=Yi.exec(a)||Fi.exec(a);if(u){for(d(t).iso=!0,e=0,n=Ui.length;e<n;e++)if(Ui[e][1].exec(u[1])){i=Ui[e][0],r=!1!==Ui[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=Hi.length;e<n;e++)if(Hi[e][1].exec(u[3])){o=(u[2]||" ")+Hi[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!Li.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=i+(o||"")+(s||""),$e(t)}else t._isValid=!1}function le(t,e,n,r,i,o){var s=[fe(t),Si.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function fe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function he(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function de(t,e,n){if(t&&Ei.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return d(n).weekdayMismatch=!0,n._isValid=!1,!1;return!0}function pe(t,e,n){if(t)return Bi[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return 60*((r-i)/100)+i}function me(t){var e=qi.exec(he(t._i));if(e){var n=le(e[4],e[3],e[2],e[5],e[6],e[7]);if(!de(e[1],n,t))return;t._a=n,t._tzm=pe(e[8],e[9],e[10]),t._d=bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function ve(e){var n=Wi.exec(e._i);null===n?(ce(e),!1===e._isValid&&(delete e._isValid,me(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+n[1])}function $e(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],d(e).empty=!0;var n,r,i,o,s,a=""+e._i,u=a.length,c=0;for(i=q(e._f,e._locale).match(Lr)||[],n=0;n<i.length;n++)o=i[n],(r=(a.match(z(o,e))||[])[0])&&((s=a.substr(0,a.indexOf(r))).length>0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(r)+r.length),c+=r.length),Wr[o]?(r?d(e).empty=!1:d(e).unusedTokens.push(o),K(o,r,e)):e._strict&&!r&&d(e).unusedTokens.push(o);d(e).charsLeftOver=u-c,a.length>0&&d(e).unusedInput.push(a),e._a[di]<=12&&!0===d(e).bigHour&&e._a[di]>0&&(d(e).bigHour=undefined),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[di]=ge(e._locale,e._a[di],e._meridiem),ae(e),ie(e)}else me(e);else ce(e)}function ge(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function ye(t){var e,n,r,i,o;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],$e(e),p(e)&&(o+=d(e).charsLeftOver,o+=10*d(e).unusedTokens.length,d(e).score=o,(null==r||o<r)&&(r=o,n=e));l(t,n||e)}function be(t){if(!t._d){var e=I(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ae(t)}}function we(t){var e=new $(ie(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=undefined),e}function xe(t){var e=t._i,r=t._f;return t._locale=t._locale||ne(t._l),null===e||r===undefined&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),g(e)?new $(ie(e)):(a(e)?t._d=e:n(r)?ye(t):r?$e(t):Se(t),p(t)||(t._d=null),t))}function Se(e){var i=e._i;o(i)?e._d=new Date(t.now()):a(i)?e._d=new Date(i.valueOf()):"string"==typeof i?ve(e):n(i)?(e._a=u(i.slice(0),function(t){return parseInt(t,10)}),ae(e)):r(i)?be(e):s(i)?e._d=new Date(i):t.createFromInputFallback(e)}function _e(t,e,o,s,a){var u={};return!0!==o&&!1!==o||(s=o,o=undefined),(r(t)&&i(t)||n(t)&&0===t.length)&&(t=undefined),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=o,u._i=t,u._f=e,u._strict=s,we(u)}function ke(t,e,n,r){return _e(t,e,n,r,!1)}function Ce(t,e){var r,i;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return ke();for(r=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](r)||(r=e[i]);return r}function Me(){return Ce("isBefore",[].slice.call(arguments,0))}function Ee(){return Ce("isAfter",[].slice.call(arguments,0))}function Ae(t){for(var e in t)if(-1===yi.call(Ji,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ji.length;++r)if(t[Ji[r]]){if(n)return!1;parseFloat(t[Ji[r]])!==b(t[Ji[r]])&&(n=!0)}return!0}function De(){return this._isValid}function Oe(){return Je(NaN)}function Te(t){var e=I(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,u=e.minute||0,c=e.second||0,l=e.millisecond||0;this._isValid=Ae(e),this._milliseconds=+l+1e3*c+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ne(),this._bubble()}function Ne(t){return t instanceof Te}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Pe(t,e){L(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+F(~~(t/60),2)+e+F(~~t%60,2)})}function Re(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Xi)||["-",0,0],i=60*r[1]+b(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ie(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(g(e)||a(e)?e.valueOf():ke(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):ke(e).local()}function Ve(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ye(e,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Re(oi,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(i=Ve(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?en(this,Je(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ve(this)}function Fe(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Le(t){return this.utcOffset(0,t)}function Ue(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ve(this),"m")),this}function He(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Re(ii,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function We(t){return!!this.isValid()&&(t=t?ke(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function qe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Be(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=xe(t))._a){var e=t._isUTC?f(t._a):ke(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function ze(){return!!this.isValid()&&!this._isUTC}function Ge(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Je(t,e){var n,r,i,o=t,a=null;return Ne(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=Ki.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:b(a[hi])*n,h:b(a[di])*n,m:b(a[pi])*n,s:b(a[mi])*n,ms:b(je(1e3*a[vi]))*n}):(a=Qi.exec(t))?(n="-"===a[1]?-1:(a[1],1),o={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Qe(ke(o.from),ke(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Te(o),Ne(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ke(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(t,e){var n;return t.isValid()&&e.isValid()?(e=Ie(e,t),t.isBefore(e)?n=Ke(t,e):((n=Ke(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(_(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),en(this,Je(n="string"==typeof n?+n:n,r),t),this}}function en(e,n,r,i){var o=n._milliseconds,s=je(n._days),a=je(n._months);e.isValid()&&(i=null==i||i,a&&dt(e,rt(e,"Month")+a*r),s&&it(e,"Date",rt(e,"Date")+s*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&t.updateOffset(e,s||a))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(e,n){var r=e||ke(),i=Ie(r,this).startOf("day"),o=t.calendarFormat(this,i)||"sameElse",s=n&&(k(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,ke(r)))}function on(){return new $(this)}function sn(t,e){var n=g(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(o(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function an(t,e){var n=g(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(o(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function un(t,e,n,r){return("("===(r=r||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))}function cn(t,e){var n,r=g(t)?t:ke(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=R(e||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function ln(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function fn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function hn(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ie(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=R(e)){case"year":o=dn(this,r)/12;break;case"month":o=dn(this,r);break;case"quarter":o=dn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:y(o)}function dn(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]';return this.format(n+r+i+o)}function $n(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=W(this,e);return this.localeData().postformat(n)}function gn(t,e){return this.isValid()&&(g(t)&&t.isValid()||ke(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yn(t){return this.from(ke(),t)}function bn(t,e){return this.isValid()&&(g(t)&&t.isValid()||ke(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function wn(t){return this.to(ke(),t)}function xn(t){var e;return t===undefined?this._locale._abbr:(null!=(e=ne(t))&&(this._locale=e),this)}function Sn(){return this._locale}function _n(t){switch(t=R(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function kn(t){return(t=R(t))===undefined||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Cn(){return this._d.valueOf()-6e4*(this._offset||0)}function Mn(){return Math.floor(this.valueOf()/1e3)}function En(){return new Date(this.valueOf())}function An(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Dn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function Tn(){return p(this)}function Nn(){return l({},d(this))}function jn(){return d(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rn(t,e){L(0,[t,t.length],0,e)}function In(t){return Ln.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vn(t){return Ln.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Yn(){return _t(this.year(),1,4)}function Fn(){var t=this.localeData()._week;return _t(this.year(),t.dow,t.doy)}function Ln(t,e,n,r,i){var o;return null==t?St(this,r,i).year:(e>(o=_t(t,r,i))&&(e=o),Un.call(this,t,e,n,r,i))}function Un(t,e,n,r,i){var o=xt(t,e,n,r,i),s=bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Hn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Wn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function qn(t,e){e[vi]=b(1e3*("0."+t))}function Bn(){return this._isUTC?"UTC":""}function zn(){return this._isUTC?"Coordinated Universal Time":""}function Gn(t){return ke(1e3*t)}function Zn(){return ke.apply(null,arguments).parseZone()}function Jn(t){return t}function Xn(t,e,n,r){var i=ne(),o=f().set(r,e);return i[n](o,t)}function Kn(t,e,n){if(s(t)&&(e=t,t=undefined),t=t||"",null!=e)return Xn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Xn(t,r,n,"month");return i}function Qn(t,e,n,r){"boolean"==typeof t?(s(e)&&(n=e,e=undefined),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=undefined),e=e||"");var i,o=ne(),a=t?o._week.dow:0;if(null!=n)return Xn(e,(n+a)%7,r,"day");var u=[];for(i=0;i<7;i++)u[i]=Xn(e,(i+a)%7,r,"day");return u}function tr(t,e){return Kn(t,e,"months")}function er(t,e){return Kn(t,e,"monthsShort")}function nr(t,e,n){return Qn(t,e,n,"weekdays")}function rr(t,e,n){return Qn(t,e,n,"weekdaysShort")}function ir(t,e,n){return Qn(t,e,n,"weekdaysMin")}function or(){var t=this._data;return this._milliseconds=lo(this._milliseconds),this._days=lo(this._days),this._months=lo(this._months),t.milliseconds=lo(t.milliseconds),t.seconds=lo(t.seconds),t.minutes=lo(t.minutes),t.hours=lo(t.hours),t.months=lo(t.months),t.years=lo(t.years),this}function sr(t,e,n,r){var i=Je(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function ar(t,e){return sr(this,t,e,1)}function ur(t,e){return sr(this,t,e,-1)}function cr(t){return t<0?Math.floor(t):Math.ceil(t)}function lr(){var t,e,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*cr(hr(a)+s),s=0,a=0),u.milliseconds=o%1e3,t=y(o/1e3),u.seconds=t%60,e=y(t/60),u.minutes=e%60,n=y(e/60),u.hours=n%24,a+=i=y(fr(s+=y(n/24))),s-=cr(hr(i)),r=y(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function fr(t){return 4800*t/146097}function hr(t){return 146097*t/4800}function dr(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=R(t))||"year"===t)return e=this._days+r/864e5,n=this._months+fr(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hr(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function pr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function mr(t){return function(){return this.as(t)}}function vr(){return Je(this)}function $r(t){return t=R(t),this.isValid()?this[t+"s"]():NaN}function gr(t){return function(){return this.isValid()?this._data[t]:NaN}}function yr(){return y(this.days()/7)}function br(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function wr(t,e,n){var r=Je(t).abs(),i=Mo(r.as("s")),o=Mo(r.as("m")),s=Mo(r.as("h")),a=Mo(r.as("d")),u=Mo(r.as("M")),c=Mo(r.as("y")),l=i<=Eo.ss&&["s",i]||i<Eo.s&&["ss",i]||o<=1&&["m"]||o<Eo.m&&["mm",o]||s<=1&&["h"]||s<Eo.h&&["hh",s]||a<=1&&["d"]||a<Eo.d&&["dd",a]||u<=1&&["M"]||u<Eo.M&&["MM",u]||c<=1&&["y"]||["yy",c];return l[2]=e,l[3]=+t>0,l[4]=n,br.apply(null,l)}function xr(t){return t===undefined?Mo:"function"==typeof t&&(Mo=t,!0)}function Sr(t,e){return Eo[t]!==undefined&&(e===undefined?Eo[t]:(Eo[t]=e,"s"===t&&(Eo.ss=e-1),!0))}function _r(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=wr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function kr(t){return(t>0)-(t<0)||+t}function Cr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Ao(this._milliseconds)/1e3,r=Ao(this._days),i=Ao(this._months);e=y((t=y(n/60))/60),n%=60,t%=60;var o=y(i/12),s=i%=12,a=r,u=e,c=t,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var h=f<0?"-":"",d=kr(this._months)!==kr(f)?"-":"",p=kr(this._days)!==kr(f)?"-":"",m=kr(this._milliseconds)!==kr(f)?"-":"";return h+"P"+(o?d+o+"Y":"")+(s?d+s+"M":"")+(a?p+a+"D":"")+(u||c||l?"T":"")+(u?m+u+"H":"")+(c?m+c+"M":"")+(l?m+l+"S":"")}var Mr,Er;Er=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var Ar,Dr=t.momentProperties=[],Or=!1,Tr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,Ar=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var Nr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},jr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Pr="Invalid date",Rr="%d",Ir=/\d{1,2}/,Vr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Yr={},Fr={},Lr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ur=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hr={},Wr={},qr=/\d/,Br=/\d\d/,zr=/\d{3}/,Gr=/\d{4}/,Zr=/[+-]?\d{6}/,Jr=/\d\d?/,Xr=/\d\d\d\d?/,Kr=/\d\d\d\d\d\d?/,Qr=/\d{1,3}/,ti=/\d{1,4}/,ei=/[+-]?\d{1,6}/,ni=/\d+/,ri=/[+-]?\d+/,ii=/Z|[+-]\d\d:?\d\d/gi,oi=/Z|[+-]\d\d(?::?\d\d)?/gi,si=/[+-]?\d+(\.\d{1,3})?/,ai=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ui={},ci={},li=0,fi=1,hi=2,di=3,pi=4,mi=5,vi=6,$i=7,gi=8;L("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),P("year","y"),V("year",1),B("Y",ri),B("YY",Jr,Br),B("YYYY",ti,Gr),B("YYYYY",ei,Zr),B("YYYYYY",ei,Zr),J(["YYYYY","YYYYYY"],li),J("YYYY",function(e,n){n[li]=2===e.length?t.parseTwoDigitYear(e):b(e)}),J("YY",function(e,n){n[li]=t.parseTwoDigitYear(e)}),J("Y",function(t,e){e[li]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var yi,bi=nt("FullYear",!0);yi=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),L("MMMM",0,0,function(t){return this.localeData().months(this,t)}),P("month","M"),V("month",8),B("M",Jr),B("MM",Jr,Br),B("MMM",function(t,e){return e.monthsShortRegex(t)}),B("MMMM",function(t,e){return e.monthsRegex(t)}),J(["M","MM"],function(t,e){e[fi]=b(t)-1}),J(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[fi]=i:d(n).invalidMonth=t});var wi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Si="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_i=ai,ki=ai;L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),V("week",5),V("isoWeek",5),B("w",Jr),B("ww",Jr,Br),B("W",Jr),B("WW",Jr,Br),X(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=b(t)});var Ci={dow:0,doy:6};L("d",0,"do","day"),L("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),L("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),L("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),B("d",Jr),B("e",Jr),B("E",Jr),B("dd",function(t,e){return e.weekdaysMinRegex(t)}),B("ddd",function(t,e){return e.weekdaysShortRegex(t)}),B("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:d(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,r){e[r]=b(t)});var Mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ei="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ai="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Di=ai,Oi=ai,Ti=ai;L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Wt),L("k",["kk",2],0,qt),L("hmm",0,0,function(){return""+Wt.apply(this)+F(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Wt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Bt("a",!0),Bt("A",!1),P("hour","h"),V("hour",13),B("a",zt),B("A",zt),B("H",Jr),B("h",Jr),B("k",Jr),B("HH",Jr,Br),B("hh",Jr,Br),B("kk",Jr,Br),B("hmm",Xr),B("hmmss",Kr),B("Hmm",Xr),B("Hmmss",Kr),J(["H","HH"],di),J(["k","kk"],function(t,e){var n=b(t);e[di]=24===n?0:n}),J(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),J(["h","hh"],function(t,e,n){e[di]=b(t),d(n).bigHour=!0}),J("hmm",function(t,e,n){var r=t.length-2;e[di]=b(t.substr(0,r)),e[pi]=b(t.substr(r)),d(n).bigHour=!0}),J("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[di]=b(t.substr(0,r)),e[pi]=b(t.substr(r,2)),e[mi]=b(t.substr(i)),d(n).bigHour=!0}),J("Hmm",function(t,e){var n=t.length-2;e[di]=b(t.substr(0,n)),e[pi]=b(t.substr(n))}),J("Hmmss",function(t,e){var n=t.length-4,r=t.length-2;e[di]=b(t.substr(0,n)),e[pi]=b(t.substr(n,2)),e[mi]=b(t.substr(r))});var Ni,ji=/[ap]\.?m?\.?/i,Pi=nt("Hours",!0),Ri={calendar:Nr,longDateFormat:jr,invalidDate:Pr,ordinal:Rr,dayOfMonthOrdinalParse:Ir,relativeTime:Vr,months:xi,monthsShort:Si,week:Ci,weekdays:Mi,weekdaysMin:Ai,weekdaysShort:Ei,meridiemParse:ji
},Ii={},Vi={},Yi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Li=/Z|[+-]\d\d(?::?\d\d)?/,Ui=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Hi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wi=/^\/?Date\((\-?\d+)/i,qi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var zi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Gi=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),Zi=function(){return Date.now?Date.now():+new Date},Ji=["year","quarter","month","week","day","hour","minute","second","millisecond"];Pe("Z",":"),Pe("ZZ",""),B("Z",oi),B("ZZ",oi),J(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Re(oi,t)});var Xi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ki=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Te.prototype,Je.invalid=Oe;var to=tn(1,"add"),eo=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var no=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===undefined?this.localeData():this.locale(t)});L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),B("G",ri),B("g",ri),B("GG",Jr,Br),B("gg",Jr,Br),B("GGGG",ti,Gr),B("gggg",ti,Gr),B("GGGGG",ei,Zr),B("ggggg",ei,Zr),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=b(t)}),X(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),P("quarter","Q"),V("quarter",7),B("Q",qr),J("Q",function(t,e){e[fi]=3*(b(t)-1)}),L("D",["DD",2],"Do","date"),P("date","D"),V("date",9),B("D",Jr),B("DD",Jr,Br),B("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),J(["D","DD"],hi),J("Do",function(t,e){e[hi]=b(t.match(Jr)[0])});var ro=nt("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),V("dayOfYear",4),B("DDD",Qr),B("DDDD",zr),J(["DDD","DDDD"],function(t,e,n){n._dayOfYear=b(t)}),L("m",["mm",2],0,"minute"),P("minute","m"),V("minute",14),B("m",Jr),B("mm",Jr,Br),J(["m","mm"],pi);var io=nt("Minutes",!1);L("s",["ss",2],0,"second"),P("second","s"),V("second",15),B("s",Jr),B("ss",Jr,Br),J(["s","ss"],mi);var oo,so=nt("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),V("millisecond",16),B("S",Qr,qr),B("SS",Qr,Br),B("SSS",Qr,zr),oo="SSSS";oo.length<=9;oo+="S")B(oo,ni);for(oo="S";oo.length<=9;oo+="S")J(oo,qn);var ao=nt("Milliseconds",!1);L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var uo=$.prototype;uo.add=to,uo.calendar=rn,uo.clone=on,uo.diff=hn,uo.endOf=kn,uo.format=$n,uo.from=gn,uo.fromNow=yn,uo.to=bn,uo.toNow=wn,uo.get=ot,uo.invalidAt=jn,uo.isAfter=sn,uo.isBefore=an,uo.isBetween=un,uo.isSame=cn,uo.isSameOrAfter=ln,uo.isSameOrBefore=fn,uo.isValid=Tn,uo.lang=no,uo.locale=xn,uo.localeData=Sn,uo.max=Gi,uo.min=zi,uo.parsingFlags=Nn,uo.set=st,uo.startOf=_n,uo.subtract=eo,uo.toArray=An,uo.toObject=Dn,uo.toDate=En,uo.toISOString=mn,uo.inspect=vn,uo.toJSON=On,uo.toString=pn,uo.unix=Mn,uo.valueOf=Cn,uo.creationData=Pn,uo.year=bi,uo.isLeapYear=et,uo.weekYear=In,uo.isoWeekYear=Vn,uo.quarter=uo.quarters=Hn,uo.month=pt,uo.daysInMonth=mt,uo.week=uo.weeks=Et,uo.isoWeek=uo.isoWeeks=At,uo.weeksInYear=Fn,uo.isoWeeksInYear=Yn,uo.date=ro,uo.day=uo.days=It,uo.weekday=Vt,uo.isoWeekday=Yt,uo.dayOfYear=Wn,uo.hour=uo.hours=Pi,uo.minute=uo.minutes=io,uo.second=uo.seconds=so,uo.millisecond=uo.milliseconds=ao,uo.utcOffset=Ye,uo.utc=Le,uo.local=Ue,uo.parseZone=He,uo.hasAlignedHourOffset=We,uo.isDST=qe,uo.isLocal=ze,uo.isUtcOffset=Ge,uo.isUtc=Ze,uo.isUTC=Ze,uo.zoneAbbr=Bn,uo.zoneName=zn,uo.dates=S("dates accessor is deprecated. Use date instead.",ro),uo.months=S("months accessor is deprecated. Use month instead",pt),uo.years=S("years accessor is deprecated. Use year instead",bi),uo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fe),uo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Be);var co=E.prototype;co.calendar=A,co.longDateFormat=D,co.invalidDate=O,co.ordinal=T,co.preparse=Jn,co.postformat=Jn,co.relativeTime=N,co.pastFuture=j,co.set=C,co.months=ct,co.monthsShort=lt,co.monthsParse=ht,co.monthsRegex=$t,co.monthsShortRegex=vt,co.week=kt,co.firstDayOfYear=Mt,co.firstDayOfWeek=Ct,co.weekdays=Tt,co.weekdaysMin=jt,co.weekdaysShort=Nt,co.weekdaysParse=Rt,co.weekdaysRegex=Ft,co.weekdaysShortRegex=Lt,co.weekdaysMinRegex=Ut,co.isPM=Gt,co.meridiem=Zt,Qt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=S("moment.lang is deprecated. Use moment.locale instead.",Qt),t.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ne);var lo=Math.abs,fo=mr("ms"),ho=mr("s"),po=mr("m"),mo=mr("h"),vo=mr("d"),$o=mr("w"),go=mr("M"),yo=mr("y"),bo=gr("milliseconds"),wo=gr("seconds"),xo=gr("minutes"),So=gr("hours"),_o=gr("days"),ko=gr("months"),Co=gr("years"),Mo=Math.round,Eo={ss:44,s:45,m:45,h:22,d:26,M:11},Ao=Math.abs,Do=Te.prototype;return Do.isValid=De,Do.abs=or,Do.add=ar,Do.subtract=ur,Do.as=dr,Do.asMilliseconds=fo,Do.asSeconds=ho,Do.asMinutes=po,Do.asHours=mo,Do.asDays=vo,Do.asWeeks=$o,Do.asMonths=go,Do.asYears=yo,Do.valueOf=pr,Do._bubble=lr,Do.clone=vr,Do.get=$r,Do.milliseconds=bo,Do.seconds=wo,Do.minutes=xo,Do.hours=So,Do.days=_o,Do.weeks=yr,Do.months=ko,Do.years=Co,Do.humanize=_r,Do.toISOString=Cr,Do.toString=Cr,Do.toJSON=Cr,Do.locale=xn,Do.localeData=Sn,Do.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cr),Do.lang=no,L("X",0,0,"unix"),L("x",0,0,"valueOf"),B("x",ri),B("X",si),J("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,n){n._d=new Date(b(t))}),t.version="2.20.1",e(ke),t.fn=uo,t.min=Me,t.max=Ee,t.now=Zi,t.utc=f,t.unix=Gn,t.months=tr,t.isDate=a,t.locale=Qt,t.invalid=m,t.duration=Je,t.isMoment=g,t.weekdays=nr,t.parseZone=Zn,t.localeData=ne,t.isDuration=Ne,t.monthsShort=er,t.weekdaysMin=ir,t.defineLocale=te,t.updateLocale=ee,t.locales=re,t.weekdaysShort=rr,t.normalizeUnits=R,t.relativeTimeRounding=xr,t.relativeTimeThreshold=Sr,t.calendarFormat=nn,t.prototype=uo,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(t.moment)}(this,function(t){"use strict";return t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t){return t<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}),function(t,e){"use strict";var n;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var r=t(document);t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=n.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(e,n,r){var i=t.Event(n);return e.trigger(i,r),!1!==i.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(r){var i,o,s,a,u,c;if(n.fire(r,"ajax:before")){if(a=r.data("with-credentials")||null,u=r.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,r.is("form")){i=r.data("ujs:submit-button-formmethod")||r.attr("method"),o=r.data("ujs:submit-button-formaction")||r.attr("action"),s=t(r[0]).serializeArray();var l=r.data("ujs:submit-button");l&&(s.push(l),r.data("ujs:submit-button",null)),r.data("ujs:submit-button-formmethod",null),r.data("ujs:submit-button-formaction",null)}else r.is(n.inputChangeSelector)?(i=r.data("method"),o=r.data("url"),s=r.serialize(),r.data("params")&&(s=s+"&"+r.data("params"))):r.is(n.buttonClickSelector)?(i=r.data("method")||"get",o=r.data("url"),s=r.serialize(),r.data("params")&&(s=s+"&"+r.data("params"))):(i=r.data("method"),o=n.href(r),s=r.data("params")||null);return c={type:i||"GET",data:s,dataType:u,beforeSend:function(t,i){if(i.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+i.accepts.script),!n.fire(r,"ajax:beforeSend",[t,i]))return!1;r.trigger("ajax:send",t)},success:function(t,e,n){r.trigger("ajax:success",[t,e,n])},complete:function(t,e){r.trigger("ajax:complete",[t,e])},error:function(t,e,n){r.trigger("ajax:error",[t,e,n])},crossDomain:n.isCrossDomain(o)},a&&(c.xhrFields={withCredentials:a}),o&&(c.url=o),n.ajax(c)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(r){return!0}},handleMethod:function(r){var i=n.href(r),o=r.data("method"),s=r.attr("target"),a=n.csrfToken(),u=n.csrfParam(),c=t('<form method="post" action="'+i+'"></form>'),l='<input name="_method" value="'+o+'" type="hidden" />';u===e||a===e||n.isCrossDomain(i)||(l+='<input name="'+u+'" value="'+a+'" type="hidden" />'),s&&c.attr("target",s),c.hide().append(l).appendTo("body"),c.submit()},formElements:function(e,n){return e.is("form")?t(e[0].elements).filter(n):e.find(n)},disableFormElements:function(e){n.formElements(e,n.disableSelector).each(function(){n.disableFormElement(t(this))})},disableFormElement:function(t){var n,r;n=t.is("button")?"html":"val",(r=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[n]()),t[n](r)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){n.formElements(e,n.enableSelector).each(function(){n.enableFormElement(t(this))})},enableFormElement:function(t){var n=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[n](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,r=t.data("confirm"),i=!1;if(!r)return!0;if(n.fire(t,"confirm")){try{i=n.confirm(r)}catch(o){(console.error||console.log).call(console,o.stack||o)}e=n.fire(t,"confirm:complete",[i])}return i&&e},blankInputs:function(e,n,r){var i,o,s,a=t(),u=n||"input,textarea",c=e.find(u),l={};return c.each(function(){(i=t(this)).is("input[type=radio]")?(s=i.attr("name"),l[s]||(0===e.find('input[type=radio]:checked[name="'+s+'"]').length&&(o=e.find('input[type=radio][name="'+s+'"]'),a=a.add(o)),l[s]=s)):(i.is("input[type=checkbox],input[type=radio]")?i.is(":checked"):!!i.val())===r&&(a=a.add(i))}),!!a.length&&a},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var r=t.data("disable-with");r!==e&&(t.data("ujs:enable-with",t.html()),t.html(r)),t.bind("click.railsDisable",function(t){return n.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},n.fire(r,"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,r){t.crossDomain||n.CSRFProtection(r)}),t(window).on("pageshow.rails",function(){t(t.rails.enableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)}),t(t.rails.linkDisableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)})}),r.on("ajax:complete",n.linkDisableSelector,function(){n.enableElement(t(this))}),r.on("ajax:complete",n.buttonDisableSelector,function(){n.enableFormElement(t(this))}),r.on("click.rails",n.linkClickSelector,function(e){var r=t(this),i=r.data("method"),o=r.data("params"),s=e.metaKey||e.ctrlKey;if(!n.allowAction(r))return n.stopEverything(e);if(!s&&r.is(n.linkDisableSelector)&&n.disableElement(r),n.isRemote(r)){if(s&&(!i||"GET"===i)&&!o)return!0;var a=n.handleRemote(r);return!1===a?n.enableElement(r):a.fail(function(){n.enableElement(r)}),!1}return i?(n.handleMethod(r),!1):void 0}),r.on("click.rails",n.buttonClickSelector,function(e){var r=t(this);if(!n.allowAction(r)||!n.isRemote(r))return n.stopEverything(e);r.is(n.buttonDisableSelector)&&n.disableFormElement(r);var i=n.handleRemote(r);return!1===i?n.enableFormElement(r):i.fail(function(){n.enableFormElement(r)}),!1}),r.on("change.rails",n.inputChangeSelector,function(e){var r=t(this);return n.allowAction(r)&&n.isRemote(r)?(n.handleRemote(r),!1):n.stopEverything(e)}),r.on("submit.rails",n.formSubmitSelector,function(r){var i,o,s=t(this),a=n.isRemote(s);if(!n.allowAction(s))return n.stopEverything(r);if(s.attr("novalidate")===e)if(s.data("ujs:formnovalidate-button")===e){if((i=n.blankInputs(s,n.requiredInputSelector,!1))&&n.fire(s,"ajax:aborted:required",[i]))return n.stopEverything(r)}else s.data("ujs:formnovalidate-button",e);if(a){if(o=n.nonBlankInputs(s,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(s)},13);var u=n.fire(s,"ajax:aborted:file",[o]);return u||setTimeout(function(){n.enableFormElements(s)},13),u}return n.handleRemote(s),!1}setTimeout(function(){n.disableFormElements(s)},13)}),r.on("click.rails",n.formInputClickSelector,function(e){var r=t(this);if(!n.allowAction(r))return n.stopEverything(e);var i=r.attr("name"),o=i?{name:i,value:r.val()}:null,s=r.closest("form");0===s.length&&(s=t("#"+r.attr("form"))),s.data("ujs:submit-button",o),s.data("ujs:formnovalidate-button",r.attr("formnovalidate")),s.data("ujs:submit-button-formaction",r.attr("formaction")),s.data("ujs:submit-button-formmethod",r.attr("formmethod"))}),r.on("ajax:send.rails",n.formSubmitSelector,function(e){this===e.target&&n.disableFormElements(t(this))}),r.on("ajax:complete.rails",n.formSubmitSelector,function(e){this===e.target&&n.enableFormElements(t(this))}),t(function(){n.refreshCSRFTokens()}))}(jQuery),function(){var t=this;(function(){(function(){var t=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(t){var n;return null==t&&(t=null!=(n=this.getConfig("url"))?n:this.INTERNAL.default_mount_path),new e.Consumer(this.createWebSocketURL(t))},getConfig:function(t){var e;return null!=(e=document.head.querySelector("meta[name='action-cable-"+t+"']"))?e.getAttribute("content"):void 0},createWebSocketURL:function(t){var e;return t&&!/^wss?:/i.test(t)?((e=document.createElement("a")).href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href):t},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var e,n;if(e=1<=arguments.length?t.call(arguments,0):[],this.debugging)return e.push(Date.now()),(n=this.logger).log.apply(n,["[ActionCable]"].concat(t.call(e)))}}}).call(this)}).call(t);var e=t.ActionCable;(function(){(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.ConnectionMonitor=function(){function n(e){this.connection=e,this.visibilityDidChange=t(this.visibilityDidChange,this),this.reconnectAttempts=0}var r,i,o;return n.pollInterval={min:3,max:30},n.staleThreshold=6,n.prototype.start=function(){if(!this.isRunning())return this.startedAt=i(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),e.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},n.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=i(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),e.log("ConnectionMonitor stopped")},n.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},n.prototype.recordPing=function(){return this.pingedAt=i()},n.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,e.log("ConnectionMonitor recorded connect")},n.prototype.recordDisconnect=function(){return this.disconnectedAt=i(),e.log("ConnectionMonitor recorded disconnect")},n.prototype.startPolling=function(){return this.stopPolling(),this.poll()},n.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},n.prototype.poll=function(){return this.pollTimeout=setTimeout((t=this,function(){return t.reconnectIfStale(),t.poll()}),this.getPollInterval());var t},n.prototype.getPollInterval=function(){var t,e,n,i;return n=(i=this.constructor.pollInterval).min,e=i.max,t=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*r(t,n,e))},n.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return e.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?e.log("ConnectionMonitor skipping reopening recent disconnect"):(e.log("ConnectionMonitor reopening"),this.connection.reopen())},n.prototype.connectionIsStale=function(){var t;return o(null!=(t=this.pingedAt)?t:this.startedAt)>this.constructor.staleThreshold},n.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},n.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((t=this,function(){if(t.connectionIsStale()||!t.connection.isOpen())return e.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),t.connection.reopen()}),200);var t},i=function(){return(new Date).getTime()},o=function(t){return(i()-t)/1e3},r=function(t,e,n){return Math.max(e,Math.min(n,t))},n}()}).call(this),function(){var t,n,r,i,o,s=[].slice,a=function(t,e){return function(){return t.apply(e,arguments)}},u=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};i=e.INTERNAL,n=i.message_types,r=i.protocols,o=2<=r.length?s.call(r,0,t=r.length-1):(t=0,[]),r[t++],e.Connection=function(){function t(t){this.consumer=t,this.open=a(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new e.ConnectionMonitor(this),this.disconnected=!0}return t.reopenDelay=500,t.prototype.send=function(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)},t.prototype.open=function(){return this.isActive()?(e.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(e.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+r),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new e.WebSocket(this.consumer.url,r),this.installEventHandlers(),this.monitor.start(),!0)},t.prototype.close=function(t){var e;if((null!=t?t:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(e=this.webSocket)?e.close():void 0},t.prototype.reopen=function(){var t;if(e.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(n){return t=n,e.log("Failed to reopen WebSocket",t)}finally{e.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},t.prototype.getProtocol=function(){var t;return null!=(t=this.webSocket)?t.protocol:void 0},t.prototype.isOpen=function(){return this.isState("open")},t.prototype.isActive=function(){return this.isState("open","connecting")},t.prototype.isProtocolSupported=function(){var t;return t=this.getProtocol(),u.call(o,t)>=0},t.prototype.isState=function(){var t,e;return e=1<=arguments.length?s.call(arguments,0):[],t=this.getState(),u.call(e,t)>=0},t.prototype.getState=function(){var t,e;for(e in WebSocket)if(WebSocket[e]===(null!=(t=this.webSocket)?t.readyState:void 0))return e.toLowerCase();return null},t.prototype.installEventHandlers=function(){var t,e;for(t in this.events)e=this.events[t].bind(this),this.webSocket["on"+t]=e},t.prototype.uninstallEventHandlers=function(){var t;for(t in this.events)this.webSocket["on"+t]=function(){}},t.prototype.events={message:function(t){var e,r,i;if(this.isProtocolSupported())switch(e=(i=JSON.parse(t.data)).identifier,r=i.message,i.type){case n.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case n.ping:return this.monitor.recordPing();case n.confirmation:return this.subscriptions.notify(e,"connected");case n.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",r)}},open:function(){if(e.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return e.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(){if(e.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return e.log("WebSocket onerror event")}},t}()}.call(this),function(){var t=[].slice;e.Subscriptions=function(){function n(t){this.consumer=t,this.subscriptions=[]}return n.prototype.create=function(t,n){var r,i,o;return i="object"==typeof(r=t)?r:{channel:r},o=new e.Subscription(this.consumer,i,n),this.add(o)},n.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},n.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},n.prototype.reject=function(t){var e,n,r,i,o;for(i=[],e=0,n=(r=this.findAll(t)).length;e<n;e++)o=r[e],this.forget(o),this.notify(o,"rejected"),i.push(o);return i},n.prototype.forget=function(t){var e;return this.subscriptions=function(){var n,r,i,o;for(o=[],n=0,r=(i=this.subscriptions).length;n<r;n++)(e=i[n])!==t&&o.push(e);return o}.call(this),t},n.prototype.findAll=function(t){var e,n,r,i,o;for(i=[],e=0,n=(r=this.subscriptions).length;e<n;e++)(o=r[e]).identifier===t&&i.push(o);return i},n.prototype.reload=function(){var t,e,n,r,i;for(r=[],t=0,e=(n=this.subscriptions).length;t<e;t++)i=n[t],r.push(this.sendCommand(i,"subscribe"));return r},n.prototype.notifyAll=function(){var e,n,r,i,o,s,a;for(n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],s=[],r=0,i=(o=this.subscriptions).length;r<i;r++)a=o[r],s.push(this.notify.apply(this,[a,n].concat(t.call(e))));return s},n.prototype.notify=function(){var e,n,r,i,o,s,a;for(s=arguments[0],n=arguments[1],e=3<=arguments.length?t.call(arguments,2):[],o=[],r=0,i=(a="string"==typeof s?this.findAll(s):[s]).length;r<i;r++)s=a[r],o.push("function"==typeof s[n]?s[n].apply(s,e):void 0);return o},n.prototype.sendCommand=function(t,e){var n;return n=t.identifier,this.consumer.send({command:e,identifier:n})},n}()}.call(this),function(){e.Subscription=function(){function t(t,n,r){this.consumer=t,null==n&&(n={}),this.identifier=JSON.stringify(n),e(this,r)}var e;return t.prototype.perform=function(t,e){return null==e&&(e={}),e.action=t,this.send(e)},t.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},t.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e=function(t,e){var n,r;if(null!=e)for(n in e)r=e[n],t[n]=r;return t},t}()}.call(this),function(){e.Consumer=function(){function t(t){this.url=t,this.subscriptions=new e.Subscriptions(this),this.connection=new e.Connection(this)}return t.prototype.send=function(t){return this.connection.send(t)},t.prototype.connect=function(){return this.connection.open()},t.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},t.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},t}()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd&&define(e)}.call(this),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),window.App=angular.module("AMB",[]),App.cable=ActionCable.createConsumer(),function(){var t;(t=function(t){return console.log("change locale"),t.change_locale=function(){var t,e,n;return t=$("#t_locale").val(),e=window.location.origin,n=window.location.pathname,Swal.fire({title:"<b style='font-size: 18px;'>"+t+"</b>",html:"<div class='row' style='padding: 10px'; > <div class='col-12' style='text-align: center' > <a href="+e+n+"?locale=en> <img src='https://assets.i-newauto.com/user/locale/en.png' style='width:30px;'> &nbsp;&nbsp;&nbsp;&nbsp;English </a><br> </div> </div> <div class='row' style='padding: 10px'; > <div class='col-12' style='text-align: center' > <a href="+e+n+"?locale=th> <img src='https://assets.i-newauto.com/user/locale/th.png' style='width:30px;'> &nbsp;&nbsp;&nbsp;&nbsp;\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 </a><br> </div> </div> <div class='row' style='padding: 10px'; > <div class='col-12' style='text-align: center' > <a href="+e+n+"?locale=mm> <img src='https://assets.i-newauto.com/user/locale/mm.png' style='width:30px;'> &nbsp;&nbsp;&nbsp;&nbsp;\u1017\u1019\u102c\u1018\u102c\u101e\u102c\u1005\u1000\u102c\u1038 </a><br> </div> </div>",showCloseButton:!0,
showConfirmButton:!1})},t.init=function(){},t.init()}).$inject=["$scope","$http"],App.controller("ChangeLocaleCtrl",t)}.call(this);