/*! For license information please see vendor.a8607080752776b156d4.bundle.js.LICENSE.txt */ (self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[54736],{13870:()=>{!function(t,e){"use strict";function n(t,n,i){var o=i.baseHref(),r=t[0];return function(t,i,a){r.cookie=function(t,i,r){var a,s;s=(r=r||{}).expires,a=e.isDefined(r.path)?r.path:o,e.isUndefined(i)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",i=""),e.isString(s)&&(s=new Date(s));var l=encodeURIComponent(t)+"="+encodeURIComponent(i);l+=a?";path="+a:"",l+=r.domain?";domain="+r.domain:"",l+=s?";expires="+s.toUTCString():"",l+=r.secure?";secure":"";var d=(l+=r.samesite?";samesite="+r.samesite:"").length+1;return d>4096&&n.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"),l}(t,i,a)}}e.module("ngCookies",["ng"]).info({angularVersion:"1.8.2"}).provider("$cookies",[function(){var t=this.defaults={};function n(n){return n?e.extend({},t,n):t}this.$get=["$$cookieReader","$$cookieWriter",function(t,i){return{get:function(e){return t()[e]},getObject:function(t){var n=this.get(t);return n?e.fromJson(n):n},getAll:function(){return t()},put:function(t,e,o){i(t,e,n(o))},putObject:function(t,n,i){this.put(t,e.toJson(n),i)},remove:function(t,e){i(t,void 0,n(e))}}}]}]),n.$inject=["$document","$log","$browser"],e.module("ngCookies").provider("$$cookieWriter",(function(){this.$get=n}))}(window,window.angular)},97808:(t,e,n)=>{n(13870),t.exports="ngCookies"},32022:()=>{!function(t,e,n){"use strict";var i=e.isDefined,o=e.isUndefined,r=e.isFunction,a=e.isString,s=e.isNumber,l=e.isObject,d=e.isArray,u=e.forEach,c=e.extend,p=e.copy,h=e.equals;function f(t){return d(t)?t:Object.keys(t).map((function(e){return t[e]}))}function g(t){return null===t}function m(t,e){return-1==Object.keys(t).map((function(i){return e[i]!==n&&e[i]==t[i]})).indexOf(!1)}function b(t,e){function n(t,e,n){for(var i=0;e+i<=t.length;){if(t.charAt(e+i)==n)return i;i++}return-1}for(var i=0,o=0;o<=e.length;o++){var r=n(t,i,e.charAt(o));if(-1==r)return!1;i+=r+1}return!0}function v(t,e,n){var o=0;return t.filter((function(t){var r=i(n)?oe}}function k(){return function(t,e){return t>=e}}function _(){return function(t,e){return t=t.length?t:d(t[e])?E(t.slice(0,e).concat(t[e],t.slice(e+1)),e):E(t,e+1)}function A(t){return function(e,n){if(e=l(e)?f(e):e,!d(e))return e;var i=[],r=t(n);return o(n)?e.filter((function(t,e,n){return n.indexOf(t)===e})):e.filter((function(t){var e,n,a=r(t);return!(e=i,n=a,!o(n)&&e.some((function(t){return h(t,n)}))||(i.push(a),0))}))}}function P(t,e,n){return e?t+n+P(t,--e,n):t}function L(){return function(t){return a(t)?t.split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.substring(1)})).join(" "):t}}String.prototype.contains||(String.prototype.contains=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.module("a8m.angular",[]).filter("isUndefined",(function(){return function(t){return e.isUndefined(t)}})).filter("isDefined",(function(){return function(t){return e.isDefined(t)}})).filter("isFunction",(function(){return function(t){return e.isFunction(t)}})).filter("isString",(function(){return function(t){return e.isString(t)}})).filter("isNumber",(function(){return function(t){return e.isNumber(t)}})).filter("isArray",(function(){return function(t){return e.isArray(t)}})).filter("isObject",(function(){return function(t){return e.isObject(t)}})).filter("isEqual",(function(){return function(t,n){return e.equals(t,n)}})),e.module("a8m.conditions",[]).filter({isGreaterThan:w,">":w,isGreaterThanOrEqualTo:k,">=":k,isLessThan:_,"<":_,isLessThanOrEqualTo:C,"<=":C,isEqualTo:M,"==":M,isNotEqualTo:S,"!=":S,isIdenticalTo:T,"===":T,isNotIdenticalTo:D,"!==":D}),e.module("a8m.is-null",[]).filter("isNull",(function(){return function(t){return g(t)}})),e.module("a8m.after-where",[]).filter("afterWhere",(function(){return function(t,e){if(t=l(t)?f(t):t,!d(t)||o(e))return t;var n=t.map((function(t){return m(e,t)})).indexOf(!0);return t.slice(-1===n?0:n)}})),e.module("a8m.after",[]).filter("after",(function(){return function(t,e){return t=l(t)?f(t):t,d(t)?t.slice(e):t}})),e.module("a8m.before-where",[]).filter("beforeWhere",(function(){return function(t,e){if(t=l(t)?f(t):t,!d(t)||o(e))return t;var n=t.map((function(t){return m(e,t)})).indexOf(!0);return t.slice(0,-1===n?t.length:++n)}})),e.module("a8m.before",[]).filter("before",(function(){return function(t,e){return t=l(t)?f(t):t,d(t)?t.slice(0,e?--e:e):t}})),e.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(t){return function(e,n,i){return t.isMemoized("chunkBy",arguments)||t.memoize("chunkBy",arguments,this,a(e,n,i));function r(t,e){for(var n=[];t--;)n[t]=e;return n}function a(t,e,n){return d(t)?t.map((function(t,i,a){return i*=e,t=a.slice(i,i+e),!o(n)&&t.length=0&&s(e)&&isFinite(e)){for(var i=0;i=t[i].val;)i++;return $(e/=i>0?t[i-1].val:1,n)+" "+t[i].str}return"NaN"}})),e.module("a8m.math.degrees",[]).filter("degrees",(function(){return function(t,e){if(s(e)&&isFinite(e)&&e%1==0&&e>=0&&s(t)&&isFinite(t)){var n=180*t/Math.PI;return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}return"NaN"}})),e.module("a8m.math.kbFmt",[]).filter("kbFmt",(function(){var t=[{str:"KB",val:1024}];return["MB","GB","TB","PB","EB","ZB","YB"].forEach((function(e,n){t.push({str:e,val:1024*t[n].val})})),function(e,n){if(s(n)&&isFinite(n)&&n%1==0&&n>=0&&s(e)&&isFinite(e)){for(var i=0;i=t[i].val;)i++;return $(e/=i>0?t[i-1].val:1,n)+" "+t[i].str}return"NaN"}})),e.module("a8m.math.max",[]).filter("max",["$parse",function(t){return function(e,n){return d(e)?o(n)?Math.max.apply(Math,e):e[(i=e,r=n,a=i.map((function(e){return t(r)(e)})),a.indexOf(Math.max.apply(Math,a)))]:e;var i,r,a}}]),e.module("a8m.math.min",[]).filter("min",["$parse",function(t){return function(e,n){return d(e)?o(n)?Math.min.apply(Math,e):e[(i=e,r=n,a=i.map((function(e){return t(r)(e)})),a.indexOf(Math.min.apply(Math,a)))]:e;var i,r,a}}]),e.module("a8m.math.percent",[]).filter("percent",(function(){return function(t,e,n){var i=a(t)?Number(t):t;return e=e||100,n=n||!1,!s(i)||isNaN(i)?t:n?Math.round(i/e*100):i/e*100}})),e.module("a8m.math.radians",[]).filter("radians",(function(){return function(t,e){if(s(e)&&isFinite(e)&&e%1==0&&e>=0&&s(t)&&isFinite(t)){var n=3.14159265359*t/180;return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}return"NaN"}})),e.module("a8m.math.radix",[]).filter("radix",(function(){return function(t,e){return s(t)&&/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(e)?t.toString(e).toUpperCase():t}})),e.module("a8m.math.shortFmt",[]).filter("shortFmt",(function(){return function(t,e){return s(e)&&isFinite(e)&&e%1==0&&e>=0&&s(t)&&isFinite(t)?t<1e3?""+t:t<1e6?$(t/1e3,e)+" K":t<1e9?$(t/1e6,e)+" M":$(t/1e9,e)+" B":"NaN"}})),e.module("a8m.math.sum",[]).filter("sum",(function(){return function(t,e){return d(t)?t.reduce((function(t,e){return t+e}),e||0):t}})),e.module("a8m.ends-with",[]).filter("endsWith",(function(){return function(t,e,n){var i,r=n||!1;return!a(t)||o(e)?t:(i=(t=r?t:t.toLowerCase()).length-e.length,-1!==t.indexOf(r?e:e.toLowerCase(),i))}})),e.module("a8m.latinize",[]).filter("latinize",[function(){for(var t=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],e={},n=0;n=r.length?[t]:0===n?t.split(e):(l=(s=t.split(e)).splice(0,n+1),s.unshift(l.join(e)),s))}})),e.module("a8m.starts-with",[]).filter("startsWith",(function(){return function(t,e,n){var i=n||!1;return!a(t)||o(e)?t:!(t=i?t:t.toLowerCase()).indexOf(i?e:e.toLowerCase())}})),e.module("a8m.stringular",[]).filter("stringular",(function(){return function(t){var e=Array.prototype.slice.call(arguments,1);return t.replace(/{(\d+)}/g,(function(t,n){return o(e[n])?t:e[n]}))}})),e.module("a8m.strip-tags",[]).filter("stripTags",(function(){return function(t){return a(t)?t.replace(/<\S[^><]*>/g,""):t}})),e.module("a8m.test",[]).filter("test",(function(){return function(t,e,n){var i=new RegExp(e,n);return a(t)?i.test(t):t}})),e.module("a8m.trim",[]).filter("trim",(function(){return function(t,e){var n=e||"\\s";return a(t)?t.replace(new RegExp("^"+n+"+|"+n+"+$","g"),""):t}})),e.module("a8m.truncate",[]).filter("truncate",(function(){return function(t,e,n,i){return e=o(e)?t.length:e,i=i||!1,n=n||"",!a(t)||t.length<=e?t:t.substring(0,i?-1===t.indexOf(" ",e)?t.length:t.indexOf(" ",e):e)+n}})),e.module("a8m.ucfirst",[]).filter({ucfirst:L,titleize:L}),e.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(t){return function(e){return a(e)?t.encodeURIComponent(e):e}}]),e.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(t){return function(e){return a(e)?t.encodeURI(e):e}}]),e.module("a8m.wrap",[]).filter("wrap",(function(){return function(t,e,n){return a(t)&&i(e)?[e,t,n||e].join(""):t}})),e.module("a8m.filter-watcher",[]).provider("filterWatcher",(function(){this.$get=["$window","$rootScope",function(t,e){var n={},i={},r=t.setTimeout;function a(e,n){return[e,JSON.stringify(n,(i=[],function(e,n){if(l(n)&&!g(n)){if(~i.indexOf(n))return"[Circular]";i.push(n)}return t==n?"$WINDOW":t.document==n?"$DOCUMENT":x(n)?"$SCOPE":n}))].join("#").replace(/"/g,"");var i}function s(t){var e=t.targetScope.$id;u(i[e],(function(t){delete n[t]})),delete i[e]}return{isMemoized:function(t,e){var i=a(t,e);return n[i]},memoize:function(t,l,d,u){var c=a(t,l);return n[c]=u,x(d)?function(t,e){var n=t.$id;o(i[n])&&(t.$on("$destroy",s),i[n]=[]),i[n].push(e)}(d,c):r((function(){e.$$phase||(n={})}),2e3),u}}}]})),e.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.split","a8m.phoneUS","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math.max","a8m.math.min","a8m.math.abs","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular)},446:(t,e,n)=>{n(32022),t.exports="angular.filter"},73114:(t,e,n)=>{var i=n(96486);!function(t,e,n,i){"use strict";(function(){e.module("uiGmapgoogle-maps.providers",["nemLogging"]),e.module("uiGmapgoogle-maps.wrapped",[]),e.module("uiGmapgoogle-maps.extensions",["uiGmapgoogle-maps.wrapped","uiGmapgoogle-maps.providers"]),e.module("uiGmapgoogle-maps.directives.api.utils",["uiGmapgoogle-maps.extensions"]),e.module("uiGmapgoogle-maps.directives.api.managers",[]),e.module("uiGmapgoogle-maps.directives.api.options",["uiGmapgoogle-maps.directives.api.utils"]),e.module("uiGmapgoogle-maps.directives.api.options.builders",[]),e.module("uiGmapgoogle-maps.directives.api.models.child",["uiGmapgoogle-maps.directives.api.utils","uiGmapgoogle-maps.directives.api.options","uiGmapgoogle-maps.directives.api.options.builders"]),e.module("uiGmapgoogle-maps.directives.api.models.parent",["uiGmapgoogle-maps.directives.api.managers","uiGmapgoogle-maps.directives.api.models.child","uiGmapgoogle-maps.providers"]),e.module("uiGmapgoogle-maps.directives.api",["uiGmapgoogle-maps.directives.api.models.parent"]),e.module("uiGmapgoogle-maps",["uiGmapgoogle-maps.directives.api","uiGmapgoogle-maps.providers"])}).call(this),function(){e.module("uiGmapgoogle-maps.providers").factory("uiGmapMapScriptLoader",["$q","uiGmapuuid",function(i,o){var r,a,s,l,d;return l=void 0,d=void 0,r=function(t){return t.china?"http://maps.google.cn/maps/api/js?":"auto"===t.transport?"//maps.googleapis.com/maps/api/js?":t.transport+"://maps.googleapis.com/maps/api/js?"},a=function(t){var e,i,a,s;return e=["transport","isGoogleMapsForWork","china","preventLoad"],t.isGoogleMapsForWork&&e.push("key"),i=n.map(n.omit(t,e),(function(t,e){return e+"="+t})),l&&(s=document.getElementById(l)).parentNode.removeChild(s),i=i.join("&"),(a=document.createElement("script")).id=l="ui_gmap_map_load_"+o.generate(),a.type="text/javascript",a.src=r(t)+i,document.head.appendChild(a)},s=function(){return e.isDefined(t.google)&&e.isDefined(t.google.maps)},{load:function(e){var n,o;return n=i.defer(),s()?(n.resolve(t.google.maps),n.promise):(o=e.callback="onGoogleMapsReady"+Math.round(1e3*Math.random()),t[o]=function(){t[o]=null,n.resolve(t.google.maps)},t.navigator.connection&&t.Connection&&t.navigator.connection.type===t.Connection.NONE&&!e.preventLoad?document.addEventListener("online",(function(){if(!s())return a(e)})):e.preventLoad||a(e),(d=e).randomizedFunctionName=o,n.promise)},manualLoad:function(){var e;return e=d,s()?t[e.randomizedFunctionName]?t[e.randomizedFunctionName]():void 0:a(e)}}}]).provider("uiGmapGoogleMapApi",(function(){var t;return this.options={transport:"https",isGoogleMapsForWork:!1,china:!1,v:"3",libraries:"",language:"en",preventLoad:!1},this.configure=function(t){e.extend(this.options,t)},this.$get=["uiGmapMapScriptLoader",(t=this,function(e){return e.load(t.options)})],this})).service("uiGmapGoogleMapApiManualLoader",["uiGmapMapScriptLoader",function(t){return{load:function(){t.manualLoad()}}}])}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendGWin",(function(){return{init:n.once((function(){var e;if(google||("undefined"!=typeof google&&null!==google?google.maps:void 0)||null!=google.maps.InfoWindow)return google.maps.InfoWindow.prototype._open=google.maps.InfoWindow.prototype.open,google.maps.InfoWindow.prototype._close=google.maps.InfoWindow.prototype.close,google.maps.InfoWindow.prototype._isOpen=!1,google.maps.InfoWindow.prototype.open=function(t,e,n){null==n&&(this._isOpen=!0,this._open(t,e,!0))},google.maps.InfoWindow.prototype.close=function(t){null==t&&(this._isOpen=!1,this._close(!0))},google.maps.InfoWindow.prototype.isOpen=function(t){return null==t&&(t=void 0),null==t?this._isOpen:this._isOpen=t},t.InfoBox&&(t.InfoBox.prototype._open=t.InfoBox.prototype.open,t.InfoBox.prototype._close=t.InfoBox.prototype.close,t.InfoBox.prototype._isOpen=!1,t.InfoBox.prototype.open=function(t,e){this._isOpen=!0,this._open(t,e)},t.InfoBox.prototype.close=function(){this._isOpen=!1,this._close()},t.InfoBox.prototype.isOpen=function(t){return null==t&&(t=void 0),null==t?this._isOpen:this._isOpen=t},e=function(e){function r(e){var o;this.getOrigCloseBoxImg_=i(this.getOrigCloseBoxImg_,this),this.getCloseBoxDiv_=i(this.getCloseBoxDiv_,this),o=new t.InfoBox(e),n.extend(this,o),null!=e.closeBoxDiv&&(this.closeBoxDiv_=e.closeBoxDiv)}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(r,e),r.prototype.getCloseBoxDiv_=function(){return this.closeBoxDiv_},r.prototype.getCloseBoxImg_=function(){var t,e;return t=this.getCloseBoxDiv_(),e=this.getOrigCloseBoxImg_(),t||e},r.prototype.getOrigCloseBoxImg_=function(){var t;return t="",""!==this.closeBoxURL_&&(t="0&&(r=o[0]):r=n,r},defaultDelay:50,isTrue:function(t){return r(t,!0,["true","TRUE",1,"y","Y","yes","YES"])},isFalse:o=function(t){return r(t,!1,["false","FALSE",0,"n","N","no","NO"])},isFalsy:function(t){return r(t,!1,[void 0,null])||o(t)},getCoords:a=function(t){if(t)return t instanceof google.maps.LatLng?t:Array.isArray(t)&&2===t.length?new google.maps.LatLng(t[1],t[0]):e.isDefined(t.type)&&"Point"===t.type?new google.maps.LatLng(t.coordinates[1],t.coordinates[0]):new google.maps.LatLng(t.latitude,t.longitude)},validateCoords:function(t){if(e.isUndefined(t))return!1;if(n.isArray(t)){if(2===t.length)return!0}else if(null!=t&&(null!=t?t.type:void 0)&&"Point"===t.type&&n.isArray(t.coordinates)&&2===t.coordinates.length)return!0;return!(!t||!e.isDefined((null!=t?t.latitude:void 0)&&e.isDefined(null!=t?t.longitude:void 0)))},equalCoords:function(t,e){return s(t)===s(e)&&l(t)===l(e)},validatePath:function(t){var i,o,r;if(o=0,e.isUndefined(t.type)){if(!Array.isArray(t)||t.length<2)return!1;for(;othis.max)return this.max=t[0].length,this.index=e}),r),(i=t.coordinates[r.index][0]).length<4)return!1}else{if("LineString"!==t.type)return!1;if(t.coordinates.length<2)return!1;i=t.coordinates}for(;othis.max)return this.max=t[0].length,this.index=e}),s),i=t.coordinates[s.index][0]):"LineString"===t.type&&(i=t.coordinates);o0&&(i-=1),r.length&&(r.length-=1)}}}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapLinked",["uiGmapBaseObject",function(e){return function(e){function n(t,e,n,i){this.scope=t,this.element=e,this.attrs=n,this.ctrls=i}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(n,e),n}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapLogger",["nemSimpleLogger",function(t){return t.spawn()}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelKey",["uiGmapBaseObject","uiGmapGmapUtil",function(o,r){return function(o){function a(e,n){this.scope=e,this.interface=null!=n?n:{scopeKeys:[]},this.modelsLength=t(this.modelsLength,this),this.updateChild=t(this.updateChild,this),this.destroy=t(this.destroy,this),this.setChildScope=t(this.setChildScope,this),this.getChanges=t(this.getChanges,this),this.getProp=t(this.getProp,this),this.setIdKey=t(this.setIdKey,this),this.modelKeyComparison=t(this.modelKeyComparison,this),a.__super__.constructor.call(this),this.defaultIdKey="id",this.idKey=void 0}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(a,o),a.prototype.evalModelHandle=function(t,e){if(null!=t&&null!=e)return"self"===e?t:(n.isFunction(e)&&(e=e()),r.getPath(t,e))},a.prototype.modelKeyComparison=function(t,e){var i,o,a,s,l,d,u;if(((a=this.interface.scopeKeys.indexOf("coords")>=0)&&null!=this.scope.coords||!a)&&(l=this.scope),null==l)throw"No scope set!";return!a||(i=this.scopeOrModelVal("coords",l,t),o=this.scopeOrModelVal("coords",l,e),s=r.equalCoords(i,o))?(d=n.without(this.interface.scopeKeys,"coords"),s=n.every(d,(u=this,function(i){var o,r;return o=u.scopeOrModelVal(l[i],l,t),r=u.scopeOrModelVal(l[i],l,e),l.deepComparison?n.isEqual(o,r):o===r}))):s},a.prototype.setIdKey=function(t){return this.idKey=null!=t.idKey?t.idKey:this.defaultIdKey},a.prototype.setVal=function(t,e,n){return this.modelOrKey(t,n),t},a.prototype.modelOrKey=function(t,e){if(null!=e)return"self"!==e?r.getPath(t,e):t},a.prototype.getProp=function(t,e,n){return this.scopeOrModelVal(t,e,n)},a.prototype.getChanges=function(t,e,i){var o,r,a;for(a in i&&(e=n.pick(e,i),t=n.pick(t,i)),r={},a={},o={},t)e&&e[a]===t[a]||(n.isArray(t[a])?r[a]=t[a]:n.isObject(t[a])?(o=this.getChanges(t[a],e?e[a]:null),n.isEmpty(o)||(r[a]=o)):r[a]=t[a]);return r},a.prototype.scopeOrModelVal=function(t,e,i,o){var r,a,s,l;return null==o&&(o=!1),r=function(t,e,n){return null==n&&(n=!1),n?{isScope:t,value:e}:e},l=n.get(e,t),n.isFunction(l)?r(!0,l(i),o):n.isObject(l)?r(!0,l,o):n.isString(l)?(s=(a=l)?"self"===a?i:n.get(i,a):n.get(i,t),n.isFunction(s)?r(!1,s(),o):r(!1,s,o)):r(!0,l,o)},a.prototype.setChildScope=function(t,e,n){var i,o,r,a;for(o in t)r=t[o],null!=(null!=(i=this.scopeOrModelVal(r,e,n,!0))?i.value:void 0)&&(a=i.value)!==e[r]&&(e[r]=a);return e.model=n},a.prototype.onDestroy=function(t){},a.prototype.destroy=function(t){var e;return null==t&&(t=!1),null==this.scope||(null!=(e=this.scope)?e.$$destroyed:void 0)||!this.needToManualDestroy&&!t?this.clean():this.scope.$destroy()},a.prototype.updateChild=function(t,e){if(null!=e[this.idKey])return t.updateModel(e);this.$log.error("Model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key.")},a.prototype.modelsLength=function(t){var n,i;return null==t&&(t=void 0),n=0,null==(i=t||this.scope.models)?n:n=e.isArray(i)||null!=i.length?i.length:Object.keys(i).length},a}(o)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelsWatcher",["uiGmapLogger","uiGmap_async","$q","uiGmapPromise",function(t,e,n,i){return{didQueueInitPromise:function(t,n){return 0===n.models.length&&(e.promiseLock(t,i.promiseTypes.init,null,null,(function(){return i.resolve()})),!0)},figureOutState:function(e,n,i,o,r){var a,s,l,d;return a=[],s={},l=[],d=[],n.models.forEach((function(r){var l;return null==r[e]?t.error(" id missing for model #{m.toString()},\ncan not use do comparison/insertion"):(s[r[e]]={},null==i.get(r[e])?a.push(r):(l=i.get(r[e]),o(r,l.clonedModel,n)?void 0:d.push({model:r,child:l})))})),i.values().forEach((function(n){var i;if(null!=n){if(null!=n.model)return i=n.model[e],null==s[i]?l.push(n):void 0;t.error("child.model undefined in ModelsWatcher.")}else t.error("child undefined in ModelsWatcher.")})),{adds:a,removals:l,updates:d}}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapPromise",["$q","$timeout","uiGmapLogger",function(t,e,i){var o,r,a,s,l;return r={create:"create",update:"update",delete:"delete",init:"init"},(l={})[""+(o={IN_PROGRESS:0,RESOLVED:1,REJECTED:2}).IN_PROGRESS]="in-progress",l[""+o.RESOLVED]="resolved",l[""+o.REJECTED]="rejected",s=l,a=function(){var e;return(e=t.defer()).resolve.apply(void 0,arguments),e.promise},{defer:function(){return t.defer()},promise:function(o){var r;if(n.isFunction(o))return r=t.defer(),e((function(){var t;return t=o(),r.resolve(t)})),r.promise;i.error("uiGmapPromise.promise() only accepts functions")},resolve:a,promiseTypes:r,isInProgress:function(t){return t.$$state?t.$$state.status===o.IN_PROGRESS:!t.hasOwnProperty("$$v")||void 0},isResolved:function(t){return t.$$state?t.$$state.status===o.RESOLVED:!!t.hasOwnProperty("$$v")||void 0},promiseStatus:function(t){return s[t]||"done w error"},ExposedPromise:function(e){var n,i,o;return n=t.defer(),i=t.all([e,n.promise]),o=t.defer(),e.then(n.resolve,(function(){}),(function(t){return n.notify(t),o.notify(t)})),i.then((function(t){return o.resolve(t[0]||t[1])}),(function(t){return o.reject(t)})),o.promise.cancel=function(t){return null==t&&(t="canceled"),n.reject(t)},o.promise.notify=function(t){if(null==t&&(t="cancel safe"),o.notify(t),e.hasOwnProperty("notify"))return e.notify(t)},null!=e.promiseType&&(o.promise.promiseType=e.promiseType),o.promise},SniffedPromise:function(t,e){return{promise:t,promiseType:e}}}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropMap",(function(){return function(){function e(){this.removeAll=t(this.removeAll,this),this.slice=t(this.slice,this),this.push=t(this.push,this),this.keys=t(this.keys,this),this.values=t(this.values,this),this.remove=t(this.remove,this),this.put=t(this.put,this),this.stateChanged=t(this.stateChanged,this),this.get=t(this.get,this),this.length=0,this.dict={},this.didValsStateChange=!1,this.didKeysStateChange=!1,this.allVals=[],this.allKeys=[]}return e.prototype.get=function(t){return this.dict[t]},e.prototype.stateChanged=function(){return this.didValsStateChange=!0,this.didKeysStateChange=!0},e.prototype.put=function(t,e){return null==this.get(t)&&this.length++,this.stateChanged(),this.dict[t]=e},e.prototype.remove=function(t,e){var n;if(null==e&&(e=!1),!e||this.get(t))return n=this.dict[t],delete this.dict[t],this.length--,this.stateChanged(),n},e.prototype.valuesOrKeys=function(t){var e,i;return null==t&&(t="Keys"),this["did"+t+"StateChange"]?(i=[],e=[],n.each(this.dict,(function(t,n){return i.push(t),e.push(n)})),this.didKeysStateChange=!1,this.didValsStateChange=!1,this.allVals=i,this.allKeys=e,this["all"+t]):this["all"+t]},e.prototype.values=function(){return this.valuesOrKeys("Vals")},e.prototype.keys=function(){return this.valuesOrKeys()},e.prototype.push=function(t,e){return null==e&&(e="key"),this.put(t[e],t)},e.prototype.slice=function(){return this.keys().map((t=this,function(e){return t.remove(e)}));var t},e.prototype.removeAll=function(){return this.slice()},e.prototype.each=function(t){return n.each(this.dict,(function(e,n){return t(e)}))},e.prototype.map=function(t){return n.map(this.dict,(function(e,n){return t(e)}))},e}()}))}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropertyAction",["uiGmapLogger",function(t){return function(t){return this.setIfChange=function(e){return function(i,o){if(!n.isEqual(o,i))return t(e,i)}},this.sic=this.setIfChange,this}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapClustererMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapEventsHelper",function(n,i,o,r){return function(){function a(e,i,r,s){null==i&&(i={}),this.opt_options=null!=r?r:{},this.opt_events=s,this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.destroy=t(this.destroy,this),this.attachEvents=t(this.attachEvents,this),this.clear=t(this.clear,this),this.draw=t(this.draw,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=a.type,this.clusterer=new NgMapMarkerClusterer(e,i,this.opt_options),this.propMapGMarkers=new o,this.attachEvents(this.opt_events,"opt_events"),this.clusterer.setIgnoreHidden(!0),this.noDrawOnSingleAddRemoves=!0,n.info(this)}return a.type="ClustererMarkerManager",a.prototype.checkKey=function(t){if(null==t.key)return n.error("gMarker.key undefined and it is REQUIRED!!")},a.prototype.add=function(t){return this.checkKey(t),this.clusterer.addMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(t.key,t),this.checkSync()},a.prototype.update=function(t){return this.remove(t),this.add(t)},a.prototype.addMany=function(t){return t.forEach((e=this,function(t){return e.add(t)}));var e},a.prototype.remove=function(t){return this.checkKey(t),this.propMapGMarkers.get(t.key)&&(this.clusterer.removeMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(t.key)),this.checkSync()},a.prototype.removeMany=function(t){return t.forEach((e=this,function(t){return e.remove(t)}));var e},a.prototype.draw=function(){return this.clusterer.repaint()},a.prototype.clear=function(){return this.removeMany(this.getGMarkers()),this.clusterer.repaint()},a.prototype.attachEvents=function(t,i){var o,r;if(this.listeners=[],e.isDefined(t)&&null!=t&&e.isObject(t)){for(o in r=[],t)t[o],t.hasOwnProperty(o)&&e.isFunction(t[o])?(n.info(i+": Attaching event: "+o+" to clusterer"),r.push(this.listeners.push(google.maps.event.addListener(this.clusterer,o,t[o])))):r.push(void 0);return r}},a.prototype.clearEvents=function(){return r.removeEvents(this.listeners),this.listeners=[]},a.prototype.destroy=function(){return this.clearEvents(),this.clear()},a.prototype.fit=function(){return i.fit(this.getGMarkers(),this.clusterer.getMap())},a.prototype.getGMarkers=function(){return this.clusterer.getMarkers().values()},a.prototype.checkSync=function(){},a}()}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.managers").service("uiGmapGoogleMapObjectManager",[function(){var t,n;return t=[],n=[],{createMapInstance:function(i,o){var r;return r=null,0===t.length?(r=new google.maps.Map(i,o),n.push(r)):(r=t.pop(),e.element(i).append(r.getDiv()),r.setOptions(o),n.push(r)),r},recycleMapInstance:function(e){var i;if((i=n.indexOf(e))<0)throw new Error("Expected map instance to be a previously used instance");return n.splice(i,1),t.push(e)}}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(e,n,i){return function(){function o(n,r,a){this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.handleOptDraw=t(this.handleOptDraw,this),this.clear=t(this.clear,this),this.destroy=t(this.destroy,this),this.draw=t(this.draw,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=o.type,this.gMap=n,this.gMarkers=new i,this.$log=e,this.$log.info(this)}return o.type="MarkerManager",o.prototype.add=function(t,n){var i;if(null==n&&(n=!0),null==t.key)throw i="gMarker.key undefined and it is REQUIRED!!",e.error(i),i;if(!this.gMarkers.get(t.key))return this.handleOptDraw(t,n,!0),this.gMarkers.put(t.key,t)},o.prototype.update=function(t,e){return null==e&&(e=!0),this.remove(t,e),this.add(t,e)},o.prototype.addMany=function(t){return t.forEach((e=this,function(t){return e.add(t)}));var e},o.prototype.remove=function(t,e){if(null==e&&(e=!0),this.handleOptDraw(t,e,!1),this.gMarkers.get(t.key))return this.gMarkers.remove(t.key)},o.prototype.removeMany=function(t){return t.forEach((e=this,function(t){return e.remove(t)}));var e},o.prototype.draw=function(){var t,e;return t=[],this.gMarkers.each((e=this,function(n){if(!n.isDrawn)return n.doAdd?(n.setMap(e.gMap),n.isDrawn=!0):t.push(n)})),t.forEach(function(t){return function(e){return e.isDrawn=!1,t.remove(e,!0)}}(this))},o.prototype.destroy=function(){return this.clear()},o.prototype.clear=function(){return this.gMarkers.each((function(t){return t.setMap(null)})),delete this.gMarkers,this.gMarkers=new i},o.prototype.handleOptDraw=function(t,e,n){return!0===e?(n?t.setMap(this.gMap):t.setMap(null),t.isDrawn=!0):(t.isDrawn=!1,t.doAdd=n)},o.prototype.fit=function(){return n.fit(this.getGMarkers(),this.gMap)},o.prototype.getGMarkers=function(){return this.gMarkers.values()},o}()}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapSpiderfierMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapMarkerSpiderfier",function(i,o,r,a){return function(){function s(e,n,o,l,d){null==n&&(n={}),this.opt_options=null!=o?o:{},this.opt_events=l,this.scope=d,this.isSpiderfied=t(this.isSpiderfied,this),this.getGMarkers=t(this.getGMarkers,this),this.fit=t(this.fit,this),this.destroy=t(this.destroy,this),this.attachEvents=t(this.attachEvents,this),this.clear=t(this.clear,this),this.removeMany=t(this.removeMany,this),this.remove=t(this.remove,this),this.addMany=t(this.addMany,this),this.update=t(this.update,this),this.add=t(this.add,this),this.type=s.type,this.markerSpiderfier=new a(e,this.opt_options),this.propMapGMarkers=new r,this.attachEvents(this.opt_events,"opt_events"),this.noDrawOnSingleAddRemoves=!0,i.info(this)}return s.type="SpiderfierMarkerManager",s.prototype.checkKey=function(t){if(null==t.key)return i.error("gMarker.key undefined and it is REQUIRED!!")},s.prototype.add=function(t){return t.setMap(this.markerSpiderfier.map),this.checkKey(t),this.markerSpiderfier.addMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(t.key,t),this.checkSync()},s.prototype.update=function(t){return this.remove(t),this.add(t)},s.prototype.addMany=function(t){return t.forEach((e=this,function(t){return e.add(t)}));var e},s.prototype.remove=function(t){return this.checkKey(t),this.propMapGMarkers.get(t.key)&&(t.setMap(null),this.markerSpiderfier.removeMarker(t,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(t.key)),this.checkSync()},s.prototype.removeMany=function(t){return t.forEach((e=this,function(t){return e.remove(t)}));var e},s.prototype.draw=function(){},s.prototype.clear=function(){return this.removeMany(this.getGMarkers())},s.prototype.attachEvents=function(t,o){if(e.isDefined(t)&&null!=t&&e.isObject(t))return n.each(t,(r=this,function(n,a){if(t.hasOwnProperty(a)&&e.isFunction(t[a]))return i.info(o+": Attaching event: "+a+" to markerSpiderfier"),r.markerSpiderfier.addListener(a,(function(){return"spiderfy"===a||"unspiderfy"===a?r.scope.$evalAsync(t[a].apply(t,arguments)):r.scope.$evalAsync(t[a].apply(t,[arguments[0],a,arguments[0].model,arguments]))}))}));var r},s.prototype.clearEvents=function(t,n){var o;if(e.isDefined(t)&&null!=t&&e.isObject(t))for(o in t)t[o],t.hasOwnProperty(o)&&e.isFunction(t[o])&&(i.info(n+": Clearing event: "+o+" to markerSpiderfier"),this.markerSpiderfier.clearListeners(o))},s.prototype.destroy=function(){return this.clearEvents(this.opt_events,"opt_events"),this.clear()},s.prototype.fit=function(){return o.fit(this.getGMarkers(),this.markerSpiderfier.map)},s.prototype.getGMarkers=function(){return this.markerSpiderfier.getMarkers()},s.prototype.isSpiderfied=function(){return n.find(this.getGMarkers(),(function(t){return null!=(null!=t?t._omsData:void 0)}))},s.prototype.checkSync=function(){},s}()}])}.call(this),function(){e.module("uiGmapgoogle-maps").factory("uiGmapadd-events",["$timeout",function(t){var n;return n=function(e,n,i){return google.maps.event.addListener(e,n,(function(){return i.apply(this,arguments),t((function(){}),!0)}))},function(t,i,o){var r;return o?n(t,i,o):(r=[],e.forEach(i,(function(e,i){return r.push(n(t,i,e))})),function(){return e.forEach(r,(function(t){return google.maps.event.removeListener(t)})),r=null})}}])}.call(this),function(){e.module("uiGmapgoogle-maps").factory("uiGmaparray-sync",["uiGmapadd-events",function(t){return function(n,i,o,r){var a,s,l,d,u,c,p,h,f;return d=!1,h=i.$eval(o),i.static||(u={set_at:function(t){var e;if(!d&&(e=n.getAt(t)))return e.lng&&e.lat?(h[t].latitude=e.lat(),h[t].longitude=e.lng()):h[t]=e},insert_at:function(t){var e;if(!d&&(e=n.getAt(t)))return e.lng&&e.lat?h.splice(t,0,{latitude:e.lat(),longitude:e.lng()}):h.splice(t,0,e)},remove_at:function(t){if(!d)return h.splice(t,1)}},"Polygon"===h.type?a=h.coordinates[0]:"LineString"===h.type&&(a=h.coordinates),s={set_at:function(t){var e;if(!d&&(e=n.getAt(t))&&e.lng&&e.lat)return a[t][1]=e.lat(),a[t][0]=e.lng()},insert_at:function(t){var e;if(!d&&(e=n.getAt(t))&&e.lng&&e.lat)return a.splice(t,0,[e.lng(),e.lat()])},remove_at:function(t){if(!d)return a.splice(t,1)}},p=t(n,e.isUndefined(h.type)?u:s)),c=function(t){var e,i,o,a,s,l,u,c;if(d=!0,l=n,e=!1,t){for(i=0,u=l.getLength(),a=t.length,o=Math.min(u,a),s=void 0;i0&&(t.gObject=o(t.buildOpts(t.pathPoints,n))),t.gObject?(r(t.gObject.getPath(),t.scope,"path",(function(e){if(t.pathPoints=e,null!=a)return a()})),e.isDefined(t.scope.events)&&e.isObject(t.scope.events)&&(t.listeners=t.model?s.setEvents(t.gObject,t.scope,t.model):s.setEvents(t.gObject,t.scope,t.scope)),t.internalListeners=t.model?s.setEvents(t.gObject,{events:t.internalEvents},t.model):s.setEvents(t.gObject,{events:t.internalEvents},t.scope)):void 0}}(this),i(),this.scope.$watch("path",function(t){return function(e,o){if(!n.isEqual(e,o)||!t.gObject)return i()}}(this),!0),!this.scope.static&&e.isDefined(this.scope.editable)&&this.scope.$watch("editable",function(t){return function(e,n){var i;if(e!==n)return e=!t.isFalse(e),null!=(i=t.gObject)?i.setEditable(e):void 0}}(this),!0),e.isDefined(this.scope.draggable)&&this.scope.$watch("draggable",function(t){return function(e,n){var i;if(e!==n)return e=!t.isFalse(e),null!=(i=t.gObject)?i.setDraggable(e):void 0}}(this),!0),e.isDefined(this.scope.visible)&&this.scope.$watch("visible",function(t){return function(e,n){var i;return e!==n&&(e=!t.isFalse(e)),null!=(i=t.gObject)?i.setVisible(e):void 0}}(this),!0),e.isDefined(this.scope.geodesic)&&this.scope.$watch("geodesic",function(t){return function(e,n){var i;if(e!==n)return e=!t.isFalse(e),null!=(i=t.gObject)?i.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.stroke)&&e.isDefined(this.scope.stroke.weight)&&this.scope.$watch("stroke.weight",function(t){return function(e,n){var i;if(e!==n)return null!=(i=t.gObject)?i.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.stroke)&&e.isDefined(this.scope.stroke.color)&&this.scope.$watch("stroke.color",function(t){return function(e,n){var i;if(e!==n)return null!=(i=t.gObject)?i.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.stroke)&&e.isDefined(this.scope.stroke.opacity)&&this.scope.$watch("stroke.opacity",function(t){return function(e,n){var i;if(e!==n)return null!=(i=t.gObject)?i.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),e.isDefined(this.scope.icons)&&this.scope.$watch("icons",function(t){return function(e,n){var i;if(e!==n)return null!=(i=t.gObject)?i.setOptions(t.buildOpts(t.gObject.getPath())):void 0}}(this),!0),this.scope.$on("$destroy",function(t){return function(){return t.clean(),t.scope=null}}(this)),e.isDefined(this.scope.fill)&&e.isDefined(this.scope.fill.color)&&this.scope.$watch("fill.color",function(t){return function(e,n){if(e!==n)return t.gObject.setOptions(t.buildOpts(t.gObject.getPath()))}}(this)),e.isDefined(this.scope.fill)&&e.isDefined(this.scope.fill.opacity)&&this.scope.$watch("fill.opacity",function(t){return function(e,n){if(e!==n)return t.gObject.setOptions(t.buildOpts(t.gObject.getPath()))}}(this)),e.isDefined(this.scope.zIndex)&&this.scope.$watch("zIndex",function(t){return function(e,n){if(e!==n)return t.gObject.setOptions(t.buildOpts(t.gObject.getPath()))}}(this))}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(l,i),l.include(a),l.prototype.clean=function(){var t;return s.removeEvents(this.listeners),s.removeEvents(this.internalListeners),null!=(t=this.gObject)&&t.setMap(null),this.gObject=null},l}(i)}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapDrawFreeHandChildModel",["uiGmapLogger","$q",function(t,e){var i;return i=function(t,e,n){var i,o;o=new google.maps.Polyline({map:t,clickable:!1}),i=google.maps.event.addListener(t,"mousemove",(function(t){return o.getPath().push(t.latLng)})),google.maps.event.addListenerOnce(t,"mouseup",(function(r){var a;return google.maps.event.removeListener(i),a=o.getPath(),o.setMap(null),e.push(new google.maps.Polygon({map:t,path:a})),o=null,google.maps.event.clearListeners(t.getDiv(),"mousedown"),n()}))},function(o,r){var a,s,l;return this.map=o,l=this,a=function(){var e;return e={draggable:!1,disableDefaultUI:!0,scrollwheel:!1,disableDoubleClickZoom:!1},t.info("disabling map move"),l.map.setOptions(e)},s=function(t){return function(){var e,i;return e={draggable:!0,disableDefaultUI:!1,scrollwheel:!0,disableDoubleClickZoom:!0},null!=(i=t.deferred)&&i.resolve(),n.defer((function(){return t.map.setOptions(n.extend(e,r.options))}))}}(this),this.engage=function(n){return function(o){return n.polys=o,n.deferred=e.defer(),a(),t.info("DrawFreeHandChildModel is engaged (drawing)."),google.maps.event.addDomListener(n.map.getDiv(),"mousedown",(function(t){return i(n.map,n.polys,s)})),n.deferred.promise}}(this),this}}])}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapMarkerChildModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger","uiGmapEventsHelper","uiGmapPropertyAction","uiGmapMarkerOptions","uiGmapIMarker","uiGmapMarkerManager","uiGmapPromise",function(r,a,s,l,d,u,c,p,h){return function(r){var f;function g(t){var e,o,r,a,l,u,c,p;this.internalEvents=i(this.internalEvents,this),this.setLabelOptions=i(this.setLabelOptions,this),this.setOptions=i(this.setOptions,this),this.setIcon=i(this.setIcon,this),this.setCoords=i(this.setCoords,this),this.isNotValid=i(this.isNotValid,this),this.maybeSetScopeValue=i(this.maybeSetScopeValue,this),this.createMarker=i(this.createMarker,this),this.setMyScope=i(this.setMyScope,this),this.updateModel=i(this.updateModel,this),this.handleModelChanges=i(this.handleModelChanges,this),this.destroy=i(this.destroy,this),c=t.scope,this.model=t.model,this.keys=t.keys,this.gMap=t.gMap,this.defaults=null!=(o=t.defaults)?o:{},this.doClick=t.doClick,this.gManager=t.gManager,this.doDrawSelf=null==(r=t.doDrawSelf)||r,this.trackModel=null==(a=t.trackModel)||a,this.needRedraw=null!=(l=t.needRedraw)&&l,this.isScopeModel=null!=(u=t.isScopeModel)&&u,this.isScopeModel&&(this.clonedModel=n.clone(this.model,!0)),this.deferred=h.defer(),n.each(this.keys,(p=this,function(t,e){var i;if(null!=(i=p.keys[e])&&!n.isFunction(i)&&n.isString(i))return p[e+"Key"]=i})),this.idKey=this.idKeyKey||"id",null!=this.model[this.idKey]&&(this.id=this.model[this.idKey]),g.__super__.constructor.call(this,c),this.scope.getGMarker=function(t){return function(){return t.gObject}}(this),this.firstTime=!0,this.trackModel?(this.scope.model=this.model,this.scope.$watch("model",function(t){return function(e,n){if(e!==n)return t.handleModelChanges(e,n)}}(this),!0)):(e=new d(function(t){return function(e){if(n.isFunction(e)&&(e="all"),!t.firstTime)return t.setMyScope(e,c)}}(this),!1),n.each(this.keys,(function(t,n){return c.$watch(n,e.sic(n),!0)}))),this.scope.$on("$destroy",function(t){return function(){return f(t)}}(this)),this.createMarker(this.model),s.info(this)}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(g,r),g.include(a),g.include(l),g.include(u),f=function(t){if(null!=(null!=t?t.gObject:void 0)&&(t.removeEvents(t.externalListeners),t.removeEvents(t.internalListeners),null!=t?t.gObject:void 0))return t.removeFromManager&&t.gManager.remove(t.gObject),t.gObject.setMap(null),t.gObject=null},g.prototype.destroy=function(t){return null==t&&(t=!0),this.removeFromManager=t,this.scope.$destroy()},g.prototype.handleModelChanges=function(t,e){var i,o,r,a;if(i=this.getChanges(t,e,c.keys),!this.firstTime)return o=0,r=n.keys(i).length,n.each(i,(a=this,function(n,i){var s;return s=r===(o+=1),a.setMyScope(i,t,e,!1,!0,s),a.needRedraw=!0}))},g.prototype.updateModel=function(t){return this.isScopeModel&&(this.clonedModel=n.clone(t,!0)),this.setMyScope("all",t,this.model)},g.prototype.renderGMarker=function(e,n){var i,o,r;if(null==e&&(e=!0),i=this.getProp("coords",this.scope,this.model),null!=(null!=(r=this.gManager)?r.isSpiderfied:void 0)&&(o=this.gManager.isSpiderfied()),null!=i){if(!this.validateCoords(i))return void s.debug("MarkerChild does not have coords yet. They may be defined later.");if(null!=n&&n(),e&&this.gObject&&this.gManager.add(this.gObject),o)return this.gManager.markerSpiderfier.spiderListener(this.gObject,t.event)}else if(e&&this.gObject)return this.gManager.remove(this.gObject)},g.prototype.setMyScope=function(t,e,i,o,r){var a,s;switch(null==i&&(i=void 0),null==o&&(o=!1),null==r&&(r=!0),null==e?e=this.model:this.model=e,this.gObject||(this.setOptions(this.scope,r),a=!0),t){case"all":return n.each(this.keys,(s=this,function(t,n){return s.setMyScope(n,e,i,o,r)}));case"icon":return this.maybeSetScopeValue({gSetter:this.setIcon,doDraw:r});case"coords":return this.maybeSetScopeValue({gSetter:this.setCoords,doDraw:r});case"options":if(!a)return this.createMarker(e,i,o,r)}},g.prototype.createMarker=function(t,e,n,i){return null==e&&(e=void 0),null==n&&(n=!1),null==i&&(i=!0),this.maybeSetScopeValue({gSetter:this.setOptions,doDraw:i}),this.firstTime=!1},g.prototype.maybeSetScopeValue=function(t){var e,n,i;if(n=t.gSetter,e=null==(i=t.doDraw)||i,null!=n&&n(this.scope,e),this.doDrawSelf&&e)return this.gManager.draw()},g.prototype.isNotValid=function(t,e){var n;return null==e&&(e=!0),n=!!e&&void 0===this.gObject,!this.trackModel&&t.$id!==this.scope.$id||n},g.prototype.setCoords=function(t,e){var n;if(null==e&&(e=!0),!this.isNotValid(t)&&null!=this.gObject)return this.renderGMarker(e,(n=this,function(){var e,i,o;if(i=n.getProp("coords",t,n.model),e=n.getCoords(i),null==(o=n.gObject.getPosition())||null==e||e.lng()!==o.lng()||e.lat()!==o.lat())return n.gObject.setPosition(e),n.gObject.setVisible(n.validateCoords(i))}))},g.prototype.setIcon=function(t,e){var n;if(null==e&&(e=!0),!this.isNotValid(t)&&null!=this.gObject)return this.renderGMarker(e,(n=this,function(){var e,i;if(n.gObject.getIcon()!==(i=n.getProp("icon",t,n.model)))return n.gObject.setIcon(i),e=n.getProp("coords",t,n.model),n.gObject.setPosition(n.getCoords(e)),n.gObject.setVisible(n.validateCoords(e))}))},g.prototype.setOptions=function(t,e){var i;if(null==e&&(e=!0),!this.isNotValid(t,!1)){var o;if(this.renderGMarker(e,(o=this,function(){var e,i,r;if(i=o.getProp("coords",t,o.model),r=o.getProp("icon",t,o.model),e=o.getProp("options",t,o.model),o.opts=o.createOptions(i,r,e),o.isLabel(o.gObject)!==o.isLabel(o.opts)&&null!=o.gObject&&(o.gManager.remove(o.gObject),o.gObject=void 0),null!=o.gObject&&o.gObject.setOptions(o.setLabelOptions(o.opts)),o.gObject||(o.isLabel(o.opts)?o.gObject=new MarkerWithLabel(o.setLabelOptions(o.opts)):o.opts.content?(o.gObject=new RichMarker(o.opts),o.gObject.getIcon=o.gObject.getContent,o.gObject.setIcon=o.gObject.setContent):o.gObject=new google.maps.Marker(o.opts),n.extend(o.gObject,{model:o.model})),o.externalListeners&&o.removeEvents(o.externalListeners),o.internalListeners&&o.removeEvents(o.internalListeners),o.externalListeners=o.setEvents(o.gObject,o.scope,o.model,["dragend"]),o.internalListeners=o.setEvents(o.gObject,{events:o.internalEvents(),$evalAsync:function(){}},o.model),null!=o.id)return o.gObject.key=o.id})),this.gObject&&(this.gObject.getMap()||this.gManager.type!==p.type))this.deferred.resolve(this.gObject);else{if(!this.gObject)return this.deferred.reject("gObject is null");(null!=(i=this.gObject)?i.getMap():void 0)&&this.gManager.type===p.type||(s.debug("gObject has no map yet"),this.deferred.resolve(this.gObject))}return this.model[this.fitKey]?this.gManager.fit():void 0}},g.prototype.setLabelOptions=function(t){return t.labelAnchor&&(t.labelAnchor=this.getLabelPositionPoint(t.labelAnchor)),t},g.prototype.internalEvents=function(){return{dragend:(t=this,function(e,n,i,o){var r,a,s;return a=t.trackModel?t.scope.model:t.model,s=t.setCoordsFromEvent(t.modelOrKey(a,t.coordsKey),t.gObject.getPosition()),a=t.setVal(i,t.coordsKey,s),null!=(null!=(r=t.scope.events)?r.dragend:void 0)&&r.dragend(e,n,a,o),t.scope.$apply()}),click:function(t){return function(n,i,o,r){var a;if(a=t.getProp("click",t.scope,t.model),t.doClick&&e.isFunction(a))return t.scope.$evalAsync(a(n,i,t.model,r))}}(this)};var t},g}(r)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygonChildModel",["uiGmapBasePolyChildModel","uiGmapPolygonOptionsBuilder",function(e,n){return function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(n,e),n}(new e(n,(function(t){return new google.maps.Polygon(t)})))}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylineChildModel",["uiGmapBasePolyChildModel","uiGmapPolylineOptionsBuilder",function(e,n){return function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(n,e),n}(e(n,(function(t){return new google.maps.Polyline(t)})))}])}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}},o={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapWindowChildModel",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapLogger","$compile","$http","$templateCache","uiGmapChromeFixes","uiGmapEventsHelper",function(r,a,s,l,d,u,c,p){return function(r){function h(t){var e,o,r,a,l,d;this.updateModel=i(this.updateModel,this),this.destroy=i(this.destroy,this),this.remove=i(this.remove,this),this.getLatestPosition=i(this.getLatestPosition,this),this.hideWindow=i(this.hideWindow,this),this.showWindow=i(this.showWindow,this),this.handleClick=i(this.handleClick,this),this.watchOptions=i(this.watchOptions,this),this.watchCoords=i(this.watchCoords,this),this.createGWin=i(this.createGWin,this),this.watchElement=i(this.watchElement,this),this.watchAndDoShow=i(this.watchAndDoShow,this),this.doShow=i(this.doShow,this),this.model=null!=(o=t.model)?o:{},this.scope=t.scope,this.opts=t.opts,this.isIconVisibleOnClick=t.isIconVisibleOnClick,this.gMap=t.gMap,this.markerScope=t.markerScope,this.element=t.element,this.needToManualDestroy=null!=(r=t.needToManualDestroy)&&r,this.markerIsVisibleAfterWindowClose=null==(a=t.markerIsVisibleAfterWindowClose)||a,this.isScopeModel=null!=(l=t.isScopeModel)&&l,this.isScopeModel&&(this.clonedModel=n.clone(this.model,!0)),this.getGmarker=function(){var t,e;if(null!=(null!=(t=this.markerScope)?t.getGMarker:void 0))return null!=(e=this.markerScope)?e.getGMarker():void 0},this.listeners=[],this.createGWin(),null!=(e=this.getGmarker())&&e.setClickable(!0),this.watchElement(),this.watchOptions(),this.watchCoords(),this.watchAndDoShow(),this.scope.$on("$destroy",(d=this,function(){return d.destroy()})),s.info(this)}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(h,r),h.include(a),h.include(p),h.prototype.doShow=function(t){return!0===this.scope.show||t?this.showWindow():this.hideWindow()},h.prototype.watchAndDoShow=function(){return null!=this.model.show&&(this.scope.show=this.model.show),this.scope.$watch("show",this.doShow,!0),this.doShow()},h.prototype.watchElement=function(){return this.scope.$watch((t=this,function(){var e,n;if(t.element||t.html)return t.html!==t.element.html()&&t.gObject?(null!=(e=t.opts)&&(e.content=void 0),n=t.gObject.isOpen(),t.remove(),t.createGWin(n)):void 0}));var t},h.prototype.createGWin=function(e){var i,o,r,a,s,l;if(null==e&&(e=!1),r=this.getGmarker(),o={},null!=this.opts&&(this.scope.coords&&(this.opts.position=this.getCoords(this.scope.coords)),o=this.opts),this.element&&(this.html=n.isObject(this.element)?this.element.html():this.element),i=this.scope.options?this.scope.options:o,this.opts=this.createWindowOptions(r,this.markerScope||this.scope,this.html,i),null!=this.opts)return this.gObject||(this.opts.boxClass&&t.InfoBox&&"function"==typeof t.InfoBox?this.gObject=new t.InfoBox(this.opts):this.gObject=new google.maps.InfoWindow(this.opts),this.listeners.push(google.maps.event.addListener(this.gObject,"domready",(function(){return c.maybeRepaint(this.content)}))),this.listeners.push(google.maps.event.addListener(this.gObject,"closeclick",(l=this,function(){return r&&(r.setAnimation(l.oldMarkerAnimation),l.markerIsVisibleAfterWindowClose&&n.delay((function(){return r.setVisible(!1),r.setVisible(l.markerIsVisibleAfterWindowClose)}),250)),l.gObject.close(),l.model.show=!1,null!=l.scope.closeClick?l.scope.$evalAsync(l.scope.closeClick()):l.scope.$evalAsync()})))),this.gObject.setContent(this.opts.content),this.handleClick((null!=(a=this.scope)&&null!=(s=a.options)?s.forceClick:void 0)||e),this.doShow(this.gObject.isOpen())},h.prototype.watchCoords=function(){var t;return(null!=this.markerScope?this.markerScope:this.scope).$watch("coords",(t=this,function(e,n){var i;if(e!==n){if(null==e)t.hideWindow();else if(!t.validateCoords(e))return void s.error("WindowChildMarker cannot render marker as scope.coords as no position on marker: "+JSON.stringify(t.model));if(i=t.getCoords(e),t.doShow(),t.gObject.setPosition(i),t.opts)return t.opts.position=i}}),!0)},h.prototype.watchOptions=function(){return this.scope.$watch("options",(t=this,function(e,n){if(e!==n&&(t.opts=e,null!=t.gObject)){if(t.gObject.setOptions(t.opts),null!=t.opts.visible&&t.opts.visible)return t.showWindow();if(null!=t.opts.visible)return t.hideWindow()}}),!0);var t},h.prototype.handleClick=function(t){var e,n,i;if(null!=this.gObject)return n=this.getGmarker(),i=this,e=function(){if(null==i.gObject&&i.createGWin(),i.showWindow(),null!=n)return i.initialMarkerVisibility=n.getVisible(),i.oldMarkerAnimation=n.getAnimation(),n.setVisible(i.isIconVisibleOnClick)},t&&e(),n?this.listeners=this.listeners.concat(this.setEvents(n,{events:{click:e}},this.model)):void 0},h.prototype.showWindow=function(){var t,n,i,o;if(null!=this.gObject)return i=null,o=this,n=function(){var t,e,n;if(!o.gObject.isOpen()){if(e=o.getGmarker(),null!=o.gObject&&null!=o.gObject.getPosition&&(n=o.gObject.getPosition()),e&&(n=e.getPosition()),!n)return;if(o.gObject.open(o.gMap,e),t=o.gObject.isOpen(),o.model.show!==t)return o.model.show=t}},this.scope.templateUrl?d.get(this.scope.templateUrl,{cache:u}).then(function(t){return function(o){var r;return i=t.scope.$new(),e.isDefined(t.scope.templateParameter)&&(i.parameter=t.scope.templateParameter),r=l(o.data)(i),t.gObject.setContent(r[0]),n()}}(this)):this.scope.template?(i=this.scope.$new(),e.isDefined(this.scope.templateParameter)&&(i.parameter=this.scope.templateParameter),t=l(this.scope.template)(i),this.gObject.setContent(t[0]),n()):n(),this.scope.$on("destroy",(function(){return i.$destroy()}))},h.prototype.hideWindow=function(){if(null!=this.gObject&&this.gObject.isOpen())return this.gObject.close()},h.prototype.getLatestPosition=function(t){var e;return e=this.getGmarker(),null==this.gObject||null==e||t?t?this.gObject.setPosition(t):void 0:this.gObject.setPosition(e.getPosition())},h.prototype.remove=function(){return this.hideWindow(),this.removeEvents(this.listeners),this.listeners.length=0,delete this.gObject,delete this.opts},h.prototype.destroy=function(t){var e;if(null==t&&(t=!1),this.remove(),null!=this.scope&&!(null!=(e=this.scope)?e.$$destroyed:void 0)&&(this.needToManualDestroy||t))return this.scope.$destroy()},h.prototype.updateModel=function(t){return this.isScopeModel&&(this.clonedModel=n.clone(t,!0)),n.extend(this.model,this.clonedModel||t)},h}(r)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapBasePolysParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmap_async","uiGmapPromise","uiGmapFitHelper",function(o,r,a,s,l,d,u,c){return function(o,p,h){return function(a){function f(e,i,a,s,d){var u;this.element=i,this.attrs=a,this.gMap=s,this.defaults=d,this.maybeFit=t(this.maybeFit,this),this.createChild=t(this.createChild,this),this.pieceMeal=t(this.pieceMeal,this),this.createAllNew=t(this.createAllNew,this),this.watchIdKey=t(this.watchIdKey,this),this.createChildScopes=t(this.createChildScopes,this),this.watchDestroy=t(this.watchDestroy,this),this.onDestroy=t(this.onDestroy,this),this.rebuildAll=t(this.rebuildAll,this),this.doINeedToWipe=t(this.doINeedToWipe,this),this.watchModels=t(this.watchModels,this),f.__super__.constructor.call(this,e),this.interface=o,this.$log=r,this.plurals=new l,n.each(o.scopeKeys,(u=this,function(t){return u[t+"Key"]=void 0})),this.models=void 0,this.firstTime=!0,this.$log.info(this),this.createChildScopes()}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(f,a),f.include(s),f.prototype.watchModels=function(t){return t.$watch("models",(e=this,function(n,i){if(n!==i)return e.doINeedToWipe(n)||t.doRebuildAll?e.rebuildAll(t,!0,!0):e.createChildScopes(!1)}),!0);var e},f.prototype.doINeedToWipe=function(t){var e;return e=null==t||0===t.length,this.plurals.length>0&&e},f.prototype.rebuildAll=function(t,e,n){return this.onDestroy(n).then((i=this,function(){if(e)return i.createChildScopes()}));var i},f.prototype.onDestroy=function(){return f.__super__.onDestroy.call(this,this.scope),d.promiseLock(this,u.promiseTypes.delete,void 0,void 0,(t=this,function(){return d.each(t.plurals.values(),(function(t){return t.destroy(!0)}),d.chunkSizeFrom(t.scope.cleanchunk,!1)).then((function(){var e;return null!=(e=t.plurals)?e.removeAll():void 0}))}));var t},f.prototype.watchDestroy=function(t){return t.$on("$destroy",(e=this,function(){return e.rebuildAll(t,!1,!0)}));var e},f.prototype.createChildScopes=function(t){if(null==t&&(t=!0),e.isUndefined(this.scope.models))this.$log.error("No models to create "+h+"s from! I Need direct models!");else if(null!=this.gMap&&null!=this.scope.models)return this.watchIdKey(this.scope),t?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)},f.prototype.watchIdKey=function(t){return this.setIdKey(t),t.$watch("idKey",(e=this,function(n,i){if(n!==i&&null==n)return e.idKey=n,e.rebuildAll(t,!0,!0)}));var e},f.prototype.createAllNew=function(t,e){var n,i;if(null==e&&(e=!1),this.models=t.models,this.firstTime&&(this.watchModels(t),this.watchDestroy(t)),!this.didQueueInitPromise(this,t))return n=null,d.promiseLock(this,u.promiseTypes.create,"createAllNew",(function(t){return n=t}),(i=this,function(){return d.map(t.models,(function(t){var e;return e=i.createChild(t,i.gMap),n&&(r.debug("createNew should fall through safely"),e.isEnabled=!1),e.pathPoints.getArray()}),d.chunkSizeFrom(t.chunk)).then((function(t){return i.maybeFit(t),i.firstTime=!1}))}))},f.prototype.pieceMeal=function(t,e){var i,o,a;if(null==e&&(e=!0),!t.$$destroyed)return i=null,o=null,this.models=t.models,null!=t&&this.modelsLength()&&this.plurals.length?d.promiseLock(this,u.promiseTypes.update,"pieceMeal",(function(t){return i=t}),(a=this,function(){return u.promise((function(){return a.figureOutState(a.idKey,t,a.plurals,a.modelKeyComparison)})).then((function(e){return(o=e).updates.length&&d.each(o.updates,(function(t){return n.extend(t.child.scope,t.model),t.child.model=t.model})),d.each(o.removals,(function(t){if(null!=t)return t.destroy(),a.plurals.remove(t.model[a.idKey]),i}),d.chunkSizeFrom(t.chunk))})).then((function(){return d.each(o.adds,(function(t){return i&&r.debug("pieceMeal should fall through safely"),a.createChild(t,a.gMap),i}),d.chunkSizeFrom(t.chunk)).then((function(){return a.maybeFit()}))}))})):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0))},f.prototype.createChild=function(t,e){var n,i,r;if(i=this.scope.$new(!1),this.setChildScope(o.scopeKeys,i,t),i.$watch("model",(r=this,function(t,e){if(t!==e)return r.setChildScope(o.scopeKeys,i,t)}),!0),i.static=this.scope.static,n=new p({isScopeModel:!0,scope:i,attrs:this.attrs,gMap:e,defaults:this.defaults,model:t,gObjectChangeCb:function(t){return function(){return t.maybeFit()}}(this)}),null!=t[this.idKey])return this.plurals.put(t[this.idKey],n),n;this.$log.error(h+" model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key.")},f.prototype.maybeFit=function(t){if(null==t&&(t=this.plurals.map((function(t){return t.pathPoints}))),this.scope.fit)return t=n.flatten(t),c.fit(t,this.gMap)},f}(a)}}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapCircleParentModel",["uiGmapLogger","$timeout","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapCircleOptionsBuilder",function(i,o,r,a,s){var l;return l=function(t,e){return t.settingFromDirective=!0,e(),o((function(){return t.settingFromDirective=!1}))},function(o){function s(t,o,a,s,d){var u,c,p,h;this.attrs=a,this.gMap=s,this.DEFAULTS=d,this.scope=t,p=null,h=this,u=function(){if(p=null,null!=h.listeners)return h.removeEvents(h.listeners),h.listeners=void 0},c=new google.maps.Circle(this.buildOpts(r.getCoords(t.center),t.radius)),this.setMyOptions=function(e){return function(i,o){if(!t.settingFromDirective)return!n.isEqual(i,o)||i!==o||null!=i&&null!=o&&i.coordinates!==o.coordinates?c.setOptions(e.buildOpts(r.getCoords(t.center),t.radius)):void 0}}(this),this.props=this.props.concat([{prop:"center",isColl:!0},{prop:"fill",isColl:!0},"radius","zIndex"]),this.watchProps(),null!=this.scope.control&&(this.scope.control.getCircle=function(){return c}),u(),this.listeners=this.setEvents(c,t,t,["radius_changed"])||[],this.listeners.push(google.maps.event.addListener(c,"radius_changed",(function(){var i,o;if((i=c.getRadius())!==p)return p=i,o=function(){return l(t,(function(){var e,o;if(i!==t.radius&&(t.radius=i),(null!=(e=t.events)?e.radius_changed:void 0)&&n.isFunction(null!=(o=t.events)?o.radius_changed:void 0))return t.events.radius_changed(c,"radius_changed",t,arguments)}))},e.mock?o():t.$evalAsync((function(){return o()}))}))),this.listeners.push(google.maps.event.addListener(c,"center_changed",(function(){return t.$evalAsync((function(){return l(t,(function(){return e.isDefined(t.center.type)?(t.center.coordinates[1]=c.getCenter().lat(),t.center.coordinates[0]=c.getCenter().lng()):(t.center.latitude=c.getCenter().lat(),t.center.longitude=c.getCenter().lng())}))}))}))),t.$on("$destroy",(function(){return u(),c.setMap(null)})),i.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(s,o),s.include(r),s.include(a),s}(s)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapDrawingManagerParentModel",["uiGmapLogger","$timeout","uiGmapBaseObject","uiGmapEventsHelper",function(e,i,o,r){return function(e){function i(t,e,i,o){var r,a,s;this.scope=t,this.attrs=i,this.map=o,(r=new google.maps.drawing.DrawingManager(this.scope.options)).setMap(this.map),a=void 0,null!=this.scope.control&&(this.scope.control.getDrawingManager=function(){return r}),!this.scope.static&&this.scope.options&&this.scope.$watch("options",(function(t){return null!=r?r.setOptions(t):void 0}),!0),null!=this.scope.events&&(a=this.setEvents(r,this.scope,this.scope),this.scope.$watch("events",(s=this,function(t,e){if(!n.isEqual(t,e))return null!=a&&s.removeEvents(a),a=s.setEvents(r,s.scope,s.scope)}))),this.scope.$on("$destroy",function(t){return function(){return null!=a&&t.removeEvents(a),r.setMap(null),r=null}}(this))}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(i,e),i.include(r),i}(o)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIMarkerParentModel",["uiGmapModelKey","uiGmapLogger",function(o,r){return function(o){function a(n,i,o,s){if(this.scope=n,this.element=i,this.attrs=o,this.map=s,this.onWatch=t(this.onWatch,this),this.watch=t(this.watch,this),this.validateScope=t(this.validateScope,this),a.__super__.constructor.call(this,this.scope),this.$log=r,!this.validateScope(this.scope))throw new String("Unable to construct IMarkerParentModel due to invalid scope");var l;this.doClick=e.isDefined(this.attrs.click),null!=this.scope.options&&(this.DEFAULTS=this.scope.options),this.watch("coords",this.scope),this.watch("icon",this.scope),this.watch("options",this.scope),this.scope.$on("$destroy",(l=this,function(){return l.onDestroy(l.scope)}))}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(a,o),a.prototype.DEFAULTS={},a.prototype.validateScope=function(t){return null==t?(this.$log.error(this.constructor.name+": invalid scope used"),!1):null!=t.coords||(this.$log.error(this.constructor.name+": no valid coords attribute found"),!1)},a.prototype.watch=function(t,e,i){return null==i&&(i=!0),e.$watch(t,(o=this,function(i,r){if(!n.isEqual(i,r))return o.onWatch(t,e,i,r)}),i);var o},a.prototype.onWatch=function(t,e,n,i){},a}(o)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIWindowParentModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger",function(e,n,i){return function(e){function o(t,e,n,r,a,s,l,d){o.__super__.constructor.call(this,t),this.$log=i,this.$timeout=a,this.$compile=s,this.$http=l,this.$templateCache=d,this.DEFAULTS={},null!=t.options&&(this.DEFAULTS=t.options)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(o,e),o.include(n),o.prototype.getItem=function(t,e,n){return"models"===e?t[e][n]:t[e].get(n)},o}(e)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapLayerParentModel",["uiGmapBaseObject","uiGmapLogger","$timeout",function(n,i,o){var r;return r=function(n){function o(t,n,o,r,a,s){var l,d,u;this.scope=t,this.element=n,this.attrs=o,this.gMap=r,this.onLayerCreated=null!=a?a:void 0,this.$log=null!=s?s:i,this.createGoogleLayer=(l=this.createGoogleLayer,d=this,function(){return l.apply(d,arguments)}),null!=this.attrs.type?(this.createGoogleLayer(),this.doShow=!0,e.isDefined(this.attrs.show)&&(this.doShow=this.scope.show),this.doShow&&null!=this.gMap&&this.gObject.setMap(this.gMap),this.scope.$watch("show",(u=this,function(t,e){if(t!==e)return u.doShow=t,t?u.gObject.setMap(u.gMap):u.gObject.setMap(null)}),!0),this.scope.$watch("options",function(t){return function(e,n){if(e!==n&&t.doShow)return t.gObject.setOptions(e)}}(this),!0),this.scope.$on("$destroy",function(t){return function(){return t.gObject.setMap(null)}}(this))):this.$log.info("type attribute for the layer directive is mandatory. Layer creation aborted!!")}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(o,n),o.prototype.createGoogleLayer=function(){var t;if(null==this.attrs.options?this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type]:new google.maps[this.attrs.namespace][this.attrs.type]:this.gObject=void 0===this.attrs.namespace?new google.maps[this.attrs.type](this.scope.options):new google.maps[this.attrs.namespace][this.attrs.type](this.scope.options),null!=this.gObject&&this.doShow&&this.gObject.setMap(this.gMap),null!=this.gObject&&null!=this.onLayerCreated)return"function"==typeof(t=this.onLayerCreated(this.scope,this.gObject))?t(this.gObject):void 0},o}(n),r}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypeParentModel",["uiGmapBaseObject","uiGmapLogger",function(o,r){return function(o){function a(i,o,a,s,l,d,u){var c,p,h,f,g;this.scope=i,this.element=o,this.attrs=a,this.gMap=s,this.$log=null!=l?l:r,this.childModel=d,this.propMap=u,this.refreshShown=t(this.refreshShown,this),this.hideOverlay=t(this.hideOverlay,this),this.showOverlay=t(this.showOverlay,this),this.refreshMapType=t(this.refreshMapType,this),this.createMapType=t(this.createMapType,this),null!=this.scope.options?(this.id=this.gMap.overlayMapTypesCount=this.gMap.overlayMapTypesCount+1||0,this.doShow=!0,this.createMapType(),this.refreshShown(),this.doShow&&null!=this.gMap&&this.showOverlay(),g=this,p=function(){return g.childModel[g.attrs.show]},f=this.childModel?p:"show",this.scope.$watch(f,function(t){return function(e,n){if(e!==n)return t.doShow=e,e?t.showOverlay():t.hideOverlay()}}(this)),c=function(t){return function(){return t.childModel[t.attrs.options]}}(this),h=this.childModel?c:"options",this.scope.$watchCollection(h,function(t){return function(e,i){var o;if(!n.isEqual(e,i)&&(o=["tileSize","maxZoom","minZoom","name","alt"],n.some(o,(function(t){return!i||!e||!n.isEqual(e[t],i[t])}))))return t.refreshMapType()}}(this)),e.isDefined(this.attrs.refresh)&&this.scope.$watch("refresh",function(t){return function(e,i){if(!n.isEqual(e,i))return t.refreshMapType()}}(this),!0),this.scope.$on("$destroy",function(t){return function(){return t.hideOverlay(),t.mapType=null}}(this))):this.$log.info("options attribute for the map-type directive is mandatory. Map type creation aborted!!")}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(a,o),a.prototype.createMapType=function(){var t,n,i;if(null!=(i=this.childModel?this.attrs.options?this.childModel[this.attrs.options]:this.childModel:this.scope.options).getTile)this.mapType=i;else{if(null==i.getTileUrl)return void this.$log.info("options should provide either getTile or getTileUrl methods. Map type creation aborted!!");this.mapType=new google.maps.ImageMapType(i)}if((t=(n=this.attrs.id?this.childModel?this.attrs.id:"id":void 0)?this.childModel?this.childModel[n]:this.scope[n]:void 0)&&(this.gMap.mapTypes.set(t,this.mapType),e.isDefined(this.attrs.show)||(this.doShow=!1)),this.mapType.layerId=this.id,this.childModel&&e.isDefined(this.scope.index))return this.propMap.put(this.mapType.layerId,this.scope.index)},a.prototype.refreshMapType=function(){if(this.hideOverlay(),this.mapType=null,this.createMapType(),this.doShow&&null!=this.gMap)return this.showOverlay()},a.prototype.showOverlay=function(){var t,n;return e.isDefined(this.scope.index)?(t=!1,this.gMap.overlayMapTypes.getLength()?(this.gMap.overlayMapTypes.forEach((n=this,function(i,o){var r;t||((r=n.propMap.get(i.layerId.toString()))>n.scope.index||!e.isDefined(r))&&(t=!0,n.gMap.overlayMapTypes.insertAt(o,n.mapType))})),t?void 0:this.gMap.overlayMapTypes.push(this.mapType)):this.gMap.overlayMapTypes.push(this.mapType)):this.gMap.overlayMapTypes.push(this.mapType)},a.prototype.hideOverlay=function(){var t,e;return t=!1,this.gMap.overlayMapTypes.forEach((e=this,function(n,i){t||n.layerId!==e.id||(t=!0,e.gMap.overlayMapTypes.removeAt(i))}))},a.prototype.refreshShown=function(){return this.doShow=!e.isDefined(this.attrs.show)||(this.childModel?this.childModel[this.attrs.show]:this.scope.show)},a}(o)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypesParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapMapTypeParentModel","uiGmapPropMap",function(e,n,i,o){return function(e){function r(t,e,r,a,s){var l,d;this.scope=t,this.element=e,this.attrs=r,this.gMap=a,this.$log=null!=s?s:n,null!=this.attrs.mapTypes?(l=new o,this.scope.mapTypes.forEach((d=this,function(t,e){var n,o;o={options:d.scope.options,show:d.scope.show,refresh:d.scope.refresh},(n=d.scope.$new()).index=e,new i(n,null,o,d.gMap,d.$log,t,l)}))):this.$log.info("layers attribute for the map-types directive is mandatory. Map types creation aborted!!")}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(r,e),r}(e)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMarkersParentModel",["uiGmapIMarkerParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapMarkerChildModel","uiGmap_async","uiGmapClustererMarkerManager","uiGmapMarkerManager","$timeout","uiGmapIMarker","uiGmapPromise","uiGmapGmapUtil","uiGmapLogger","uiGmapSpiderfierMarkerManager",function(o,r,a,s,l,d,u,c,p,h,f,g,m){var b;return b=function(t,e){return e.plurals=new a,e.scope.plurals=e.plurals,e},function(o){function c(e,i,o,r){var s;this.maybeExecMappedEvent=t(this.maybeExecMappedEvent,this),this.onDestroy=t(this.onDestroy,this),this.newChildMarker=t(this.newChildMarker,this),this.pieceMeal=t(this.pieceMeal,this),this.rebuildAll=t(this.rebuildAll,this),this.createAllNew=t(this.createAllNew,this),this.bindToTypeEvents=t(this.bindToTypeEvents,this),this.createChildScopes=t(this.createChildScopes,this),this.validateScope=t(this.validateScope,this),this.onWatch=t(this.onWatch,this),c.__super__.constructor.call(this,e,i,o,r),this.interface=p,b(new a,this),this.scope.pluralsUpdate={updateCtr:0},this.$log.info(this),this.doRebuildAll=null!=this.scope.doRebuildAll&&this.scope.doRebuildAll,this.setIdKey(this.scope),this.scope.$watch("doRebuildAll",(s=this,function(t,e){if(t!==e)return s.doRebuildAll=t})),this.modelsLength()||(this.modelsRendered=!1),this.scope.$watch("models",function(t){return function(e,i){if(!n.isEqual(e,i)||!t.modelsRendered){if(0===e.length&&0===i.length)return;return t.modelsRendered=!0,t.onWatch("models",t.scope,e,i)}}}(this),!this.isTrue(o.modelsbyref)),this.watch("doCluster",this.scope),this.watch("type",this.scope),this.watch("clusterOptions",this.scope),this.watch("clusterEvents",this.scope),this.watch("typeOptions",this.scope),this.watch("typeEvents",this.scope),this.watch("fit",this.scope),this.watch("idKey",this.scope),this.gManager=void 0,this.createAllNew(this.scope)}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(c,o),c.include(f),c.include(r),c.prototype.onWatch=function(t,e,n,i){return"idKey"===t&&n!==i&&(this.idKey=n),this.doRebuildAll||"doCluster"===t||"type"===t?this.rebuildAll(e):this.pieceMeal(e)},c.prototype.validateScope=function(t){var n;return(n=e.isUndefined(t.models)||void 0===t.models)&&this.$log.error(this.constructor.name+": no valid models attribute found"),c.__super__.validateScope.call(this,t)||n},c.prototype.createChildScopes=function(t){if(null!=this.gMap&&null!=this.scope.models)return t?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)},c.prototype.bindToTypeEvents=function(t,i){var o,r,a;return null==i&&(i=["click","mouseout","mouseover"]),r=this,this.origTypeEvents?e.extend(t,this.origTypeEvents):(this.origTypeEvents={},n.each(i,(a=this,function(e){return a.origTypeEvents[e]=null!=t?t[e]:void 0}))),o={},n.each(i,(function(t){return o[t]=function(e){return r.maybeExecMappedEvent(e,t)}})),e.extend(t,o)},c.prototype.createAllNew=function(t){var e,n,i,o,r;if(null!=this.gManager&&(this.gManager instanceof m&&(e=this.gManager.isSpiderfied()),this.gManager.clear(),delete this.gManager),i=t.typeEvents||t.clusterEvents,o=t.typeOptions||t.clusterOptions,t.doCluster||"cluster"===t.type?(null!=i&&this.bindToTypeEvents(i),this.gManager=new d(this.map,void 0,o,i)):"spider"===t.type?(null!=i&&this.bindToTypeEvents(i,["spiderfy","unspiderfy"]),this.gManager=new m(this.map,void 0,o,i,this.scope),e&&this.gManager.spiderfy()):this.gManager=new u(this.map),!this.didQueueInitPromise(this,t))return n=null,l.promiseLock(this,h.promiseTypes.create,"createAllNew",(function(t){return n=t}),(r=this,function(){return l.each(t.models,(function(e){return r.newChildMarker(e,t),n}),l.chunkSizeFrom(t.chunk)).then((function(){return r.modelsRendered=!0,t.fit&&r.gManager.fit(),r.gManager.draw(),r.scope.pluralsUpdate.updateCtr+=1}),l.chunkSizeFrom(t.chunk))}))},c.prototype.rebuildAll=function(t){var e,n;if(t.doRebuild||void 0===t.doRebuild)return(null!=(e=this.scope.plurals)?e.length:void 0)?this.onDestroy(t).then((n=this,function(){return n.createAllNew(t)})):this.createAllNew(t)},c.prototype.pieceMeal=function(t){var e,n,i;if(!t.$$destroyed)return e=null,n=null,this.modelsLength()&&this.scope.plurals.length?l.promiseLock(this,h.promiseTypes.update,"pieceMeal",(function(t){return e=t}),(i=this,function(){return h.promise((function(){return i.figureOutState(i.idKey,t,i.scope.plurals,i.modelKeyComparison)})).then((function(o){return n=o,l.each(n.removals,(function(t){if(null!=t)return null!=t.destroy&&t.destroy(),i.scope.plurals.remove(t.id),e}),l.chunkSizeFrom(t.chunk))})).then((function(){return l.each(n.adds,(function(n){return i.newChildMarker(n,t),e}),l.chunkSizeFrom(t.chunk))})).then((function(){return l.each(n.updates,(function(t){return i.updateChild(t.child,t.model),e}),l.chunkSizeFrom(t.chunk))})).then((function(){return(n.adds.length>0||n.removals.length>0||n.updates.length>0)&&(t.plurals=i.scope.plurals,t.fit&&i.gManager.fit(),i.gManager.draw()),i.scope.pluralsUpdate.updateCtr+=1}))})):(this.inProgress=!1,this.rebuildAll(t))},c.prototype.newChildMarker=function(t,e){var n,i,o;if(!t)throw"model undefined";if(null!=t[this.idKey])return this.$log.info("child",n,"markers",this.scope.markerModels),(i=e.$new(!1)).events=e.events,o={},p.scopeKeys.forEach((function(t){return o[t]=e[t]})),n=new s({scope:i,model:t,keys:o,gMap:this.map,defaults:this.DEFAULTS,doClick:this.doClick,gManager:this.gManager,doDrawSelf:!1,isScopeModel:!0}),this.scope.plurals.put(t[this.idKey],n),n;this.$log.error("Marker model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key.")},c.prototype.onDestroy=function(t){return c.__super__.onDestroy.call(this,t),l.promiseLock(this,h.promiseTypes.delete,void 0,void 0,(e=this,function(){return l.each(e.scope.plurals.values(),(function(t){if(null!=t)return t.destroy(!1)}),l.chunkSizeFrom(e.scope.cleanchunk,!1)).then((function(){return null!=e.gManager&&e.gManager.destroy(),e.plurals.removeAll(),e.plurals!==e.scope.plurals&&console.error("plurals out of sync for MarkersParentModel"),e.scope.pluralsUpdate.updateCtr+=1}))}));var e},c.prototype.maybeExecMappedEvent=function(t,e){var i,o;if(!this.scope.$$destroyed)return o=this.scope.typeEvents||this.scope.clusterEvents,n.isFunction(null!=o?o[e]:void 0)&&(i=this.mapTypeToPlurals(t),this.origTypeEvents[e])?this.origTypeEvents[e](i.group,i.mapped):void 0},c.prototype.mapTypeToPlurals=function(t){var e,i,o;if(n.isArray(t)?e=t:n.isFunction(t.getMarkers)&&(e=t.getMarkers()),null!=e)return{cluster:t,mapped:(null!=(i=this.scope.plurals.values())?i.length:void 0)?e.map((o=this,function(t){return o.scope.plurals.get(t.key).model})):[],group:t};g.error("Unable to map event as we cannot find the array group to map")},c.prototype.getItem=function(t,e,n){return"models"===e?t[e][n]:t[e].get(n)},c}(o)}])}.call(this),function(){["Polygon","Polyline"].forEach((function(t){return e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmap"+t+"sParentModel",["uiGmapBasePolysParentModel","uiGmap"+t+"ChildModel","uiGmapI"+t,function(e,n,i){return e(i,n,t)}])}))}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapRectangleParentModel",["uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapRectangleOptionsBuilder",function(e,i,o,r){return function(r){function a(t,i,o,r,a){var s,l,d,u,c,p,h,f,g,m,b,v;this.scope=t,this.attrs=o,this.gMap=r,this.DEFAULTS=a,s=void 0,u=!1,g=[],f=void 0,v=this,c=function(){if(v.isTrue(v.attrs.fit))return v.fitMapBounds(v.gMap,s)},d=function(t){return function(){var n,i,o;return null!=t.scope.bounds&&null!=(null!=(n=t.scope.bounds)?n.sw:void 0)&&null!=(null!=(i=t.scope.bounds)?i.ne:void 0)&&t.validateBoundPoints(t.scope.bounds)?(s=t.convertBoundPoints(t.scope.bounds),e.info("new new bounds created: "+JSON.stringify(s))):null!=t.scope.bounds.getNorthEast&&null!=t.scope.bounds.getSouthWest?s=t.scope.bounds:null!=t.scope.bounds?e.error("Invalid bounds for newValue: "+JSON.stringify(null!=(o=t.scope)?o.bounds:void 0)):void 0}}(this),d(),p=new google.maps.Rectangle(this.buildOpts(s)),e.info("gObject (rectangle) created: "+p),m=!1,b=function(t){return function(){var e,n,i;if(e=p.getBounds(),n=e.getNorthEast(),i=e.getSouthWest(),!m)return t.scope.$evalAsync((function(t){if(null!=t.bounds&&null!=t.bounds.sw&&null!=t.bounds.ne&&(t.bounds.ne={latitude:n.lat(),longitude:n.lng()},t.bounds.sw={latitude:i.lat(),longitude:i.lng()}),null!=t.bounds.getNorthEast&&null!=t.bounds.getSouthWest)return t.bounds=e}))}}(this),h=function(t){return function(){return c(),t.removeEvents(g),g.push(google.maps.event.addListener(p,"dragstart",(function(){return u=!0}))),g.push(google.maps.event.addListener(p,"dragend",(function(){return u=!1,b()}))),g.push(google.maps.event.addListener(p,"bounds_changed",(function(){if(!u)return b()})))}}(this),l=function(t){return function(){return t.removeEvents(g),null!=f&&t.removeEvents(f),p.setMap(null)}}(this),null!=s&&h(),this.scope.$watch("bounds",(function(t,e){var i;if(!(n.isEqual(t,e)&&null!=s||u)){if(m=!0,null!=t)return null==s?i=!0:c(),d(),p.setBounds(s),m=!1,i&&null!=s?h():void 0;l()}}),!0),this.setMyOptions=function(t){return function(e,i){if(!n.isEqual(e,i)&&null!=s&&null!=e)return p.setOptions(t.buildOpts(s))}}(this),this.props.push("bounds"),this.watchProps(this.props),null!=this.attrs.events&&(f=this.setEvents(p,this.scope,this.scope),this.scope.$watch("events",function(t){return function(e,i){if(!n.isEqual(e,i))return null!=f&&t.removeEvents(f),f=t.setEvents(p,t.scope,t.scope)}}(this))),this.scope.$on("$destroy",(function(){return l()})),e.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(a,r),a.include(i),a.include(o),a}(r)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapSearchBoxParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapEventsHelper",function(i,o,r){return function(i){function a(n,i,r,a,s,l,d){var u;this.scope=n,this.element=i,this.attrs=r,this.gMap=a,this.ctrlPosition=s,this.template=l,this.$log=null!=d?d:o,this.setVisibility=t(this.setVisibility,this),this.getBounds=t(this.getBounds,this),this.setBounds=t(this.setBounds,this),this.createSearchBox=t(this.createSearchBox,this),this.addToParentDiv=t(this.addToParentDiv,this),this.addAsMapControl=t(this.addAsMapControl,this),this.init=t(this.init,this),null!=this.attrs.template?(e.isUndefined(this.scope.options)&&(this.scope.options={},this.scope.options.visible=!0),e.isUndefined(this.scope.options.visible)&&(this.scope.options.visible=!0),e.isUndefined(this.scope.options.autocomplete)&&(this.scope.options.autocomplete=!1),this.visible=this.scope.options.visible,this.autocomplete=this.scope.options.autocomplete,(u=e.element("
")).append(this.template),this.input=u.find("input")[0],this.init()):this.$log.error("template attribute for the search-box directive is mandatory. Places Search Box creation aborted!!")}return function(t,e){for(var i in e)n.call(e,i)&&(t[i]=e[i]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(a,i),a.include(r),a.prototype.init=function(){var t;return this.createSearchBox(),this.scope.$watch("options",(t=this,function(n,i){if(e.isObject(n)&&(null!=n.bounds&&t.setBounds(n.bounds),null!=n.visible&&t.visible!==n.visible))return t.setVisibility(n.visible)}),!0),null!=this.attrs.parentdiv?this.addToParentDiv():this.addAsMapControl(),this.visible||this.setVisibility(this.visible),this.autocomplete?this.listener=google.maps.event.addListener(this.gObject,"place_changed",function(t){return function(){return t.places=t.gObject.getPlace()}}(this)):this.listener=google.maps.event.addListener(this.gObject,"places_changed",function(t){return function(){return t.places=t.gObject.getPlaces()}}(this)),this.listeners=this.setEvents(this.gObject,this.scope,this.scope),this.$log.info(this),this.scope.$on("$stateChangeSuccess",function(t){return function(){if(null!=t.attrs.parentdiv)return t.addToParentDiv()}}(this)),this.scope.$on("$destroy",function(t){return function(){return t.gObject=null}}(this))},a.prototype.addAsMapControl=function(){return this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input)},a.prototype.addToParentDiv=function(){var t;if(this.parentDiv=e.element(document.getElementById(this.scope.parentdiv)),null!=(t=this.parentDiv)?t.length:void 0)return this.parentDiv.append(this.input)},a.prototype.createSearchBox=function(){return this.autocomplete?this.gObject=new google.maps.places.Autocomplete(this.input,this.scope.options):this.gObject=new google.maps.places.SearchBox(this.input,this.scope.options)},a.prototype.setBounds=function(t){if(e.isUndefined(t.isEmpty))this.$log.error("Error: SearchBoxParentModel setBounds. Bounds not an instance of LatLngBounds.");else if(!1===t.isEmpty()&&null!=this.gObject)return this.gObject.setBounds(t)},a.prototype.getBounds=function(){return this.gObject.getBounds()},a.prototype.setVisibility=function(t){return null!=this.attrs.parentdiv?!1===t?this.parentDiv.addClass("ng-hide"):this.parentDiv.removeClass("ng-hide"):!1===t?this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].clear():this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input),this.visible=t},a}(i)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapWindowsParentModel",["uiGmapIWindowParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapWindowChildModel","uiGmapLinked","uiGmap_async","uiGmapLogger","$timeout","$compile","$http","$templateCache","$interpolate","uiGmapPromise","uiGmapIWindow","uiGmapGmapUtil",function(o,r,a,s,l,d,u,c,p,h,f,g,m,b,v){return function(o){function $(e,i,o,r,s,d){var u;this.gMap=s,this.markersScope=d,this.modelKeyComparison=t(this.modelKeyComparison,this),this.interpolateContent=t(this.interpolateContent,this),this.setChildScope=t(this.setChildScope,this),this.createWindow=t(this.createWindow,this),this.setContentKeys=t(this.setContentKeys,this),this.pieceMeal=t(this.pieceMeal,this),this.createAllNew=t(this.createAllNew,this),this.watchIdKey=t(this.watchIdKey,this),this.createChildScopes=t(this.createChildScopes,this),this.watchOurScope=t(this.watchOurScope,this),this.watchDestroy=t(this.watchDestroy,this),this.onDestroy=t(this.onDestroy,this),this.rebuildAll=t(this.rebuildAll,this),this.doINeedToWipe=t(this.doINeedToWipe,this),this.watchModels=t(this.watchModels,this),this.go=t(this.go,this),$.__super__.constructor.call(this,e,i,o,r,c,p,h,f),this.interface=b,this.plurals=new a,n.each(b.scopeKeys,(u=this,function(t){return u[t+"Key"]=void 0})),this.linked=new l(e,i,o,r),this.contentKeys=void 0,this.isIconVisibleOnClick=void 0,this.firstTime=!0,this.firstWatchModels=!0,this.$log.info(self),this.parentScope=void 0,this.go(e)}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}($,o),$.include(r),$.prototype.go=function(t){var e;return this.watchOurScope(t),this.doRebuildAll=null!=this.scope.doRebuildAll&&this.scope.doRebuildAll,t.$watch("doRebuildAll",(e=this,function(t,n){if(t!==n)return e.doRebuildAll=t})),this.createChildScopes()},$.prototype.watchModels=function(t){var e,i;return e=null!=this.markersScope?"pluralsUpdate":"models",t.$watch(e,(i=this,function(e,o){var r;if(!n.isEqual(e,o)||i.firstWatchModels)return i.firstWatchModels=!1,i.doRebuildAll||i.doINeedToWipe(t.models)?i.rebuildAll(t,!0,!0):(r=0===i.plurals.length,null!=i.existingPieces?n.last(i.existingPieces._content).then((function(){return i.createChildScopes(r)})):i.createChildScopes(r))}),!0)},$.prototype.doINeedToWipe=function(t){var e;return e=null==t||0===t.length,this.plurals.length>0&&e},$.prototype.rebuildAll=function(t,e,n){return this.onDestroy(n).then((i=this,function(){if(e)return i.createChildScopes()}));var i},$.prototype.onDestroy=function(t){return $.__super__.onDestroy.call(this,this.scope),d.promiseLock(this,m.promiseTypes.delete,void 0,void 0,(e=this,function(){return d.each(e.plurals.values(),(function(t){return t.destroy(!0)}),d.chunkSizeFrom(e.scope.cleanchunk,!1)).then((function(){var t;return null!=(t=e.plurals)?t.removeAll():void 0}))}));var e},$.prototype.watchDestroy=function(t){return t.$on("$destroy",(e=this,function(){return e.firstWatchModels=!0,e.firstTime=!0,e.rebuildAll(t,!1,!0)}));var e},$.prototype.watchOurScope=function(t){return n.each(b.scopeKeys,(e=this,function(n){return e[n+"Key"]="function"==typeof t[n]?t[n]():t[n]}));var e},$.prototype.createChildScopes=function(t){var n,i;if(null==t&&(t=!0),this.isIconVisibleOnClick=!0,e.isDefined(this.linked.attrs.isiconvisibleonclick)&&(this.isIconVisibleOnClick=this.linked.scope.isIconVisibleOnClick),!e.isUndefined(this.linked.scope.models)||void 0!==this.markersScope&&void 0!==(null!=(n=this.markersScope)?n.plurals:void 0)&&void 0!==(null!=(i=this.markersScope)?i.models:void 0))return null!=this.gMap?null!=this.linked.scope.models?(this.watchIdKey(this.linked.scope),t?this.createAllNew(this.linked.scope,!1):this.pieceMeal(this.linked.scope,!1)):(this.parentScope=this.markersScope,this.watchIdKey(this.parentScope),t?this.createAllNew(this.markersScope,!0,"plurals",!1):this.pieceMeal(this.markersScope,!0,"plurals",!1)):void 0;this.$log.error("No models to create windows from! Need direct models or models derived from markers!")},$.prototype.watchIdKey=function(t){return this.setIdKey(t),t.$watch("idKey",(e=this,function(n,i){if(n!==i&&null==n)return e.idKey=n,e.rebuildAll(t,!0,!0)}));var e},$.prototype.createAllNew=function(t,e,n,i){var o,r;if(null==n&&(n="models"),null==i&&(i=!1),this.firstTime&&(this.watchModels(t),this.watchDestroy(t)),this.setContentKeys(t.models),!this.didQueueInitPromise(this,t))return o=null,d.promiseLock(this,m.promiseTypes.create,"createAllNew",(function(t){return o=t}),(r=this,function(){return d.each(t.models,(function(i){var a,s;return a=e&&null!=(s=r.getItem(t,n,i[r.idKey]))?s.gObject:void 0,o||(!a&&r.markersScope&&u.error("Unable to get gMarker from markersScope!"),r.createWindow(i,a,r.gMap)),o}),d.chunkSizeFrom(t.chunk)).then((function(){return r.firstTime=!1}))}))},$.prototype.pieceMeal=function(t,e,n,i){var o,r,a;if(null==n&&(n="models"),null==i&&(i=!0),!t.$$destroyed)return o=null,r=null,null!=t&&this.modelsLength()&&this.plurals.length?d.promiseLock(this,m.promiseTypes.update,"pieceMeal",(function(t){return o=t}),(a=this,function(){return m.promise((function(){return a.figureOutState(a.idKey,t,a.plurals,a.modelKeyComparison)})).then((function(e){return r=e,d.each(r.removals,(function(t){if(null!=t)return a.plurals.remove(t.id),null!=t.destroy&&t.destroy(!0),o}),d.chunkSizeFrom(t.chunk))})).then((function(){return d.each(r.adds,(function(e){var i,r;if(!(i=null!=(r=a.getItem(t,n,e[a.idKey]))?r.gObject:void 0))throw"Gmarker undefined";return a.createWindow(e,i,a.gMap),o}))})).then((function(){return d.each(r.updates,(function(t){return a.updateChild(t.child,t.model),o}),d.chunkSizeFrom(t.chunk))}))})):(u.debug("pieceMeal: rebuildAll"),this.rebuildAll(this.scope,!0,!0))},$.prototype.setContentKeys=function(t){if(this.modelsLength(t))return this.contentKeys=Object.keys(t[0])},$.prototype.createWindow=function(t,e,n){var i,o,r,a,l,d,u;if(o=this.linked.scope.$new(!1),this.setChildScope(o,t),o.$watch("model",(u=this,function(t,e){if(t!==e)return u.setChildScope(o,t)}),!0),r={html:function(e){return function(){return e.interpolateContent(e.linked.element.html(),t)}}(this)},this.DEFAULTS=this.scopeOrModelVal(this.optionsKey,this.scope,t)||{},a=this.createWindowOptions(e,o,r.html(),this.DEFAULTS),i=new s({model:t,scope:o,opts:a,isIconVisibleOnClick:this.isIconVisibleOnClick,gMap:n,markerScope:null!=(l=this.markersScope)&&null!=(d=l.plurals.get(t[this.idKey]))?d.scope:void 0,element:r,needToManualDestroy:!1,markerIsVisibleAfterWindowClose:!0,isScopeModel:!0}),null!=t[this.idKey])return this.plurals.put(t[this.idKey],i),i;this.$log.error("Window model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key.")},$.prototype.setChildScope=function(t,e){var i;return n.each(b.scopeKeys,(i=this,function(n){var o,r;if((r="self"===i[o=n+"Key"]?e:e[i[o]])!==t[n])return t[n]=r})),t.model=e},$.prototype.interpolateContent=function(t,e){var n,i,o,r,a,s;if(void 0!==this.contentKeys&&0!==this.contentKeys.length){for(n=g(t),o={},i=0,a=(s=this.contentKeys).length;i"),f=function(t,e,n){return n&&(e[0].index=n),t.controls[google.maps.ControlPosition[h]].push(e[0])},l?c((function(t){return u.append(t),f(n,u.children(),d)})):i.get(t.template,{cache:o}).then((function(n){var i,o,l;return i=n.data,l=t.$new(),u.append(i),e.isDefined(t.controller)&&(o=a(t.controller,{$scope:l}),u.children().data("$ngControllerController",o)),s=r(u.children())(l)})).catch((function(t){return p.$log.error("mapControl: template could not be found")})).then((function(){return f(n,s,d)}))}));p.$log.error("mapControl: invalid position property")}));var p},d}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapDragZoom",["uiGmapCtrlHandle","uiGmapPropertyAction",function(t,e){return{restrict:"EMA",transclude:!0,template:'',require:"^uiGmapGoogleMap",scope:{keyboardkey:"=",options:"=",spec:"="},controller:["$scope","$element",function(e,i){return e.ctrlType="uiGmapDragZoom",n.extend(this,t.handle(e,i))}],link:function(n,i,o,r){return t.mapPromise(n,r).then((function(t){var i,o,r;return i=function(e){return t.enableKeyDragZoom(e)},o=new e((function(t,e){return e?i({key:e}):i()})),r=new e((function(t,e){if(e)return i(e)})),n.$watch("keyboardkey",o.sic("keyboardkey")),o.sic(n.keyboardkey),n.$watch("options",r.sic("options")),r.sic(n.options)}))}}}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapDrawingManager",["uiGmapIDrawingManager","uiGmapDrawingManagerParentModel",function(t,e){return n.extend(t,{link:function(t,n,i,o){return o.getScope().deferred.promise.then((function(o){return new e(t,n,i,o)}))}})}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapApiFreeDrawPolygons",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapDrawFreeHandChildModel","uiGmapLodash",function(e,o,r,a,s){return function(o){function l(){return this.link=t(this.link,this),l.__super__.constructor.apply(this,arguments)}return function(t,e){for(var n in e)i.call(e,n)&&(t[n]=e[n]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(l,o),l.include(r),l.prototype.restrict="EMA",l.prototype.replace=!0,l.prototype.require="^uiGmapGoogleMap",l.prototype.scope={polygons:"=",draw:"="},l.prototype.link=function(t,i,o,r){return this.mapPromise(t,r).then((function(i){var o,l;return t.polygons?n.isArray(t.polygons)?(o=new a(i,r.getScope()),l=void 0,t.draw=function(){return"function"==typeof l&&l(),o.engage(t.polygons).then((function(){var e;return e=!0,l=t.$watchCollection("polygons",(function(t,n){if(!e&&t!==n)return s.differenceObjects(n,t).forEach((function(t){return t.setMap(null)}));e=!1}))}))}):e.error("Free Draw Polygons must be of type Array!"):e.error("No polygons to bind to!")}))},l}(o)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapICircle",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{center:"=center",radius:"=radius",stroke:"=stroke",fill:"=fill",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=icons",visible:"=",events:"=",control:"=",zIndex:"=zindex"}}}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIControl",["uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,n,i){return function(e){function o(){this.restrict="EA",this.replace=!0,this.require="^uiGmapGoogleMap",this.scope={template:"@template",position:"@position",controller:"@controller",index:"@index"},this.$log=n}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(o,e),o.extend(i),o.prototype.link=function(t,e,n,i){throw new Error("Not implemented!!")},o}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapIDrawingManager",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{static:"@",control:"=",options:"=",events:"="}}}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIMarker",["uiGmapBaseObject","uiGmapCtrlHandle",function(e,i){return function(e){function o(){this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.replace=!0,this.scope=n.extend(this.scope||{},o.scope)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(o,e),o.scope={coords:"=coords",icon:"=icon",click:"&click",options:"=options",events:"=events",fit:"=fit",idKey:"=idkey",control:"=control"},o.scopeKeys=n.keys(o.scope),o.keys=o.scopeKeys,o.extend(i),o}(e)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolygon",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,i,o,r){return function(i){function a(){}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(a,i),a.scope={path:"=path",stroke:"=stroke",clickable:"=",draggable:"=",editable:"=",geodesic:"=",fill:"=",icons:"=icons",visible:"=",static:"=",events:"=",zIndex:"=zindex",fit:"=",control:"=control"},a.scopeKeys=n.keys(a.scope),a.include(e),a.extend(r),a.prototype.restrict="EMA",a.prototype.replace=!0,a.prototype.require="^uiGmapGoogleMap",a.prototype.scope=a.scope,a.prototype.DEFAULTS={},a.prototype.$log=o,a}(i)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolyline",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(e,i,o,r){return function(i){function a(){}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(a,i),a.scope={path:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=",visible:"=",static:"=",fit:"=",events:"=",zIndex:"=zindex"},a.scopeKeys=n.keys(a.scope),a.include(e),a.extend(r),a.prototype.restrict="EMA",a.prototype.replace=!0,a.prototype.require="^uiGmapGoogleMap",a.prototype.scope=a.scope,a.prototype.DEFAULTS={},a.prototype.$log=o,a}(i)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapIRectangle",[function(){return{restrict:"EMA",require:"^uiGmapGoogleMap",replace:!0,scope:{bounds:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",fill:"=",visible:"=",events:"="}}}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIWindow",["uiGmapBaseObject","uiGmapChildEvents","uiGmapCtrlHandle",function(e,i,o){return function(e){function r(){this.restrict="EMA",this.template=void 0,this.transclude=!0,this.priority=-100,this.require="^uiGmapGoogleMap",this.replace=!0,this.scope=n.extend(this.scope||{},r.scope)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(r,e),r.scope={coords:"=coords",template:"=template",templateUrl:"=templateurl",templateParameter:"=templateparameter",isIconVisibleOnClick:"=isiconvisibleonclick",closeClick:"&closeclick",options:"=options",control:"=control",show:"=show"},r.scopeKeys=n.keys(r.scope),r.include(i),r.extend(o),r}(e)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMap",["$timeout","$q","$log","uiGmapGmapUtil","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapIsReady","uiGmapuuid","uiGmapExtendGWin","uiGmapExtendMarkerClusterer","uiGmapGoogleMapsUtilV3","uiGmapGoogleMapApi","uiGmapEventsHelper","uiGmapGoogleMapObjectManager",function(i,o,r,a,s,l,d,u,c,p,h,f,g,m){var b,v;return b=void 0,v=[h,c,p],function(o){function s(){var t,e,i;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),i=function(t){var e;return t.$on("$destroy",(function(){return d.decrement()})),e=l.handle(t),t.ctrlType="Map",t.deferred.promise.then((function(){return v.forEach((function(t){return t.init()}))})),e.getMap=function(){return t.map},n.extend(this,e)},this.controller=["$scope",i]}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(s,o),s.include(a),s.prototype.restrict="EMA",s.prototype.transclude=!0,s.prototype.replace=!1,s.prototype.template='
\n
',s.prototype.scope={center:"=",zoom:"=",dragging:"=",control:"=",options:"=",events:"=",eventOpts:"=",styles:"=",bounds:"=",update:"="},s.prototype.link=function(t,o,a){var s,l;return s=[],t.$on("$destroy",(function(){if(g.removeEvents(s),"true"===a.recycleMapInstance&&t.map)return m.recycleMapInstance(t.map),t.map=null})),t.idleAndZoomChanged=!1,f.then((l=this,function(c){var p,h,f,v,$,y,x,w,k,_,C,M,S,T,D,O,E;if(b={mapTypeId:c.MapTypeId.ROADMAP},T=d.spawn(),M=function(){return T.deferred.resolve({instance:T.instance,map:p})},e.isDefined(t.center)||e.isDefined(t.bounds)){if(e.isDefined(t.center)||(t.center=new google.maps.LatLngBounds(l.getCoords(t.bounds.southwest),l.getCoords(t.bounds.northeast)).getCenter()),e.isDefined(t.zoom)||(t.zoom=10),($=e.element(o)).addClass("angular-google-map"),_={options:{}},a.options&&(_.options=t.options),a.styles&&(_.styles=t.styles),a.type&&(D=a.type.toUpperCase(),google.maps.MapTypeId.hasOwnProperty(D)?_.mapTypeId=google.maps.MapTypeId[a.type.toUpperCase()]:r.error("angular-google-maps: invalid map type '"+a.type+"'")),w=e.extend({},b,_,{center:l.getCoords(t.center),zoom:t.zoom,bounds:t.bounds}),(p="true"===a.recycleMapInstance?m.createMapInstance($.find("div")[1],w):new google.maps.Map($.find("div")[1],w)).uiGmap_id=u.generate(),v=!1,s.push(google.maps.event.addListenerOnce(p,"idle",(function(){return t.deferred.resolve(p),M()}))),f=a.events&&null!=(null!=(C=t.events)?C.blacklist:void 0)?t.events.blacklist:[],n.isString(f)&&(f=[f]),k=function(e,i,o){if(!n.includes(f,e))return o&&o(),s.push(google.maps.event.addListener(p,e,(function(){var e;if(!(null!=(e=t.update)?e.lazy:void 0))return i()})))},n.includes(f,"all")||(k("dragstart",(function(){return v=!0,t.$evalAsync((function(t){if(null!=t.dragging)return t.dragging=v}))})),k("dragend",(function(){return v=!1,t.$evalAsync((function(t){if(null!=t.dragging)return t.dragging=v}))})),O=function(i,o){var r,a;if(null==i&&(i=p.center),null==o&&(o=t),!n.includes(f,"center"))if(r=i.lat(),a=i.lng(),e.isDefined(o.center.type)){if(o.center.coordinates[1]!==r&&(o.center.coordinates[1]=r),o.center.coordinates[0]!==a)return o.center.coordinates[0]=a}else if(o.center.latitude!==r&&(o.center.latitude=r),o.center.longitude!==a)return o.center.longitude=a},S=!1,k("idle",(function(){var e,i,o;return e=p.getBounds(),i=e.getNorthEast(),o=e.getSouthWest(),S=!0,t.$evalAsync((function(e){return O(),n.isUndefined(e.bounds)||n.includes(f,"bounds")||(e.bounds.northeast={latitude:i.lat(),longitude:i.lng()},e.bounds.southwest={latitude:o.lat(),longitude:o.lng()}),n.includes(f,"zoom")||(e.zoom=p.zoom,t.idleAndZoomChanged=!t.idleAndZoomChanged),S=!1}))}))),e.isDefined(t.events)&&null!==t.events&&e.isObject(t.events)){for(y in x=function(e){return function(){return t.events[e].apply(t,[p,e,arguments])}},h=[],t.events)t.events.hasOwnProperty(y)&&e.isFunction(t.events[y])&&h.push(google.maps.event.addListener(p,y,x(y)));s.concat(h)}return p.getOptions=function(){return w},t.map=p,null!=a.control&&null!=t.control&&(t.control.refresh=function(t){var e,n,i;if(null!=p)return null!=("undefined"!=typeof google&&null!==google&&null!=(n=google.maps)&&null!=(i=n.event)?i.trigger:void 0)&&null!=p&&google.maps.event.trigger(p,"resize"),null!=(null!=t?t.latitude:void 0)&&null!=(null!=t?t.longitude:void 0)?(e=l.getCoords(t),l.isTrue(a.pan)?p.panTo(e):p.setCenter(e)):void 0},t.control.getGMap=function(){return p},t.control.getMapOptions=function(){return w},t.control.getCustomEventListeners=function(){return h},t.control.removeEvents=function(t){return g.removeEvents(t)}),t.$watch("center",(function(e,n){var i;if(e!==n&&!S&&((i=l.getCoords(t.center)).lat()!==p.center.lat()||i.lng()!==p.center.lng()))return v?void 0:(l.validateCoords(e)||r.error("Invalid center for newValue: "+JSON.stringify(e)),l.isTrue(a.pan)&&t.zoom===p.zoom?p.panTo(i):p.setCenter(i))}),!0),E=null,t.$watch("zoom",(function(e,o){var r,a;if(null!=e&&!n.isEqual(e,o)&&(null!=p?p.getZoom():void 0)!==(null!=t?t.zoom:void 0)&&!S)return null!=E&&i.cancel(E),E=i((function(){return p.setZoom(e)}),(null!=(r=t.eventOpts)&&null!=(a=r.debounce)?a.zoomMs:void 0)+20,!1)})),t.$watch("bounds",(function(t,e){var n,i,o,a,s,l,d;if(t!==e){if(null!=(null!=t&&null!=(o=t.northeast)?o.latitude:void 0)&&null!=(null!=t&&null!=(a=t.northeast)?a.longitude:void 0)&&null!=(null!=t&&null!=(s=t.southwest)?s.latitude:void 0)&&null!=(null!=t&&null!=(l=t.southwest)?l.longitude:void 0))return i=new google.maps.LatLng(t.northeast.latitude,t.northeast.longitude),d=new google.maps.LatLng(t.southwest.latitude,t.southwest.longitude),n=new google.maps.LatLngBounds(d,i),p.fitBounds(n);r.error("Invalid map bounds for new value: "+JSON.stringify(t))}})),["options","styles"].forEach((function(e){return t.$watch(e,(function(t,i){if(!n.isEqual(t,i))return"options"===e?_.options=t:_.options[e]=t,null!=p?p.setOptions(_):void 0}),!0)}))}r.error("angular-google-maps: a center or bounds property is required")}))},s}(s)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarker",["uiGmapIMarker","uiGmapMarkerChildModel","uiGmapMarkerManager","uiGmapLogger",function(e,i,o,r){return function(a){function s(){s.__super__.constructor.call(this),this.template='',r.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(s,a),s.prototype.controller=["$scope","$element",function(t,i){return t.ctrlType="Marker",n.extend(this,e.handle(t,i))}],s.prototype.link=function(t,r,a,s){return e.mapPromise(t,s).then((function(r){var a,s;if(a=new o(r),s=n.object(e.keys,e.keys),new i({scope:t,model:t,keys:s,gMap:r,doClick:!0,gManager:a,doDrawSelf:!1,trackModel:!1}).deferred.promise.then((function(e){return t.deferred.resolve(e)})),null!=t.control)return t.control.getGMarkers=a.getGMarkers})),t.$on("$destroy",(function(){return null}))},s}(e)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarkers",["uiGmapIMarker","uiGmapPlural","uiGmapMarkersParentModel","uiGmap_sync","uiGmapLogger",function(e,i,o,r,a){return function(r){function s(){s.__super__.constructor.call(this),this.template='',i.extend(this,{doCluster:"=?docluster",clusterOptions:"=clusteroptions",clusterEvents:"=clusterevents",modelsByRef:"=modelsbyref",type:"=?type",typeOptions:"=?typeoptions",typeEvents:"=?typeevents",deepComparison:"=?deepcomparison"}),a.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(s,r),s.prototype.controller=["$scope","$element",function(t,i){return t.ctrlType="Markers",n.extend(this,e.handle(t,i))}],s.prototype.link=function(t,r,a,s){var l,d;return l=void 0,d=function(){return t.deferred.resolve()},e.mapPromise(t,s).then((function(e){return s.getScope().$watch("idleAndZoomChanged",(function(){return n.defer(l.gManager.draw)})),l=new o(t,r,a,e),i.link(t,l),null!=t.control&&(t.control.getGMarkers=function(){var t;return null!=(t=l.gManager)?t.getGMarkers():void 0},t.control.getChildMarkers=function(){return l.plurals}),n.last(l.existingPieces._content).then((function(){return d()}))}))},s}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").service("uiGmapPlural",[function(){var t;return t=function(t,e){if(null!=t.control)return t.control.updateModels=function(n){return t.models=n,e.createChildScopes(!1)},t.control.newModels=function(n){return t.models=n,e.rebuildAll(t,!0,!0)},t.control.clean=function(){return e.rebuildAll(t,!1,!0)},t.control.getPlurals=function(){return e.plurals},t.control.getManager=function(){return e.gManager},t.control.hasManager=function(){return null!=e.gManager==1},t.control.managerDraw=function(){var e;if(t.control.hasManager())return null!=(e=t.control.getManager())?e.draw():void 0}},{extend:function(t,e){return n.extend(t.scope||{},e||{},{idKey:"=idkey",doRebuildAll:"=dorebuildall",models:"=models",chunk:"=chunk",cleanchunk:"=cleanchunk",control:"=control",deepComparison:"=deepcomparison"})},link:function(e,n){return t(e,n)}}}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygon",["uiGmapIPolygon","$timeout","uiGmapPolygonChildModel",function(e,i,o){return function(i){function r(){return this.link=t(this.link,this),r.__super__.constructor.apply(this,arguments)}return function(t,e){for(var i in e)n.call(e,i)&&(t[i]=e[i]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(r,i),r.prototype.link=function(t,n,i,r){var a,s,l;return a=[],s=e.mapPromise(t,r),null!=t.control&&(t.control.getInstance=this,t.control.polygons=a,t.control.promise=s),s.then((l=this,function(e){return a.push(new o({scope:t,attrs:i,gMap:e,defaults:l.DEFAULTS}))}))},r}(e)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygons",["uiGmapIPolygon","$timeout","uiGmapPolygonsParentModel","uiGmapPlural",function(n,i,o,r){return function(n){function i(){var t,e;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),i.__super__.constructor.call(this),r.extend(this),this.$log.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(i,n),i.prototype.link=function(t,n,i,a){return a.getScope().deferred.promise.then((s=this,function(a){return(e.isUndefined(t.path)||null===t.path)&&s.$log.warn("polygons: no valid path attribute found"),t.models||s.$log.warn("polygons: no models found to create from"),r.link(t,new o(t,n,i,a,s.DEFAULTS))}));var s},i}(n)}])}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolyline",["uiGmapIPolyline","$timeout","uiGmapPolylineChildModel",function(i,o,r){return function(o){function a(){return this.link=t(this.link,this),a.__super__.constructor.apply(this,arguments)}return function(t,e){for(var i in e)n.call(e,i)&&(t[i]=e[i]);function o(){this.constructor=t}o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype}(a,o),a.prototype.link=function(t,n,o,a){return i.mapPromise(t,a).then((s=this,function(n){return!e.isUndefined(t.path)&&null!==t.path&&s.validatePath(t.path)||s.$log.warn("polyline: no valid path attribute found"),new r({scope:t,attrs:o,gMap:n,defaults:s.DEFAULTS})}));var s},a}(i)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylines",["uiGmapIPolyline","$timeout","uiGmapPolylinesParentModel","uiGmapPlural",function(n,i,o,r){return function(n){function i(){var t,e;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),i.__super__.constructor.call(this),r.extend(this),this.$log.info(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(i,n),i.prototype.link=function(t,n,i,a){return a.getScope().deferred.promise.then((s=this,function(a){return(e.isUndefined(t.path)||null===t.path)&&s.$log.warn("polylines: no valid path attribute found"),t.models||s.$log.warn("polylines: no models found to create from"),r.link(t,new o(t,n,i,a,s.DEFAULTS))}));var s},i}(n)}])}.call(this),function(){e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapRectangle",["uiGmapLogger","uiGmapGmapUtil","uiGmapIRectangle","uiGmapRectangleParentModel",function(t,e,i,o){return n.extend(i,{link:function(t,e,n,i){return i.getScope().deferred.promise.then((function(i){return new o(t,e,n,i)}))}})}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindow",["uiGmapIWindow","uiGmapGmapUtil","uiGmapWindowChildModel","uiGmapLodash","uiGmapLogger",function(n,i,o,r,a){return function(s){function l(){var t,e;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),l.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarker"],this.template='',a.debug(this),this.childWindows=[]}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(l,s),l.include(i),l.prototype.link=function(t,i,o,r){var a,s,l;return a=r.length>1&&null!=r[1]?r[1]:void 0,s=null!=a?a.getScope():void 0,this.mapPromise=n.mapPromise(t,r[0]),this.mapPromise.then((l=this,function(n){var r;if(r=!0,e.isDefined(o.isiconvisibleonclick)&&(r=t.isIconVisibleOnClick),a)return s.deferred.promise.then((function(e){return l.init(t,i,r,n,s)}));l.init(t,i,r,n)}))},l.prototype.init=function(t,e,n,i,a){var s,l,d,u,c,p;if(l=null!=t.options?t.options:{},u=null!=t&&this.validateCoords(t.coords),null!=(null!=a?a.getGMarker:void 0)&&(d=a.getGMarker()),c=u?this.createWindowOptions(d,t,e.html(),l):l,null!=i&&(s=new o({scope:t,opts:c,isIconVisibleOnClick:n,gMap:i,markerScope:a,element:e}),this.childWindows.push(s),t.$on("$destroy",(p=this,function(){return p.childWindows=r.withoutObjects(p.childWindows,[s],(function(t,e){return t.scope.$id===e.scope.$id})),p.childWindows.length=0}))),null!=t.control&&(t.control.getGWindows=function(t){return function(){return t.childWindows.map((function(t){return t.gObject}))}}(this),t.control.getChildWindows=function(t){return function(){return t.childWindows}}(this),t.control.getPlurals=t.control.getChildWindows,t.control.showWindow=function(t){return function(){return t.childWindows.map((function(t){return t.showWindow()}))}}(this),t.control.hideWindow=function(t){return function(){return t.childWindows.map((function(t){return t.hideWindow()}))}}(this)),null!=this.onChildCreation&&null!=s)return this.onChildCreation(s)},l}(n)}])}.call(this),function(){var t={}.hasOwnProperty;e.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindows",["uiGmapIWindow","uiGmapPlural","uiGmapWindowsParentModel","uiGmapPromise","uiGmapLogger",function(e,n,i,o,r){return function(e){function a(){var t,e;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),a.__super__.constructor.call(this),this.require=["^uiGmapGoogleMap","^?uiGmapMarkers"],this.template='',n.extend(this),r.debug(this)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function o(){this.constructor=e}o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype}(a,e),a.prototype.link=function(t,e,n,i){var r,a,s,l;return r=i[0].getScope(),a=i.length>1&&null!=i[1]?i[1]:void 0,s=null!=a?a.getScope():void 0,r.deferred.promise.then((l=this,function(r){var a;return((null!=s&&null!=(a=s.deferred)?a.promise:void 0)||o.resolve()).then((function(){var o,a;return(o=null!=(a=l.parentModel)?a.existingPieces:void 0)?o.then((function(){return l.init(t,e,n,i,r,s)})):l.init(t,e,n,i,r,s)}))}))},a.prototype.init=function(t,e,o,r,a,s){var l;if(l=new i(t,e,o,r,a,s),n.link(t,l),null!=t.control)return t.control.getGWindows=function(){return l.plurals.map((function(t){return t.gObject}))},t.control.getChildWindows=function(){return l.plurals}},a}(e)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapGoogleMap",["uiGmapMap",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMarker",["$timeout","uiGmapMarker",function(t,e){return new e(t)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMarkers",["$timeout","uiGmapMarkers",function(t,e){return new e(t)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolygon",["uiGmapPolygon",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapCircle",["uiGmapCircle",function(t){return t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolyline",["uiGmapPolyline",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolylines",["uiGmapPolylines",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapRectangle",["uiGmapLogger","uiGmapRectangle",function(t,e){return e}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapWindow",["$timeout","$compile","$http","$templateCache","uiGmapWindow",function(t,e,n,i,o){return new o(t,e,n,i)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapWindows",["$timeout","$compile","$http","$templateCache","$interpolate","uiGmapWindows",function(t,e,n,i,o,r){return new r(t,e,n,i,o)}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapLayer",["$timeout","uiGmapLogger","uiGmapLayerParentModel",function(t,e,n){var i;return i=function(){function t(){var t,n;this.link=(t=this.link,n=this,function(){return t.apply(n,arguments)}),this.$log=e,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="",this.replace=!0,this.scope={show:"=show",type:"=type",namespace:"=namespace",options:"=options",onCreated:"&oncreated"}}return t.prototype.link=function(t,e,i,o){return o.getScope().deferred.promise.then((function(o){return null!=t.onCreated?new n(t,e,i,o,t.onCreated):new n(t,e,i,o)}))},t}(),new i}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMapControl",["uiGmapControl",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapDragZoom",["uiGmapDragZoom",function(t){return t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapDrawingManager",["uiGmapDrawingManager",function(t){return t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapFreeDrawPolygons",["uiGmapApiFreeDrawPolygons",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMapType",["$timeout","uiGmapLogger","uiGmapMapTypeParentModel",function(t,e,n){var i;return i=function(){function t(){var t,n;this.link=(t=this.link,n=this,function(){return t.apply(n,arguments)}),this.$log=e,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template='',this.replace=!0,this.scope={show:"=show",options:"=options",refresh:"=refresh",id:"@"}}return t.prototype.link=function(t,e,i,o){return o.getScope().deferred.promise.then((function(o){return new n(t,e,i,o)}))},t}(),new i}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapMapTypes",["$timeout","uiGmapLogger","uiGmapMapTypesParentModel",function(t,e,n){var i;return i=function(){function t(){var t,n;this.link=(t=this.link,n=this,function(){return t.apply(n,arguments)}),this.$log=e,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template='',this.scope={mapTypes:"=mapTypes",show:"=show",options:"=options",refresh:"=refresh",id:"=idKey"}}return t.prototype.link=function(t,e,i,o){return o.getScope().deferred.promise.then((function(o){return new n(t,e,i,o)}))},t}(),new i}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapPolygons",["uiGmapPolygons",function(t){return new t}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapSearchBox",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapSearchBoxParentModel","$http","$templateCache","$compile",function(t,n,i,o,r,a){var s;return s=function(){function s(){var t,e;this.link=(t=this.link,e=this,function(){return t.apply(e,arguments)}),this.$log=n,this.restrict="EMA",this.require="^uiGmapGoogleMap",this.priority=-1,this.transclude=!0,this.template="",this.replace=!0,this.scope={template:"=template",events:"=events",position:"=?position",options:"=?options",parentdiv:"=?parentdiv",ngModel:"=?"}}return s.prototype.require="ngModel",s.prototype.link=function(n,s,l,d){return t.then((u=this,function(t){return null==n.template&&(r.put("uigmap-searchbox-default.tpl.html",''),n.template="uigmap-searchbox-default.tpl.html"),o.get(n.template,{cache:r}).then((function(o){var r;if(r=o.data,!e.isUndefined(n.events))return d.getScope().deferred.promise.then((function(o){var d;if(d=e.isDefined(n.position)?n.position.toUpperCase().replace(/-/g,"_"):"TOP_LEFT",t.ControlPosition[d])return new i(n,s,l,o,d,a(r)(n));u.$log.error("searchBox: invalid position property")}));u.$log.error("searchBox: the events property is required")}))}));var u},s}(),new s}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapShow",["$animate","uiGmapLogger",function(t,n){return{scope:{uiGmapShow:"=",uiGmapAfterShow:"&",uiGmapAfterHide:"&"},link:function(i,o){var r,a,s;return r=function(e,n){return t[e](o,"ng-hide").then((function(){return n()}))},a=function(e,n){return t[e](o,"ng-hide",n)},s=function(t,i){return e.version.major>1?n.error("uiGmapShow is not supported for Angular Major greater than 1.\nYour Major is "+e.version.major+'"'):1===e.version.major&&e.version.minor<3?a(t,i):r(t,i)},i.$watch("uiGmapShow",(function(t){if(t&&s("removeClass",i.uiGmapAfterShow),!t)return s("addClass",i.uiGmapAfterHide)}))}}}])}.call(this),function(){e.module("uiGmapgoogle-maps").directive("uiGmapStreetViewPanorama",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper",function(t,n,i,o){var r;return r="uiGmapStreetViewPanorama",{restrict:"EMA",template:'
',replace:!0,scope:{focalcoord:"=",radius:"=?",events:"=?",options:"=?",control:"=?",povoptions:"=?",imagestatus:"="},link:function(a,s,l){return t.then((function(t){var l,d,u,c,p,h,f,g,m,b;return g=void 0,b=void 0,u=!1,h=void 0,f=null,m=null,l=function(){if(o.removeEvents(h),null!=g&&(g.unbind("position"),g.setVisible(!1)),null!=b)return null!=(null!=b?b.setVisible:void 0)&&b.setVisible(!1),b=void 0},p=function(t,n){var i;return i=google.maps.geometry.spherical.computeHeading(t,n),u=!0,a.radius=a.radius||50,m=e.extend({heading:i,zoom:1,pitch:0},a.povoptions||{}),f=f=e.extend({navigationControl:!1,addressControl:!1,linksControl:!1,position:t,pov:m,visible:!0},a.options||{}),u=!1},d=function(){var t;if(a.focalcoord){if(a.radius)return l(),null==b&&(b=new google.maps.StreetViewService),a.events&&(h=o.setEvents(b,a,a)),t=i.getCoords(a.focalcoord),b.getPanoramaByLocation(t,a.radius,(function(e,n){var i,o,r;if(null!=a.imagestatus&&(a.imagestatus=n),null!=(null!=(r=a.events)?r.image_status_changed:void 0)&&a.events.image_status_changed(b,"image_status_changed",a,n),"OK"===n)return o=e.location.latLng,p(o,t),i=s[0],g=new google.maps.StreetViewPanorama(i,f)}));n.error(r+": needs a radius to set the camera view from its focal target.")}else n.error(r+": focalCoord needs to be defined")},null!=a.control&&(a.control.getOptions=function(){return f},a.control.getPovOptions=function(){return m},a.control.getGObject=function(){return b},a.control.getGPano=function(){return g}),a.$watch("options",(function(t,e){if(t!==e&&t!==f&&!u)return d()})),c=!0,a.$watch("focalcoord",(function(t,e){if((t!==e||c)&&null!=t)return c=!1,d()})),a.$on("$destroy",(function(){return l()}))}))}}}])}.call(this),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapuuid",(function(){function t(){}return t.generate=function(){var e=t._gri,n=t._ha;return n(e(32),8)+"-"+n(e(16),4)+"-"+n(16384|e(12),4)+"-"+n(32768|e(14),4)+"-"+n(e(48),12)},t._gri=function(t){return 0>t?NaN:30>=t?0|Math.random()*(1<=t?(0|1073741824*Math.random())+1073741824*(0|Math.random()*(1<>>=1,o+=o)1&i&&(n=o+n);return n},t})),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapGoogleMapsUtilV3",(function(){return{init:n.once((function(){!function(){function e(t,n){t.getMarkerClusterer().extend(e,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=n,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function n(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.hideLabel_=t.getHideLabel(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new e(this,t.getStyles())}function o(t,e,n){this.extend(o,google.maps.OverlayView),e=e||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.hideLabel_=!1,void 0!==n.hideLabel&&(this.hideLabel_=n.hideLabel),this.imagePath_=n.imagePath||o.IMAGE_PATH,this.imageExtension_=n.imageExtension||o.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||o.IMAGE_SIZES,this.calculator_=n.calculator||o.CALCULATOR,this.batchSize_=n.batchSize||o.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||o.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}function r(t){t=t||{},google.maps.OverlayView.apply(this,arguments),this.content_=t.content||"",this.disableAutoPan_=t.disableAutoPan||!1,this.maxWidth_=t.maxWidth||0,this.pixelOffset_=t.pixelOffset||new google.maps.Size(0,0),this.position_=t.position||new google.maps.LatLng(0,0),this.zIndex_=t.zIndex||null,this.boxClass_=t.boxClass||"infoBox",this.boxStyle_=t.boxStyle||{},this.closeBoxMargin_=t.closeBoxMargin||"2px",this.closeBoxURL_=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL_=""),this.infoBoxClearance_=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden_=!t.visible,this.alignBottom_=t.alignBottom||!1,this.pane_=t.pane||"floatPane",this.enableEventPropagation_=t.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null}function a(t,e){function n(){}n.prototype=e.prototype,t.superClass_=e.prototype,t.prototype=new n,t.prototype.constructor=t}function s(t,e,n){this.marker_=t,this.handCursorURL_=t.handCursorURL,this.labelDiv_=document.createElement("div"),this.labelDiv_.style.cssText="position: absolute; overflow: hidden;",this.eventDiv_=document.createElement("div"),this.eventDiv_.style.cssText=this.labelDiv_.style.cssText,this.eventDiv_.setAttribute("onselectstart","return false;"),this.eventDiv_.setAttribute("ondragstart","return false;"),this.crossDiv_=s.getSharedCross(e)}function l(t){(t=t||{}).labelContent=t.labelContent||"",t.labelAnchor=t.labelAnchor||new google.maps.Point(0,0),t.labelClass=t.labelClass||"markerLabels",t.labelStyle=t.labelStyle||{},t.labelInBackground=t.labelInBackground||!1,void 0===t.labelVisible&&(t.labelVisible=!0),void 0===t.raiseOnDrag&&(t.raiseOnDrag=!0),void 0===t.clickable&&(t.clickable=!0),void 0===t.draggable&&(t.draggable=!1),void 0===t.optimized&&(t.optimized=!1),t.crossImage=t.crossImage||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png",t.handCursor=t.handCursor||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur",t.optimized=!1,this.label=new s(this,t.crossImage,t.handCursor),google.maps.Marker.apply(this,arguments)}function d(t){var e=t||{};this.ready_=!1,this.dragging_=!1,t.visible==i&&(t.visible=!0),t.shadow==i&&(t.shadow="7px -3px 5px rgba(88,88,88,0.7)"),t.anchor==i&&(t.anchor=u.BOTTOM),this.setValues(e)}e.prototype.onAdd=function(){var t,e,n=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div_,"click",(function(i){if(t=!1,!e){var o,r,a=n.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"click",n.cluster_),google.maps.event.trigger(a,"clusterclick",n.cluster_),a.getZoomOnClick()&&(r=a.getMaxZoom(),o=n.cluster_.getBounds(),a.getMap().fitBounds(o),setTimeout((function(){a.getMap().fitBounds(o),null!==r&&a.getMap().getZoom()>r&&a.getMap().setZoom(r+1)}),100)),i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",n.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),n=parseInt(e[0].trim(),10),i=parseInt(e[1].trim(),10),o=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(o),t="",this.div_.innerHTML=t+"
"+(this.cluster_.hideLabel_?" ":this.sums_.text)+"
",this.div_.title=void 0===this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title,this.div_.style.display=""}this.visible_=!0},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e);var n=this.styles_[e];this.url_=n.url,this.height_=n.height,this.width_=n.width,this.anchorText_=n.anchorText||[0,0],this.anchorIcon_=n.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=n.textColor||"black",this.textSize_=n.textSize||11,this.textDecoration_=n.textDecoration||"none",this.fontWeight_=n.fontWeight||"bold",this.fontStyle_=n.fontStyle||"normal",this.fontFamily_=n.fontFamily||"Arial,sans-serif",this.backgroundPosition_=n.backgroundPosition||"0 0"},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.join("")},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},n.prototype.getSize=function(){return this.markers_.length},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getCenter=function(){return this.center_},n.prototype.getMap=function(){return this.map_},n.prototype.getMarkerClusterer=function(){return this.markerClusterer_},n.prototype.getBounds=function(){var t,e=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers();for(t=0;ti)t.getMap()!==this.map_&&t.setMap(this.map_);else if(ne;e++)this.markers_[e].setMap(null);else t.setMap(null);return!0},n.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},n.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},n.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)this.clusterIcon_.hide();else if(te;e++)if(t===this.markers_[e])return!0;return!1},o.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport_(!1),(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw_()}))]},o.prototype.onRemove=function(){var t;for(t=0;t0))for(t=0;t(i=this.distanceBetweenPoints_(r,t.getPosition()))&&(a=i,s=o);s&&s.isMarkerInClusterBounds(t)?s.addMarker(t):((o=new n(this)).addMarker(t),this.clusters_.push(o))},o.prototype.createClusters_=function(t){var e,n,i,o=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var r=this.getExtendedBounds(i),a=Math.min(t+this.batchSize_,this.markers_.length);for(e=t;a>e;e++)!(n=this.markers_[e]).isAdded&&this.isMarkerInBounds_(n,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&n.getVisible())&&this.addToClosestCluster_(n);if(athis.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(n=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-n.left-n.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],e=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],t=0;tr&&(n=h.x+d+s+c-r),this.alignBottom_?h.y<-l+p+u?i=h.y+l-p-u:h.y+l+p>a&&(i=h.y+l+p-a):h.y<-l+p?i=h.y+l-p:h.y+u+l+p>a&&(i=h.y+u+l+p-a),(0!==n||0!==i)&&(e.getCenter(),e.panBy(n,i))}},r.prototype.setBoxStyle_=function(){var t,e;if(this.div_){for(t in this.div_.className=this.boxClass_,this.div_.style.cssText="",e=this.boxStyle_)e.hasOwnProperty(t)&&(this.div_.style[t]=e[t]);this.div_.style.WebkitTransform="translateZ(0)",void 0!==this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}},r.prototype.getBoxWidths_=function(){var t,e={top:0,bottom:0,left:0,right:0},n=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(t=n.ownerDocument.defaultView.getComputedStyle(n,""))&&(e.top=parseInt(t.borderTopWidth,10)||0,e.bottom=parseInt(t.borderBottomWidth,10)||0,e.left=parseInt(t.borderLeftWidth,10)||0,e.right=parseInt(t.borderRightWidth,10)||0):document.documentElement.currentStyle&&n.currentStyle&&(e.top=parseInt(n.currentStyle.borderTopWidth,10)||0,e.bottom=parseInt(n.currentStyle.borderBottomWidth,10)||0,e.left=parseInt(n.currentStyle.borderLeftWidth,10)||0,e.right=parseInt(n.currentStyle.borderRightWidth,10)||0),e},r.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},r.prototype.draw=function(){this.createInfoBoxDiv_();var t=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=t.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(t.y+this.pixelOffset_.height)+"px":this.div_.style.top=t.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},r.prototype.setOptions=function(t){void 0!==t.boxClass&&(this.boxClass_=t.boxClass,this.setBoxStyle_()),void 0!==t.boxStyle&&(this.boxStyle_=t.boxStyle,this.setBoxStyle_()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan_=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth_=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset_=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom_=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin_=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL_=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance_=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden_=t.isHidden),void 0!==t.visible&&(this.isHidden_=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation_=t.enableEventPropagation),this.div_&&this.draw()},r.prototype.setContent=function(t){this.content_=t,this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},r.prototype.setPosition=function(t){this.position_=t,this.div_&&this.draw(),google.maps.event.trigger(this,"position_changed")},r.prototype.setZIndex=function(t){this.zIndex_=t,this.div_&&(this.div_.style.zIndex=t),google.maps.event.trigger(this,"zindex_changed")},r.prototype.setVisible=function(t){this.isHidden_=!t,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},r.prototype.getContent=function(){return this.content_},r.prototype.getPosition=function(){return this.position_},r.prototype.getZIndex=function(){return this.zIndex_},r.prototype.getVisible=function(){return void 0!==this.getMap()&&null!==this.getMap()&&!this.isHidden_},r.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},r.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},r.prototype.open=function(t,e){var n=this;e&&(this.position_=e.getPosition(),this.moveListener_=google.maps.event.addListener(e,"position_changed",(function(){n.setPosition(this.getPosition())}))),this.setMap(t),this.div_&&this.panBox_()},r.prototype.close=function(){var t;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(t=0;te.left&&t.lefte.top&&t.topa;e=0<=a?++r:--r)if(n[e]===o){s=[n[n.length-1],n[e]],n[e]=s[0],n[n.length-1]=s[1],n.pop();break}return n.concat(i)},t.prototype.forEachNode=function(t){var e,i;for(e in i=this._nodes)n.call(i,e)&&t(i[e],e)},t.prototype.forEachEdge=function(t){var e,i,o,r;for(e in o=this._nodes)if(n.call(o,e))for(i in r=o[e]._outEdges)n.call(r,i)&&t(r[i])},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,n,i,o;e=function(){function t(t){var e,n,i,o,r,a;for(null==t&&(t=[]),this._data=[void 0],i=0,r=t.length;i1)for(e=o=2,a=this._data.length;2<=a?oa;e=2<=a?++o:--o)this._upHeap(e);this.size=this._data.length-1}return t.prototype.add=function(t){if(null!=t)return this._data.push(t),this._upHeap(this._data.length-1),this.size++,t},t.prototype.removeMin=function(){var t;if(1!==this._data.length)return this.size--,2===this._data.length?this._data.pop():(t=this._data[1],this._data[1]=this._data.pop(),this._downHeap(),t)},t.prototype.peekMin=function(){return this._data[1]},t.prototype._upHeap=function(t){var e;for(this._data[t];this._data[t]1;)e=[this._data[i(t)],this._data[t]],this._data[t]=e[0],this._data[i(t)]=e[1],t=i(t)},t.prototype._downHeap=function(){var t,e,i;for(t=1;n(t>1},n=function(t){return t<<1},o=function(t){return 1+(t<<1)},t.exports=e}).call(this)},function(t,e){(function(){var e;e=function(){function t(t){var e,n,i;for(null==t&&(t=[]),this.head={prev:void 0,value:void 0,next:void 0},this.tail={prev:void 0,value:void 0,next:void 0},this.size=0,n=0,i=t.length;n=this.size)return-1;for(e=Math.max(0,this._adjust(e)),n=this.at(e),i=e;n&&n.value!==t;)n=n.next,i++;return i===this.size?-1:i},t.prototype._adjust=function(t){return t<0?this.size+t:t},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,n,i,o,r={}.hasOwnProperty;n="_mapId_",e=function(){function t(e){var n,i;for(n in this._content={},this._itemId=0,this._id=t._newMapId(),this.size=0,e)r.call(e,n)&&(i=e[n],this.set(n,i))}return t._mapIdTracker=0,t._newMapId=function(){return this._mapIdTracker++},t.prototype.hash=function(t,e){var r,a;return null==e&&(e=!1),a=i(t),o(t)?(r=n+this._id,e&&!t[r]&&(t[r]=this._itemId++),r+"_"+t[r]):a+"_"+t},t.prototype.set=function(t,e){return this.has(t)||this.size++,this._content[this.hash(t,!0)]=[e,t],e},t.prototype.get=function(t){var e;return null!=(e=this._content[this.hash(t)])?e[0]:void 0},t.prototype.has=function(t){return this.hash(t)in this._content},t.prototype.delete=function(t){var e;return(e=this.hash(t))in this._content&&(delete this._content[e],o(t)&&delete t[n+this._id],this.size--,!0)},t.prototype.forEach=function(t){var e,n,i;for(e in i=this._content)r.call(i,e)&&t((n=i[e])[1],n[0])},t}(),o=function(t){var e,n,o,r;for(e=["Boolean","Number","String","Undefined","Null","RegExp","Function"],n=i(t),o=0,r=e.length;othis._content.length&&(this._content=this._content.slice(this._dequeueIndex),this._dequeueIndex=0),t},t.prototype.peek=function(){return this._content[this._dequeueIndex]},t}(),t.exports=e}).call(this)},function(t,e){(function(){var e,n,i,o,r,a,s,l,d;e=function(){function t(t){var e,n,i;for(null==t&&(t=[]),this._root,this.size=0,n=0,i=t.length;n=1)&&!o(r[n][1],1);n=d<=1?++s:--s)delete r[n-1][1][r[n][0]];return o(this._root[r[0][0]],1)||delete this._root[r[0][0]],t}}},t}(),o=function(t,e){var n,i;if(0===e)return!0;for(n in i=0,t)if(r.call(t,n)&&++i>=e)return!0;return!1},t.exports=i}).call(this)}]),e.module("uiGmapgoogle-maps.wrapped").service("uiGmapMarkerSpiderfier",["uiGmapGoogleMapApi",function(e){var n=this;return function(){var e={}.hasOwnProperty,n=[].slice;this.OverlappingMarkerSpiderfier=function(){var i,o,r,a,s,l,d,u,c,p;for(r=0,l=(c=[h,u=h.prototype]).length;rl;r=0<=l?++a:--a)n=this.circleStartAngle+r*i,d.push(new o.Point(e.x+s*Math.cos(n),e.y+s*Math.sin(n)));return d},u.generatePtsSpiral=function(t,e){var n,i,r,a,s,l,d;for(a=this.spiralLengthStart,n=0,d=[],i=r=0,l=t;0<=l?rl;i=0<=l?++r:--r)n+=this.spiralFootSeparation/a+5e-4*i,s=new o.Point(e.x+a*Math.cos(n),e.y+a*Math.sin(n)),a+=p*this.spiralLengthFactor/n,d.push(s);return d},u.spiderListener=function(e,n){var i,o,r,a,s,l,d,c,p,h,f,g,m;if((c=null!=e._omsData)&&this.keepSpiderfied||("mouseover"===this.event?(i=this,o=function(){return i.unspiderfy()},t.clearTimeout(u.timeout),u.timeout=setTimeout(o,3e3)):this.unspiderfy()),c||this.map.getStreetView().getVisible()||"GoogleEarthAPI"===this.map.getMapTypeId())return this.trigger("click",e,n);for(h=[],f=[],g=(p=this.nearbyDistance)*p,d=this.llToPt(e.position),r=0,a=(m=this.markers).length;r=this.circleSpiralSwitchover?this.generatePtsSpiral(h,n).reverse():this.generatePtsCircle(h,n),f=function(){var e,n,c;for(c=[],e=0,n=s.length;en||e3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var r=this.getExtendedBounds(i),a=Math.min(t+this.batchSize_,this.markers_.length),s=this.markers_.values();for(e=t;e",this.div_.innerHTML=t+"
"+this.sums_.text+"
",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},e}(MarkerClusterer)}).call(this)}))}}])}(window,angular,i)},90768:()=>{!function(t,e){"use strict";var n,i,o,r,a,s,l,d,u,c,p=e.$$minErr("$sanitize");e.module("ngSanitize",[]).provider("$sanitize",(function(){var h=!1,f=!1;this.$get=["$$sanitizeUri",function(t){return h=!0,f&&i(C,k),function(e){var n=[];return u(e,c(n,(function(e,n){return!/^unsafe:/.test(t(e,n))}))),n.join("")}}],this.enableSvg=function(t){return a(t)?(f=t,this):f},this.addValidElements=function(t){return h||(r(t)&&(t={htmlElements:t}),A(k,t.svgElements),A(b,t.htmlVoidElements),A(C,t.htmlVoidElements),A(C,t.htmlElements)),this},this.addValidAttrs=function(t){return h||i(D,E(t,!0)),this},n=e.bind,i=e.extend,o=e.forEach,r=e.isArray,a=e.isDefined,s=e.$$lowercase,l=e.noop,u=function(t,e){null==t?t="":"string"!=typeof t&&(t=""+t);var n=P(t);if(!n)return"";var i=5;do{if(0===i)throw p("uinput","Failed to sanitize html because the input is unstable");i--,t=n.innerHTML,n=P(t)}while(t!==n.innerHTML);for(var o=n.firstChild;o;){switch(o.nodeType){case 1:e.start(o.nodeName.toLowerCase(),L(o.attributes));break;case 3:e.chars(o.textContent)}var r;if(!((r=o.firstChild)||(1===o.nodeType&&e.end(o.nodeName.toLowerCase()),r=j("nextSibling",o))))for(;null==r&&(o=j("parentNode",o))!==n;)r=j("nextSibling",o),1===o.nodeType&&e.end(o.nodeName.toLowerCase());o=r}for(;o=n.firstChild;)n.removeChild(o)},c=function(t,e){var i=!1,r=n(t,t.push);return{start:function(t,n){t=s(t),!i&&_[t]&&(i=t),i||!0!==C[t]||(r("<"),r(t),o(n,(function(n,i){var o=s(i),a="img"===t&&"src"===o||"background"===o;!0!==D[o]||!0===M[o]&&!e(n,a)||(r(" "),r(i),r('="'),r(I(n)),r('"'))})),r(">"))},end:function(t){t=s(t),i||!0!==C[t]||!0===b[t]||(r("")),t==i&&(i=!1)},chars:function(t){i||r(I(t))}}},d=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};var g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=/([^#-~ |!])/g,b=O("area,br,col,hr,img,wbr"),v=O("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=O("rp,rt"),y=i({},$,v),x=i({},v,O("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),w=i({},$,O("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),k=O("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),_=O("script,style"),C=i({},b,x,w,y),M=O("background,cite,href,longdesc,src,xlink:href,xml:base"),S=O("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),T=O("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),D=i({},M,T,S);function O(t,e){return E(t.split(","),e)}function E(t,e){var n,i={};for(n=0;n/g,">")}function N(e){for(;e;){if(e.nodeType===t.Node.ELEMENT_NODE)for(var n=e.attributes,i=0,o=n.length;i"\u201d\u2019]/i,i=/^mailto:/i,o=e.$$minErr("linky"),r=e.isDefined,a=e.isFunction,s=e.isObject,d=e.isString;return function(e,u,p){if(null==e||""===e)return e;if(!d(e))throw o("notstring","Expected string but received: {0}",e);for(var h,f,g,m=a(p)?p:s(p)?function(){return p}:function(){return{}},b=e,v=[];h=b.match(n);)f=h[0],h[2]||h[4]||(f=(h[3]?"http://":"mailto:")+f),g=h.index,$(b.substr(0,g)),y(f,h[0].replace(i,"")),b=b.substring(g+h[0].length);return $(b),t(v.join(""));function $(t){var e,n;t&&v.push((e=t,c(n=[],l).chars(e),n.join("")))}function y(t,e){var n,i=m(t);for(n in v.push("'),$(e),v.push("")}}}])}(window,window.angular)},67131:(t,e,n)=>{n(90768),t.exports="ngSanitize"},86169:(t,e,n)=>{var i=n(66695);i.module("nemLogging",[]),i.module("nemLogging").provider("nemDebug",(function(){var t;return t=n(11227),this.$get=function(){return t},this.debug=t,this}));var o=[].slice;i.module("nemLogging").provider("nemSimpleLogger",["nemDebugProvider",function(t){var e,n,i,r,a,s,l,d,u,c,p,h;for(p=t.debug,i={},e={},u=d=0,c=(r=["debug","info","warn","error","log"]).length;d=e)return n()},a=function(t){var e,n,i;if(e=!1,!t)return e;for(n=0,i=r.length;n{!function(){"use strict";function t(t,e,n,i,o,r,a){var s,l=0,d=[],u="",c={},p=a.defer(),h={active:function(){return d.length},clear:function(t){if(1!==arguments.length||t)if(t)f(t.toastId);else for(var e=0;e=0&&t.scope.refreshTimer(e)}};return h;function f(e,n){var i=function(t){for(var e=0;e=e&&d[e-1].open.resolve(),d.length||(s.remove(),s=null,p=a.defer())})))}function g(n,r,h,g){return angular.isObject(h)&&(g=h,h=null),function(n){var r=m();if(h=r.preventDuplicates&&n.message===u,g=r.preventOpenDuplicates&&c[n.message],!(h||g||(u=n.message,c[n.message]=!0,0))){var h,g,b=function(){var t={toastId:l++,isOpened:!1,scope:i.$new(),open:a.defer()};return t.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(r,function(t){for(var e=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,i=e.length;n"),e.get("$compile")(d)(s)),t;var s,d}();if(d.push(b),r.autoDismiss&&r.maxOpened&&d.length>r.maxOpened)for(var v=d.slice(0,d.length-r.maxOpened),$=0,y=v.length;$")).attr("id",e.containerId),s.addClass(e.positionClass),s.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(e.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return t.enter(s,n).then((function(){p.resolve()})),p.promise})(r).then((function(){if(b.isOpened=!0,r.newestOnTop)t.enter(b.el,s).then((function(){b.scope.init()}));else{var e=s[0].lastChild?angular.element(s[0].lastChild):null;t.enter(b.el,s,e).then((function(){b.scope.init()}))}}))})),b}}({iconClass:n,message:r,optionsOverride:g,title:h})}function m(){return angular.extend({},r)}}angular.module("toastr",[]).factory("toastr",t),t.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function t(t){return{require:"^toast",templateUrl:function(){return t.templates.progressbar},link:function(t,e,n,i){var o,r,a;function s(){var t=(a-(new Date).getTime())/r*100;e.css("width",t+"%")}i.progressBar=t,t.start=function(t){o&&clearInterval(o),r=parseFloat(t),a=(new Date).getTime()+r,o=setInterval(s,10)},t.stop=function(){o&&clearInterval(o)},t.$on("$destroy",(function(){clearInterval(o)}))}}}angular.module("toastr").directive("progressBar",t),t.$inject=["toastrConfig"]}(),function(){"use strict";angular.module("toastr").controller("ToastController",(function(){this.progressBar=null,this.startProgressBar=function(t){this.progressBar&&this.progressBar.start(t)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}))}(),function(){"use strict";function t(t,e,n,i){return{templateUrl:function(){return n.templates.toast},controller:"ToastController",link:function(n,o,r,a){var s;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,n.options.closeHtml){var l=angular.element(n.options.closeHtml),d=t.get("$compile");l.addClass("toast-close-button"),l.attr("ng-click","close(true, $event)"),d(l)(n),o.children().prepend(l)}function u(t){return a.startProgressBar(t),e((function(){a.stopProgressBar(),i.remove(n.toastId)}),t,1)}n.init=function(){n.options.timeOut&&(s=u(n.options.timeOut)),n.options.onShown&&n.options.onShown()},o.on("mouseenter",(function(){n.progressBar=!1,a.stopProgressBar(),s&&e.cancel(s)})),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(t,e){e&&angular.isFunction(e.stopPropagation)&&e.stopPropagation(),i.remove(n.toastId,t)},n.refreshTimer=function(t){s&&(e.cancel(s),s=u(t||n.options.timeOut))},o.on("mouseleave",(function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply((function(){n.progressBar=n.options.progressBar})),s=u(n.options.extendedTimeOut))}))}}}angular.module("toastr").directive("toast",t),t.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(t){t.put("directives/progressbar/progressbar.html",'
\n'),t.put("directives/toast/toast.html",'
\n
\n
{{title}}
\n
{{message}}
\n
\n
\n
\n \n
\n')}])},37901:(t,e,n)=>{n(17495),t.exports="toastr"},6700:()=>{angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(t,e,n,i){var o=i.has("$animateCss")?i.get("$animateCss"):null;return{link:function(i,r,a){var s=n(a.expanding),l=n(a.expanded),d=n(a.collapsing),u=n(a.collapsed),c=!1,p={},h={};function f(t){return c?{width:t.scrollWidth+"px"}:{height:t.scrollHeight+"px"}}function g(){r.removeClass("collapsing").addClass("collapse").css(p),l(i)}function m(){r.css(h),r.removeClass("collapsing").addClass("collapse"),u(i)}(c=!!("horizontal"in a))?(p={width:""},h={width:"0"}):(p={height:""},h={height:"0"}),i.$eval(a.uibCollapse)||r.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(p),i.$watch(a.uibCollapse,(function(n){n?function(){if(!r.hasClass("collapse")&&!r.hasClass("in"))return m();e.resolve(d(i)).then((function(){r.css(f(r[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),o?o(r,{removeClass:"in",to:h}).start().finally(m):t.removeClass(r,"in",{to:h}).then(m)}),angular.noop)}():r.hasClass("collapse")&&r.hasClass("in")||e.resolve(s(i)).then((function(){r.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),o?o(r,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:f(r[0])}).start().finally(g):t.addClass(r,"in",{css:{overflow:"hidden"},to:f(r[0])}).then(g)}),angular.noop)}))}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",(function(){return{restrict:"A",link:function(t,e,n){n.$observe("disabled",(function(t){n.$set("tabindex",t?-1:null)}))}}})),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){(angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(t){t!==i&&(t.isOpen=!1)}))},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",(function(n){e.removeGroup(t)}))},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("uibAccordion",(function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion.html"}}})).directive("uibAccordionGroup",(function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,i){e.addClass("panel"),i.addGroup(t),t.openClass=n.openClass||"panel-open",t.panelClass=n.panelClass||"panel-default",t.$watch("isOpen",(function(n){e.toggleClass(t.openClass,!!n),n&&i.closeOthers(t)})),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};var o="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=o+"-tab",t.panelId=o+"-panel"}}})).directive("uibAccordionHeading",(function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(t,e,n,i,o){i.setHeading(o(t,angular.noop))}}})).directive("uibAccordionTransclude",(function(){return{require:"^uibAccordionGroup",link:function(t,e,n,i){t.$watch((function(){return i[n.uibAccordionTransclude]}),(function(t){if(t){var n=angular.element(e[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));n.html(""),n.append(t)}}))}}})),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(t,e,n,i,o){t.closeable=!!n.close,e.addClass("alert"),n.$set("role","alert"),t.closeable&&e.addClass("alert-dismissible");var r=angular.isDefined(n.dismissOnTimeout)?i(n.dismissOnTimeout)(t.$parent):null;r&&o((function(){t.close()}),parseInt(r,10))}]).directive("uibAlert",(function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}})),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(t){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,n,i,o){var r=o[0],a=o[1],s=t(i.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(r.activeClass,angular.equals(a.$modelValue,e.$eval(i.uibBtnRadio)))},n.on(r.toggleEvent,(function(){if(!i.disabled){var t=n.hasClass(r.activeClass);t&&!angular.isDefined(i.uncheckable)||e.$apply((function(){a.$setViewValue(t?null:e.$eval(i.uibBtnRadio)),a.$render()}))}})),i.uibUncheckable&&e.$watch(s,(function(t){i.$set("uncheckable",t?"":void 0)}))}}}]).directive("uibBtnCheckbox",(function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(t,e,n,i){var o=i[0],r=i[1];function a(){return s(n.btnCheckboxTrue,!0)}function s(e,n){return angular.isDefined(e)?t.$eval(e):n}e.find("input").css({display:"none"}),r.$render=function(){e.toggleClass(o.activeClass,angular.equals(r.$modelValue,a()))},e.on(o.toggleEvent,(function(){n.disabled||t.$apply((function(){r.$setViewValue(e.hasClass(o.activeClass)?s(n.btnCheckboxFalse,!1):a()),r.$render()}))}))}}})),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(t,e,n,i,o){var r,a,s=this,l=s.slides=t.slides=[],d="uib-slideDirection",u=t.active,c=!1;function p(t){for(var e=0;e0&&(r=n(m,e))}function m(){var e=+t.interval;a&&!isNaN(e)&&e>0&&l.length?t.next():t.pause()}e.addClass("carousel"),s.addSlide=function(e,n){l.push({slide:e,element:n}),l.sort((function(t,e){return+t.slide.index-+e.slide.index})),(e.index===t.active||1===l.length&&!angular.isNumber(t.active))&&(t.$currentTransition&&(t.$currentTransition=null),u=e.index,t.active=e.index,p(u),s.select(l[h(e)]),1===l.length&&t.play())},s.getCurrentIndex=function(){for(var t=0;t0&&u===n?n>=l.length?(u=l.length-1,t.active=u,p(u),s.select(l[l.length-1])):(u=n,t.active=u,p(u),s.select(l[n])):u>n&&(u--,t.active=u),0===l.length&&(u=null,t.active=null)},s.select=t.select=function(n,i){var r=h(n.slide);void 0===i&&(i=r>s.getCurrentIndex()?"next":"prev"),n.slide.index===u||t.$currentTransition||function(n,i,r){if(!c){if(angular.extend(n,{direction:r}),angular.extend(l[u].slide||{},{direction:r}),o.enabled(e)&&!t.$currentTransition&&l[i].element&&s.slides.length>1){l[i].element.data(d,n.direction);var a=s.getCurrentIndex();angular.isNumber(a)&&l[a].element&&l[a].element.data(d,n.direction),t.$currentTransition=!0,o.on("addClass",l[i].element,(function(e,n){"close"===n&&(t.$currentTransition=null,o.off("addClass",e))}))}t.active=n.index,u=n.index,p(i),g()}}(n.slide,r,i)},t.indexOfSlide=function(t){return+t.slide.index},t.isActive=function(e){return t.active===e.slide.index},t.isPrevDisabled=function(){return 0===t.active&&t.noWrap()},t.isNextDisabled=function(){return t.active===l.length-1&&t.noWrap()},t.pause=function(){t.noPause||(a=!1,f())},t.play=function(){a||(a=!0,g())},e.on("mouseenter",t.pause),e.on("mouseleave",t.play),t.$on("$destroy",(function(){c=!0,f()})),t.$watch("noTransition",(function(t){o.enabled(e,!t)})),t.$watch("interval",g),t.$watchCollection("slides",(function(e){e.length||(t.$currentTransition=null)})),t.$watch("active",(function(t){if(angular.isNumber(t)&&u!==t){for(var e=0;e=1&&angular.version.minor>4&&a.push({key:"LLLL",regex:e.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.STANDALONEMONTH.indexOf(t)},formatter:function(t){return n(t,"LLLL")}})},this.init(),this.getParser=function(t){var e=l(t);return e&&e.apply||null},this.overrideParser=function(t,e){var n=l(t);n&&angular.isFunction(e)&&(this.parsers={},n.apply=e)}.bind(this),this.filter=function(t,n){return angular.isDate(t)&&!isNaN(t)&&n?(n=e.DATETIME_FORMATS[n]||n,e.id!==r&&this.init(),this.formatters[n]||(this.formatters[n]=function(t){for(var e,n,i=[],o=0;o=t.length||"'"!==t.charAt(o+1))&&(i.push(d(t,n,o)),n=null);else if(o===t.length)for(;n-1){var r=!1;t=t.split("");for(var s=o;s-1){t=t.split(""),n[o]="("+i.regex+")",t[o]="$";for(var r=o+1,a=o+i.key.length;r28?29===c&&(d%4==0&&d%100!=0||d%400==0):3!==u&&5!==u&&8!==u&&10!==u||c<31)&&(!angular.isDate(l)||isNaN(l.getTime())||m?(v=new Date(0),w.call(v,b.year,b.month,b.date),k.call(v,b.hours||0,b.minutes||0,b.seconds||0,b.milliseconds||0)):(v=new Date(l),w.call(v,b.year,b.month,b.date),k.call(v,b.hours,b.minutes,b.seconds,b.milliseconds))),v}},this.toTimezone=function(t,e){return t&&e?f(t,e):t},this.fromTimezone=function(t,e){return t&&e?f(t,e,!0):t},this.timezoneToOffset=p,this.addDateMinutes=h,this.convertTimezoneToLocal=f}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(t){var e=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,n=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(i,o){var r=[],a=[],s={},l=o.uibIsClass.match(e),d=l[2],u=l[1].split(",");return function(e,i,o){r.push(e),a.push({scope:e,element:i}),u.forEach((function(i,o){!function(e,i){var o=e.match(n),r=i.$eval(o[1]),l=o[2],u=s[e];if(!u){var c=function(e){var n=null;a.some((function(t){if(t.scope.$eval(d)===e)return n=t,!0})),u.lastActivated!==n&&(u.lastActivated&&t.removeClass(u.lastActivated.element,r),n&&t.addClass(n.element,r),u.lastActivated=n)};s[e]=u={lastActivated:null,scope:i,watchFn:c,compareWithExp:l,watcher:i.$watch(l,c)}}u.watchFn(i.$eval(l))}(i,e)})),e.$on("$destroy",c)};function c(t){var e=t.targetScope,n=r.indexOf(e);if(r.splice(n,1),a.splice(n,1),r.length){var i=r[0];angular.forEach(s,(function(t){t.scope===e&&(t.watcher=i.$watch(t.compareWithExp,t.watchFn),t.scope=i)}))}else s={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(t,e,n,i,o,r,a,s,l,d,u,c){var p=this,h={$setViewValue:angular.noop},f={},g=[];function m(e){t.datepickerMode=e,t.datepickerOptions.datepickerMode=e}e.addClass("uib-datepicker"),n.$set("role","application"),t.datepickerOptions||(t.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach((function(e){switch(e){case"customClass":case"dateDisabled":t[e]=t.datepickerOptions[e]||angular.noop;break;case"datepickerMode":t.datepickerMode=angular.isDefined(t.datepickerOptions.datepickerMode)?t.datepickerOptions.datepickerMode:l.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":p[e]=angular.isDefined(t.datepickerOptions[e])?o(t.datepickerOptions[e])(t.$parent):l[e];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":p[e]=angular.isDefined(t.datepickerOptions[e])?t.datepickerOptions[e]:l[e];break;case"startingDay":angular.isDefined(t.datepickerOptions.startingDay)?p.startingDay=t.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?p.startingDay=l.startingDay:p.startingDay=(r.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":t.$watch("datepickerOptions."+e,(function(t){t?angular.isDate(t)?p[e]=c.fromTimezone(new Date(t),f.getOption("timezone")):(d&&a.warn("Literal date support has been deprecated, please switch to date object usage"),p[e]=new Date(s(t,"medium"))):p[e]=l[e]?c.fromTimezone(new Date(l[e]),f.getOption("timezone")):null,p.refreshView()}));break;case"maxMode":case"minMode":t.datepickerOptions[e]?t.$watch((function(){return t.datepickerOptions[e]}),(function(n){p[e]=t[e]=angular.isDefined(n)?n:t.datepickerOptions[e],("minMode"===e&&p.modes.indexOf(t.datepickerOptions.datepickerMode)p.modes.indexOf(p[e]))&&(t.datepickerMode=p[e],t.datepickerOptions.datepickerMode=p[e])})):p[e]=t[e]=l[e]||null}})),t.uniqueId="datepicker-"+t.$id+"-"+Math.floor(1e4*Math.random()),t.disabled=angular.isDefined(n.disabled)||!1,angular.isDefined(n.ngDisabled)&&g.push(t.$parent.$watch(n.ngDisabled,(function(e){t.disabled=e,p.refreshView()}))),t.isActive=function(e){return 0===p.compare(e.date,p.activeDate)&&(t.activeDateId=e.uid,!0)},this.init=function(e){f=function(e){var n;if(angular.version.minor<6)(n=e.$options||t.datepickerOptions.ngModelOptions||l.ngModelOptions||{}).getOption=function(t){return n[t]};else{var i=e.$options.getOption("timezone")||(t.datepickerOptions.ngModelOptions?t.datepickerOptions.ngModelOptions.timezone:null)||(l.ngModelOptions?l.ngModelOptions.timezone:null);n=e.$options.createChild(l.ngModelOptions).createChild(t.datepickerOptions.ngModelOptions).createChild(e.$options).createChild({timezone:i})}return n}(h=e),t.datepickerOptions.initDate?(p.activeDate=c.fromTimezone(t.datepickerOptions.initDate,f.getOption("timezone"))||new Date,t.$watch("datepickerOptions.initDate",(function(t){t&&(h.$isEmpty(h.$modelValue)||h.$invalid)&&(p.activeDate=c.fromTimezone(t,f.getOption("timezone")),p.refreshView())}))):p.activeDate=new Date;var n=h.$modelValue?new Date(h.$modelValue):new Date;this.activeDate=isNaN(n)?c.fromTimezone(new Date,f.getOption("timezone")):c.fromTimezone(n,f.getOption("timezone")),h.$render=function(){p.render()}},this.render=function(){if(h.$viewValue){var t=new Date(h.$viewValue);isNaN(t)?u||a.error('Datepicker directive: "ng-model" value must be a Date object'):this.activeDate=c.fromTimezone(t,f.getOption("timezone"))}this.refreshView()},this.refreshView=function(){if(this.element){t.selectedDt=null,this._refreshView(),t.activeDt&&(t.activeDateId=t.activeDt.uid);var e=h.$viewValue?new Date(h.$viewValue):null;e=c.fromTimezone(e,f.getOption("timezone")),h.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,n){var i=h.$viewValue?new Date(h.$viewValue):null;i=c.fromTimezone(i,f.getOption("timezone"));var o=new Date;o=c.fromTimezone(o,f.getOption("timezone"));var r=this.compare(e,o),a={date:e,label:c.filter(e,n),selected:i&&0===this.compare(e,i),disabled:this.isDisabled(e),past:r<0,current:0===r,future:r>0,customClass:this.customClass(e)||null};return i&&0===this.compare(e,i)&&(t.selectedDt=a),p.activeDate&&0===this.compare(a.date,p.activeDate)&&(t.activeDt=a),a},this.isDisabled=function(e){return t.disabled||this.minDate&&this.compare(e,this.minDate)<0||this.maxDate&&this.compare(e,this.maxDate)>0||t.dateDisabled&&t.dateDisabled({date:e,mode:t.datepickerMode})},this.customClass=function(e){return t.customClass({date:e,mode:t.datepickerMode})},this.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},t.select=function(e){if(t.datepickerMode===p.minMode){var n=h.$viewValue?c.fromTimezone(new Date(h.$viewValue),f.getOption("timezone")):new Date(0,0,0,0,0,0,0);n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n=c.toTimezone(n,f.getOption("timezone")),h.$setViewValue(n),h.$render()}else p.activeDate=e,m(p.modes[p.modes.indexOf(t.datepickerMode)-1]),t.$emit("uib:datepicker.mode");t.$broadcast("uib:datepicker.focus")},t.move=function(t){var e=p.activeDate.getFullYear()+t*(p.step.years||0),n=p.activeDate.getMonth()+t*(p.step.months||0);p.activeDate.setFullYear(e,n,1),p.refreshView()},t.toggleMode=function(e){e=e||1,t.datepickerMode===p.maxMode&&1===e||t.datepickerMode===p.minMode&&-1===e||(m(p.modes[p.modes.indexOf(t.datepickerMode)+e]),t.$emit("uib:datepicker.mode"))},t.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"},t.$on("uib:datepicker.focus",(function(){p.element[0].focus()})),t.keydown=function(e){var n=t.keys[e.which];if(n&&!e.shiftKey&&!e.altKey&&!t.disabled)if(e.preventDefault(),p.shortcutPropagation||e.stopPropagation(),"enter"===n||"space"===n){if(p.isDisabled(p.activeDate))return;t.select(p.activeDate)}else!e.ctrlKey||"up"!==n&&"down"!==n?(p.handleKeyDown(n,e),p.refreshView()):t.toggleMode("up"===n?1:-1)},e.on("keydown",(function(e){t.$apply((function(){t.keydown(e)}))})),t.$on("$destroy",(function(){for(;g.length;)g.shift()()}))}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(t,e,n){var i=[31,28,31,30,31,30,31,31,30,31,30,31];function o(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?i[e]:29}function r(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1}this.step={months:1},this.element=e,this.init=function(e){angular.extend(e,this),t.showWeeks=e.showWeeks,e.refreshView()},this.getDates=function(t,e){for(var n,i=new Array(e),o=new Date(t),r=0;r0?7-a:-a,l=new Date(o);s>0&&l.setDate(1-s);for(var d=this.getDates(l,42),u=0;u<42;u++)d[u]=angular.extend(this.createDateObject(d[u],this.formatDay),{secondary:d[u].getMonth()!==i,uid:t.uniqueId+"-"+u});t.labels=new Array(7);for(var c=0;c<7;c++)t.labels[c]={abbr:n(d[c].date,this.formatDayHeader),full:n(d[c].date,"EEEE")};if(t.title=n(this.activeDate,this.formatDayTitle),t.rows=this.split(d,7),t.showWeeks){t.weekNumbers=[];for(var p=(11-this.startingDay)%7,h=t.rows.length,f=0;f3?this.monthColumns-2:1},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth()),i=new Date(e.getFullYear(),e.getMonth());return n.setFullYear(t.getFullYear()),i.setFullYear(e.getFullYear()),n-i},this.handleKeyDown=function(t,e){var n=this.activeDate.getMonth();if("left"===t)n-=1;else if("up"===t)n-=this.monthColumns;else if("right"===t)n+=1;else if("down"===t)n+=this.monthColumns;else if("pageup"===t||"pagedown"===t){var i=this.activeDate.getFullYear()+("pageup"===t?-1:1);this.activeDate.setFullYear(i)}else"home"===t?n=0:"end"===t&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(t,e,n){var i,o;function r(t){return parseInt((t-1)/o,10)*o+1}this.element=e,this.yearpickerInit=function(){i=this.yearColumns,o=this.yearRows*i,this.step={years:o}},this._refreshView=function(){for(var e,n=new Array(o),a=0,s=r(this.activeDate.getFullYear());a');t.find("body").append(a),n=a[0].offsetWidth-a[0].clientWidth,n=isFinite(n)?n:0,a.remove()}return n},scrollbarPadding:function(t){t=this.getRawNode(t);var n=e.getComputedStyle(t),i=this.parseStyle(n.paddingRight),o=this.parseStyle(n.paddingBottom),r=this.scrollParent(t,!1,!0),s=this.scrollbarWidth(a.test(r.tagName));return{scrollbarWidth:s,widthOverflow:r.scrollWidth>r.clientWidth,right:i+s,originalRight:i,heightOverflow:r.scrollHeight>r.clientHeight,bottom:o+s,originalBottom:o}},isScrollable:function(t,n){t=this.getRawNode(t);var i=n?o.hidden:o.normal,r=e.getComputedStyle(t);return i.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(n,i,r){n=this.getRawNode(n);var a=i?o.hidden:o.normal,s=t[0].documentElement,l=e.getComputedStyle(n);if(r&&a.test(l.overflow+l.overflowY+l.overflowX))return n;var d="absolute"===l.position,u=n.parentElement||s;if(u===s||"fixed"===l.position)return s;for(;u.parentElement&&u!==s;){var c=e.getComputedStyle(u);if(d&&"static"!==c.position&&(d=!1),!d&&a.test(c.overflow+c.overflowY+c.overflowX))break;u=u.parentElement}return u},position:function(n,i){n=this.getRawNode(n);var o=this.offset(n);if(i){var r=e.getComputedStyle(n);o.top-=this.parseStyle(r.marginTop),o.left-=this.parseStyle(r.marginLeft)}var a=this.offsetParent(n),s={top:0,left:0};return a!==t[0].documentElement&&((s=this.offset(a)).top+=a.clientTop-a.scrollTop,s.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(o.width)?o.width:n.offsetWidth),height:Math.round(angular.isNumber(o.height)?o.height:n.offsetHeight),top:Math.round(o.top-s.top),left:Math.round(o.left-s.left)}},offset:function(n){var i=(n=this.getRawNode(n)).getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top+(e.pageYOffset||t[0].documentElement.scrollTop)),left:Math.round(i.left+(e.pageXOffset||t[0].documentElement.scrollLeft))}},viewportOffset:function(n,i,o){o=!1!==o;var r=(n=this.getRawNode(n)).getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},s=i?t[0].documentElement:this.scrollParent(n),l=s.getBoundingClientRect();if(a.top=l.top+s.clientTop,a.left=l.left+s.clientLeft,s===t[0].documentElement&&(a.top+=e.pageYOffset,a.left+=e.pageXOffset),a.bottom=a.top+s.clientHeight,a.right=a.left+s.clientWidth,o){var d=e.getComputedStyle(s);a.top+=this.parseStyle(d.paddingTop),a.bottom-=this.parseStyle(d.paddingBottom),a.left+=this.parseStyle(d.paddingLeft),a.right-=this.parseStyle(d.paddingRight)}return{top:Math.round(r.top-a.top),bottom:Math.round(a.bottom-r.bottom),left:Math.round(r.left-a.left),right:Math.round(a.right-r.right)}},parsePlacement:function(t){var e=r.auto.test(t);return e&&(t=t.replace(r.auto,"")),(t=t.split("-"))[0]=t[0]||"top",r.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",r.secondary.test(t[1])||(t[1]="center"),t[2]=!!e,t},positionElements:function(t,n,i,o){t=this.getRawNode(t),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");i=this.parsePlacement(i);var l=o?this.offset(t):this.position(t),d={top:0,left:0,placement:""};if(i[2]){var u=this.viewportOffset(t,o),c=e.getComputedStyle(n),p={width:a+Math.round(Math.abs(this.parseStyle(c.marginLeft)+this.parseStyle(c.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(c.marginTop)+this.parseStyle(c.marginBottom)))};if(i[0]="top"===i[0]&&p.height>u.top&&p.height<=u.bottom?"bottom":"bottom"===i[0]&&p.height>u.bottom&&p.height<=u.top?"top":"left"===i[0]&&p.width>u.left&&p.width<=u.right?"right":"right"===i[0]&&p.width>u.right&&p.width<=u.left?"left":i[0],i[1]="top"===i[1]&&p.height-l.height>u.bottom&&p.height-l.height<=u.top?"bottom":"bottom"===i[1]&&p.height-l.height>u.top&&p.height-l.height<=u.bottom?"top":"left"===i[1]&&p.width-l.width>u.right&&p.width-l.width<=u.left?"right":"right"===i[1]&&p.width-l.width>u.left&&p.width-l.width<=u.right?"left":i[1],"center"===i[1])if(r.vertical.test(i[0])){var h=l.width/2-a/2;u.left+h<0&&p.width-l.width<=u.right?i[1]="left":u.right+h<0&&p.width-l.width<=u.left&&(i[1]="right")}else{var f=l.height/2-p.height/2;u.top+f<0&&p.height-l.height<=u.bottom?i[1]="top":u.bottom+f<0&&p.height-l.height<=u.top&&(i[1]="bottom")}}switch(i[0]){case"top":d.top=l.top-s;break;case"bottom":d.top=l.top+l.height;break;case"left":d.left=l.left-a;break;case"right":d.left=l.left+l.width}switch(i[1]){case"top":d.top=l.top;break;case"bottom":d.top=l.top+l.height-s;break;case"left":d.left=l.left;break;case"right":d.left=l.left+l.width-a;break;case"center":r.vertical.test(i[0])?d.left=l.left+l.width/2-a/2:d.top=l.top+l.height/2-s/2}return d.top=Math.round(d.top),d.left=Math.round(d.left),d.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],d},adjustTop:function(t,e,n,i){if(-1!==t.indexOf("top")&&n!==i)return{top:e.top-i+"px"}},positionArrow:function(t,n){var i=(t=this.getRawNode(t)).querySelector(".tooltip-inner, .popover-inner");if(i){var o=angular.element(i).hasClass("tooltip-inner"),a=o?t.querySelector(".tooltip-arrow"):t.querySelector(".arrow");if(a){var s={top:"",bottom:"",left:"",right:""};if("center"!==(n=this.parsePlacement(n))[1]){var l="border-"+n[0]+"-width",d=e.getComputedStyle(a)[l],u="border-";r.vertical.test(n[0])?u+=n[0]+"-"+n[1]:u+=n[1]+"-"+n[0],u+="-radius";var c=e.getComputedStyle(o?i:t)[u];switch(n[0]){case"top":s.bottom=o?"0":"-"+d;break;case"bottom":s.top=o?"0":"-"+d;break;case"left":s.right=o?"0":"-"+d;break;case"right":s.left=o?"0":"-"+d}s[n[1]]=c,angular.element(a).css(s)}else angular.element(a).css(s)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(t,e,n,i,o,r,a,s,l,d,u,c,p,h,f,g){var m,b,v,$,y,x,w,k,_,C,M,S,T,D=!1,O=[];function E(e){var n=c.parse(e,m,t.date);if(isNaN(n))for(var i=0;i
")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":y}),(k=angular.element(w.children()[0])).attr("template-url",x),t.datepickerOptions||(t.datepickerOptions={}),D&&"month"===n.type&&(t.datepickerOptions.datepickerMode="month",t.datepickerOptions.minMode="month"),k.attr("datepicker-options","datepickerOptions"),D?C.$formatters.push((function(e){return t.date=c.fromTimezone(e,M.getOption("timezone")),e})):(C.$$parserName="date",C.$validators.date=P,C.$parsers.unshift(A),C.$formatters.push((function(e){return C.$isEmpty(e)?(t.date=e,e):(angular.isNumber(e)&&(e=new Date(e)),t.date=c.fromTimezone(e,M.getOption("timezone")),c.filter(t.date,m))}))),C.$viewChangeListeners.push((function(){t.date=E(C.$viewValue)})),e.on("keydown",I),S=i(w)(t),w.remove(),v?s.find("body").append(S):e.after(S),t.$on("$destroy",(function(){for(!0===t.isOpen&&(l.$$phase||t.$apply((function(){t.isOpen=!1}))),S.remove(),e.off("keydown",I),s.off("click",L),_&&_.off("scroll",N),angular.element(a).off("resize",N);O.length;)O.shift()()}))},t.getText=function(e){return t[e+"Text"]||p[e+"Text"]},t.isDisabled=function(e){"today"===e&&(e=c.fromTimezone(new Date,M.getOption("timezone")));var n={};return angular.forEach(["minDate","maxDate"],(function(e){t.datepickerOptions[e]?angular.isDate(t.datepickerOptions[e])?n[e]=new Date(t.datepickerOptions[e]):(g&&o.warn("Literal date support has been deprecated, please switch to date object usage"),n[e]=new Date(u(t.datepickerOptions[e],"medium"))):n[e]=null})),t.datepickerOptions&&n.minDate&&t.compare(e,n.minDate)<0||n.maxDate&&t.compare(e,n.maxDate)>0},t.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.dateSelection=function(n){t.date=n;var i=t.date?c.filter(t.date,m):null;e.val(i),C.$setViewValue(i),b&&(t.isOpen=!1,e[0].focus())},t.keydown=function(n){27===n.which&&(n.stopPropagation(),t.isOpen=!1,e[0].focus())},t.select=function(e,n){if(n.stopPropagation(),"today"===e){var i=new Date;angular.isDate(t.date)?(e=new Date(t.date)).setFullYear(i.getFullYear(),i.getMonth(),i.getDate()):(e=c.fromTimezone(i,M.getOption("timezone"))).setHours(0,0,0,0)}t.dateSelection(e)},t.close=function(n){n.stopPropagation(),t.isOpen=!1,e[0].focus()},t.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&O.push(t.$parent.$watch(r(n.ngDisabled),(function(e){t.disabled=e}))),t.$watch("isOpen",(function(i){i?t.disabled?t.isOpen=!1:h((function(){N(),$&&t.$broadcast("uib:datepicker.focus"),s.on("click",L);var i=n.popupPlacement?n.popupPlacement:p.placement;v||d.parsePlacement(i)[2]?(_=_||angular.element(d.scrollParent(e)))&&_.on("scroll",N):_=null,angular.element(a).on("resize",N)}),0,!1):(s.off("click",L),_&&_.off("scroll",N),angular.element(a).off("resize",N))})),t.$on("uib:datepicker.mode",(function(){h(N,0,!1)}))}]).directive("uibDatepickerPopup",(function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(t,e,n,i){var o=i[0];i[1].init(o)}}})).directive("uibDatepickerPopupWrap",(function(){return{restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepickerPopup/popup.html"}}})),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(t){return function(e,n){var i;return function(){var o=this,r=Array.prototype.slice.call(arguments);i&&t.cancel(i),i=t((function(){e.apply(o,r)}),n)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",(function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map((function(e){return{key:e,value:t[e]}}))},get:function(e){return t[e]},hasKey:function(e){return!!t[e]},keys:function(){return Object.keys(t)},put:function(e,n){t[e]||(t[e]=[]),t[e].push(n)},remove:function(e,n){var i=t[e];if(i){var o=i.indexOf(n);-1!==o&&i.splice(o,1),i.length||delete t[e]}}}}}})),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(t,e,n){var i=null,o=n.createNew();this.isOnlyOpen=function(t,e){var n=o.get(e);return!(!n||!n.reduce((function(e,n){return n.scope===t?n:e}),{}))&&1===n.length},this.open=function(e,n,a){if(i||t.on("click",r),i&&i!==e&&(i.isOpen=!1),i=e,a){var s=o.get(a);s?-1===s.map((function(t){return t.scope})).indexOf(e)&&o.put(a,{scope:e}):o.put(a,{scope:e})}},this.close=function(e,n,a){if(i===e&&(t.off("click",r),t.off("keydown",this.keybindFilter),i=null),a){var s=o.get(a);if(s){var l=s.reduce((function(t,n){return n.scope===e?n:t}),{});l&&o.remove(a,l)}}};var r=function(t){if(i&&i.isOpen&&!(t&&"disabled"===i.getAutoClose()||t&&3===t.which)){var n=i.getToggleElement();if(!(t&&n&&n[0].contains(t.target))){var o=i.getDropdownElement();t&&"outsideClick"===i.getAutoClose()&&o&&o[0].contains(t.target)||(i.focusToggleElement(),i.isOpen=!1,e.$$phase||i.$apply())}}};this.keybindFilter=function(t){if(i){var e=i.getDropdownElement(),n=i.getToggleElement(),o=e&&e[0].contains(t.target),a=n&&n[0].contains(t.target);27===t.which?(t.stopPropagation(),i.focusToggleElement(),r()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(t.which)&&i.isOpen&&(o||a)&&(t.preventDefault(),t.stopPropagation(),i.focusDropdownEntry(t.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(t,e,n,i,o,r,a,s,l,d,u){var c,p,h=this,f=t.$new(),g=o.appendToOpenClass,m=o.openClass,b=angular.noop,v=n.onToggle?i(n.onToggle):angular.noop,$=!1,y=l.find("body");function x(){e.append(h.dropdownMenu)}e.addClass("dropdown"),this.init=function(){n.isOpen&&(p=i(n.isOpen),b=p.assign,t.$watch(p,(function(t){f.isOpen=!!t}))),$=angular.isDefined(n.keyboardNav)},this.toggle=function(t){return f.isOpen=arguments.length?!!t:!f.isOpen,angular.isFunction(b)&&b(f,f.isOpen),f.isOpen},this.isOpen=function(){return f.isOpen},f.getToggleElement=function(){return h.toggleElement},f.getAutoClose=function(){return n.autoClose||"always"},f.getElement=function(){return e},f.isKeynavEnabled=function(){return $},f.focusDropdownEntry=function(t){var n=h.dropdownMenu?angular.element(h.dropdownMenu).find("a"):e.find("ul").eq(0).find("a");switch(t){case 40:angular.isNumber(h.selectedOption)?h.selectedOption=h.selectedOption===n.length-1?h.selectedOption:h.selectedOption+1:h.selectedOption=0;break;case 38:angular.isNumber(h.selectedOption)?h.selectedOption=0===h.selectedOption?0:h.selectedOption-1:h.selectedOption=n.length-1}n[h.selectedOption].focus()},f.getDropdownElement=function(){return h.dropdownMenu},f.focusToggleElement=function(){h.toggleElement&&h.toggleElement[0].focus()},f.$watch("isOpen",(function(o,p){var $=null,w=!1;if(angular.isDefined(n.dropdownAppendTo)){var k=i(n.dropdownAppendTo)(f);k&&($=angular.element(k))}if(angular.isDefined(n.dropdownAppendToBody)&&!1!==i(n.dropdownAppendToBody)(f)&&(w=!0),w&&!$&&($=y),$&&h.dropdownMenu&&(o?($.append(h.dropdownMenu),e.on("$destroy",x)):(e.off("$destroy",x),x())),$&&h.dropdownMenu){var _,C,M,S=s.positionElements(e,h.dropdownMenu,"bottom-left",!0),T=0;if(_={top:S.top+"px",display:o?"block":"none"},(C=h.dropdownMenu.hasClass("dropdown-menu-right"))?(_.left="auto",(M=s.scrollbarPadding($)).heightOverflow&&M.scrollbarWidth&&(T=M.scrollbarWidth),_.right=window.innerWidth-T-(S.left+e.prop("offsetWidth"))+"px"):(_.left=S.left+"px",_.right="auto"),!w){var D=s.offset($);_.top=S.top-D.top+"px",C?_.right=window.innerWidth-(S.left-D.left+e.prop("offsetWidth"))+"px":_.left=S.left-D.left+"px"}h.dropdownMenu.css(_)}var O=$||e,E=$?g:m,A=O.hasClass(E),P=r.isOnlyOpen(t,$);if(A===!o&&a[$?P?"removeClass":"addClass":o?"addClass":"removeClass"](O,E).then((function(){angular.isDefined(o)&&o!==p&&v(t,{open:!!o})})),o)h.dropdownMenuTemplateUrl?u(h.dropdownMenuTemplateUrl).then((function(t){c=f.$new(),d(t.trim())(c,(function(t){var e=t;h.dropdownMenu.replaceWith(e),h.dropdownMenu=e,l.on("keydown",r.keybindFilter)}))})):l.on("keydown",r.keybindFilter),f.focusToggleElement(),r.open(f,e,$);else{if(r.close(f,e,$),h.dropdownMenuTemplateUrl){c&&c.$destroy();var L=angular.element('');h.dropdownMenu.replaceWith(L),h.dropdownMenu=L}h.selectedOption=null}angular.isFunction(b)&&b(t,o)}))}]).directive("uibDropdown",(function(){return{controller:"UibDropdownController",link:function(t,e,n,i){i.init()}}})).directive("uibDropdownMenu",(function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,i){if(i&&!angular.isDefined(n.dropdownNested)){e.addClass("dropdown-menu");var o=n.templateUrl;o&&(i.dropdownMenuTemplateUrl=o),i.dropdownMenu||(i.dropdownMenu=e)}}}})).directive("uibDropdownToggle",(function(){return{require:"?^uibDropdown",link:function(t,e,n,i){if(i){e.addClass("dropdown-toggle"),i.toggleElement=e;var o=function(o){o.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply((function(){i.toggle()}))};e.on("click",o),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,(function(t){e.attr("aria-expanded",!!t)})),t.$on("$destroy",(function(){e.off("click",o)}))}}}})),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",(function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n-1&&t0&&(e=h.top().value).modalDomEl.toggleClass(e.windowTopClass||"",t)}function k(e,n,i,o){var a,s=null;return n.$broadcast(g.NOW_CLOSING_EVENT,(function(){return a||(a=r.defer(),s=a.promise),function(){a.resolve()}})),r.when(s).then((function r(){r.done||(r.done=!0,t.leave(e).then((function(){i&&i(),e.remove(),o&&o.resolve()})),n.$destroy())}))}function _(t){if(t.isDefaultPrevented())return t;var e=h.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),o.$apply((function(){g.dismiss(e.key,"escape key press")})));break;case 9:var n=g.loadFocusElementList(e),i=!1;t.shiftKey?(g.isFocusInFirstItem(t,n)||g.isModalFocused(t,e))&&(i=g.focusLastFocusableElement(n)):g.isFocusInLastItem(t,n)&&(i=g.focusFirstFocusableElement(n)),i&&(t.preventDefault(),t.stopPropagation())}}function C(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}function M(){Array.prototype.forEach.call(document.querySelectorAll("["+v+"]"),(function(t){var e=parseInt(t.getAttribute(v),10)-1;t.setAttribute(v,e),e||(t.removeAttribute(v),t.removeAttribute("aria-hidden"))}))}return o.$watch(y,(function(t){u&&(u.index=t)})),n.on("keydown",_),o.$on("$destroy",(function(){n.off("keydown",_)})),g.open=function(e,r){var a=n[0].activeElement,s=r.openedClass||p;w(!1),b=h.top(),h.add(e,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),f.put(s,e);var g,x=r.appendTo,k=y();k>=0&&!d&&((u=o.$new(!0)).modalOptions=r,u.index=k,(d=angular.element('
')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),r.backdropClass&&d.addClass(r.backdropClass),r.animation&&d.attr("modal-animation","true"),i(d)(u),t.enter(d,x),l.isScrollable(x)&&(c=l.scrollbarPadding(x)).heightOverflow&&c.scrollbarWidth&&x.css({paddingRight:c.right+"px"})),r.component?(g=document.createElement(r.component.name.replace($,(function(t,e){return(e?"-":"")+t.toLowerCase()}))),(g=angular.element(g)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):g=r.content,m=b?parseInt(b.value.modalDomEl.attr("index"),10)+1:0;var _=angular.element('
');_.attr({class:"modal","template-url":r.windowTemplateUrl,"window-top-class":r.windowTopClass,role:"dialog","aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,size:r.size,index:m,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(g),r.windowClass&&_.addClass(r.windowClass),r.animation&&_.attr("modal-animation","true"),x.addClass(s),r.scope&&(r.scope.$$topModalIndex=m),t.enter(i(_)(r.scope),x),h.top().value.modalDomEl=_,h.top().value.modalOpener=a,function t(e){if(e&&"BODY"!==e[0].tagName)return function(t){var e=t.parent()?t.parent().children():[];return Array.prototype.filter.call(e,(function(e){return e!==t[0]}))}(e).forEach((function(t){var e="true"===t.getAttribute("aria-hidden"),n=parseInt(t.getAttribute(v),10);n||(n=e?1:0),t.setAttribute(v,n+1),t.setAttribute("aria-hidden","true")})),t(e.parent())}(_)},g.close=function(t,e){var n=h.get(t);return M(),n&&C(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),x(t,n.value.modalOpener),!0):!n},g.dismiss=function(t,e){var n=h.get(t);return M(),n&&C(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),x(t,n.value.modalOpener),!0):!n},g.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},g.getTop=function(){return h.top()},g.modalRendered=function(t){var e=h.get(t);e&&e.value.renderDeferred.resolve()},g.focusFirstFocusableElement=function(t){return t.length>0&&(t[0].focus(),!0)},g.focusLastFocusableElement=function(t){return t.length>0&&(t[t.length-1].focus(),!0)},g.isModalFocused=function(t,e){if(t&&e){var n=e.value.modalDomEl;if(n&&n.length)return(t.target||t.srcElement)===n[0]}return!1},g.isFocusInFirstItem=function(t,e){return e.length>0&&(t.target||t.srcElement)===e[0]},g.isFocusInLastItem=function(t,e){return e.length>0&&(t.target||t.srcElement)===e[e.length-1]},g.loadFocusElementList=function(t){if(t){var e=t.value.modalDomEl;if(e&&e.length){var n=e[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return n?Array.prototype.filter.call(n,(function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)})):n}}},g}]).provider("$uibModal",(function(){var t={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(e,n,i,o,r,a,s){var l={},d=null;return l.getPromiseChain=function(){return d},l.open=function(l){var u,c,p,h=n.defer(),f=n.defer(),g=n.defer(),m=n.defer(),b={result:h.promise,opened:f.promise,closed:g.promise,rendered:m.promise,close:function(t){return s.close(b,t)},dismiss:function(t){return s.dismiss(b,t)}};if((l=angular.extend({},t.options,l)).resolve=l.resolve||{},l.appendTo=l.appendTo||i.find("body").eq(0),!l.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!l.component&&!l.template&&!l.templateUrl)throw new Error("One of component or template or templateUrl options is required.");function v(){return u}return u=l.component?n.when(a.resolve(l.resolve,{},null,null)):n.all([(c=l,c.template?n.when(c.template):o(angular.isFunction(c.templateUrl)?c.templateUrl():c.templateUrl)),a.resolve(l.resolve,{},null,null)]),p=d=n.all([d]).then(v,v).then((function(t){var n=l.scope||e,i=n.$new();i.$close=b.close,i.$dismiss=b.dismiss,i.$on("$destroy",(function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")}));var o,a,d={scope:i,deferred:h,renderDeferred:m,closedDeferred:g,animation:l.animation,backdrop:l.backdrop,keyboard:l.keyboard,backdropClass:l.backdropClass,windowTopClass:l.windowTopClass,windowClass:l.windowClass,windowTemplateUrl:l.windowTemplateUrl,ariaLabelledBy:l.ariaLabelledBy,ariaDescribedBy:l.ariaDescribedBy,size:l.size,openedClass:l.openedClass,appendTo:l.appendTo},u={},c={};function p(e,n,o,r){e.$scope=i,e.$scope.$resolve={},o?e.$scope.$uibModalInstance=b:e.$uibModalInstance=b;var a=n?t[1]:t;angular.forEach(a,(function(t,n){r&&(e[n]=t),e.$scope.$resolve[n]=t}))}l.component?(p(u,!1,!0,!1),u.name=l.component,d.component=u):l.controller&&(p(c,!0,!1,!0),a=r(l.controller,c,!0,l.controllerAs),l.controllerAs&&l.bindToController&&((o=a.instance).$close=i.$close,o.$dismiss=i.$dismiss,angular.extend(o,{$resolve:c.$scope.$resolve},n)),o=a(),angular.isFunction(o.$onInit)&&o.$onInit()),l.component||(d.content=t[0]),s.open(b,d),f.resolve(!0)}),(function(t){f.reject(t),h.reject(t)})).finally((function(){d===p&&(d=null)})),b},l}]};return t})),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(t){return{create:function(e,n,i){e.setNumPages=i.numPages?t(i.numPages).assign:angular.noop,e.ngModelCtrl={$setViewValue:angular.noop},e._watchers=[],e.init=function(t,o){e.ngModelCtrl=t,e.config=o,t.$render=function(){e.render()},i.itemsPerPage?e._watchers.push(n.$parent.$watch(i.itemsPerPage,(function(t){e.itemsPerPage=parseInt(t,10),n.totalPages=e.calculateTotalPages(),e.updatePage()}))):e.itemsPerPage=o.itemsPerPage,n.$watch("totalItems",(function(t,i){(angular.isDefined(t)||t!==i)&&(n.totalPages=e.calculateTotalPages(),e.updatePage())}))},e.calculateTotalPages=function(){var t=e.itemsPerPage<1?1:Math.ceil(n.totalItems/e.itemsPerPage);return Math.max(t||0,1)},e.render=function(){n.page=parseInt(e.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(t,i){i&&i.preventDefault(),(!n.ngDisabled||!i)&&n.page!==t&&t>0&&t<=n.totalPages&&(i&&i.target&&i.target.blur(),e.ngModelCtrl.$setViewValue(t),e.ngModelCtrl.$render())},n.getText=function(t){return n[t+"Text"]||e.config[t+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},e.updatePage=function(){e.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):e.ngModelCtrl.$render()},n.$on("$destroy",(function(){for(;e._watchers.length;)e._watchers.shift()()}))}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(t,e,n,i){t.align=angular.isDefined(e.align)?t.$parent.$eval(e.align):i.align,n.create(this,t,e)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(t){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(t,e){return e.templateUrl||"uib/template/pager/pager.html"},link:function(e,n,i,o){n.addClass("pager");var r=o[0],a=o[1];a&&r.init(a,t)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(t,e,n,i,o){var r=this,a=angular.isDefined(e.maxSize)?t.$parent.$eval(e.maxSize):o.maxSize,s=angular.isDefined(e.rotate)?t.$parent.$eval(e.rotate):o.rotate,l=angular.isDefined(e.forceEllipses)?t.$parent.$eval(e.forceEllipses):o.forceEllipses,d=angular.isDefined(e.boundaryLinkNumbers)?t.$parent.$eval(e.boundaryLinkNumbers):o.boundaryLinkNumbers,u=angular.isDefined(e.pageLabel)?function(n){return t.$parent.$eval(e.pageLabel,{$page:n})}:angular.identity;function c(t,e,n){return{number:t,text:e,active:n}}t.boundaryLinks=angular.isDefined(e.boundaryLinks)?t.$parent.$eval(e.boundaryLinks):o.boundaryLinks,t.directionLinks=angular.isDefined(e.directionLinks)?t.$parent.$eval(e.directionLinks):o.directionLinks,e.$set("role","menu"),i.create(this,t,e),e.maxSize&&r._watchers.push(t.$parent.$watch(n(e.maxSize),(function(t){a=parseInt(t,10),r.render()})));var p=this.render;this.render=function(){p(),t.page>0&&t.page<=t.totalPages&&(t.pages=function(t,e){var n=[],i=1,o=e,r=angular.isDefined(a)&&ae&&(i=(o=e)-a+1):(i=(Math.ceil(t/a)-1)*a+1,o=Math.min(i+a-1,e)));for(var p=i;p<=o;p++){var h=c(p,u(p),p===t);n.push(h)}if(r&&a>0&&(!s||l||d)){if(i>1){if(!d||i>3){var f=c(i-1,"...",!1);n.unshift(f)}if(d){if(3===i){var g=c(2,"2",!1);n.unshift(g)}var m=c(1,"1",!1);n.unshift(m)}}if(o';return{compile:function(t,e){var n=o(v);return function(t,e,o,l){var c,g,m,b,v,$,y,x,w=!!angular.isDefined(h.appendToBody)&&h.appendToBody,k=f(void 0),_=angular.isDefined(o[d+"Enable"]),C=t.$new(!0),M=!1,S=!!angular.isDefined(o[d+"IsOpen"])&&u(o[d+"IsOpen"]),T=!!h.useContentExp&&u(o[i]),D=[],O=function(){c&&c.html()&&($||($=r((function(){var t=s.positionElements(e,c,C.placement,w),n=angular.isDefined(c.offsetHeight)?c.offsetHeight:c.prop("offsetHeight"),i=w?s.offset(e):s.position(e);c.css({top:t.top+"px",left:t.left+"px"});var o=t.placement.split("-");c.hasClass(o[0])||(c.removeClass(x.split("-")[0]),c.addClass(o[0])),c.hasClass(h.placementClassPrefix+t.placement)||(c.removeClass(h.placementClassPrefix+x),c.addClass(h.placementClassPrefix+t.placement)),y=r((function(){var t=angular.isDefined(c.offsetHeight)?c.offsetHeight:c.prop("offsetHeight"),e=s.adjustTop(o,i,n,t);e&&c.css(e),y=null}),0,!1),c.hasClass("uib-position-measure")?(s.positionArrow(c,t.placement),c.removeClass("uib-position-measure")):x!==t.placement&&s.positionArrow(c,t.placement),x=t.placement,$=null}),0,!1)))};function E(){C.isOpen?P():A()}function A(){_&&!t.$eval(o[d+"Enable"])||(j(),function(){C.title=o[d+"Title"],C.content=T?T(t):o[i],C.popupClass=o[d+"Class"],C.placement=angular.isDefined(o[d+"Placement"])?o[d+"Placement"]:h.placement;var e=s.parsePlacement(C.placement);x=e[1]?e[0]+"-"+e[1]:e[0];var n=parseInt(o[d+"PopupDelay"],10),r=parseInt(o[d+"PopupCloseDelay"],10);C.popupDelay=isNaN(n)?h.popupDelay:n,C.popupCloseDelay=isNaN(r)?h.popupCloseDelay:r}(),C.popupDelay?b||(b=r(L,C.popupDelay,!1)):L())}function P(){I(),C.popupCloseDelay?v||(v=r(N,C.popupCloseDelay,!1)):N()}function L(){if(I(),j(),!C.content)return angular.noop;c||(g=C.$new(),c=n(g,(function(t){w?a.find("body").append(t):e.after(t)})),p.add(C,{close:N}),D.length=0,T?(D.push(t.$watch(T,(function(t){C.content=t,!t&&C.isOpen&&N()}))),D.push(g.$watch((function(){M||(M=!0,g.$$postDigest((function(){M=!1,C&&C.isOpen&&O()})))})))):D.push(o.$observe(i,(function(t){C.content=t,!t&&C.isOpen?N():O()}))),D.push(o.$observe(d+"Title",(function(t){C.title=t,C.isOpen&&O()}))),D.push(o.$observe(d+"Placement",(function(t){C.placement=t||h.placement,C.isOpen&&O()})))),C.$evalAsync((function(){C.isOpen=!0,R(!0),O()}))}function I(){b&&(r.cancel(b),b=null),$&&(r.cancel($),$=null)}function N(){C&&C.$evalAsync((function(){C&&(C.isOpen=!1,R(!1),C.animation?m||(m=r(G,150,!1)):G())}))}function j(){v&&(r.cancel(v),v=null),m&&(r.cancel(m),m=null)}function G(){I(),j(),D.length&&(angular.forEach(D,(function(t){t()})),D.length=0),c&&(c.remove(),c=null,y&&r.cancel(y)),p.remove(C),g&&(g.$destroy(),g=null)}function R(e){S&&angular.isFunction(S.assign)&&S.assign(t,e)}function z(t){C&&C.isOpen&&c&&(e[0].contains(t.target)||c[0].contains(t.target)||P())}function B(t){27===t.which&&P()}C.origScope=t,C.isOpen=!1,C.contentExp=function(){return C.content},o.$observe("disabled",(function(t){t&&I(),t&&C.isOpen&&N()})),S&&t.$watch(S,(function(t){C&&!t===C.isOpen&&E()}));var U,F,V,H=function(){k.show.forEach((function(t){"outsideClick"===t?e.off("click",E):(e.off(t,A),e.off(t,E)),e.off("keypress",B)})),k.hide.forEach((function(t){"outsideClick"===t?a.off("click",z):e.off(t,P)}))};U=[],F=[],V=t.$eval(o[d+"Trigger"]),H(),angular.isObject(V)?(Object.keys(V).forEach((function(t){U.push(t),F.push(V[t])})),k={show:U,hide:F}):k=f(V),"none"!==k.show&&k.show.forEach((function(t,n){"outsideClick"===t?(e.on("click",E),a.on("click",z)):t===k.hide[n]?e.on(t,E):t&&(e.on(t,A),e.on(k.hide[n],P)),e.on("keypress",B)}));var q,W=t.$eval(o[d+"Animation"]);C.animation=angular.isDefined(W)?!!W:h.animation;var K=d+"AppendToBody";q=K in o&&void 0===o[K]||t.$eval(o[K]),w=angular.isDefined(q)?q:w,t.$on("$destroy",(function(){H(),G(),C=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(t,e,n,i){return{link:function(o,r,a){var s,l,d,u=o.$eval(a.tooltipTemplateTranscludeScope),c=0,p=function(){l&&(l.remove(),l=null),s&&(s.$destroy(),s=null),d&&(t.leave(d).then((function(){l=null})),l=d,d=null)};o.$watch(e.parseAsResourceUrl(a.uibTooltipTemplateTransclude),(function(e){var a=++c;e?(i(e,!0).then((function(i){if(a===c){var o=u.$new(),l=n(i)(o,(function(e){p(),t.enter(e,r)}));d=l,(s=o).$emit("$includeContentLoaded",e)}}),(function(){a===c&&(p(),o.$emit("$includeContentError",e))})),o.$emit("$includeContentRequested",e)):p()})),o.$on("$destroy",p)}}}]).directive("uibTooltipClasses",["$uibPosition",function(t){return{restrict:"A",link:function(e,n,i){if(e.placement){var o=t.parsePlacement(e.placement);n.addClass(o[0])}e.popupClass&&n.addClass(e.popupClass),e.animation&&n.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",(function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}})).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",(function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}})).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",(function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}})).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",(function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}})).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",(function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}})).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",(function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}})).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(t,e,n){var i=this,o=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;function r(){return angular.isDefined(t.maxParam)?t.maxParam:n.max}this.bars=[],t.max=r(),this.addBar=function(t,e,n){o||e.css({transition:"none"}),this.bars.push(t),t.max=r(),t.title=n&&angular.isDefined(n.title)?n.title:"progressbar",t.$watch("value",(function(e){t.recalculatePercentage()})),t.recalculatePercentage=function(){var e=i.bars.reduce((function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent}),0);e>100&&(t.percent-=e-100)},t.$on("$destroy",(function(){e=null,i.removeBar(t)}))},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1),this.bars.forEach((function(t){t.recalculatePercentage()}))},t.$watch("maxParam",(function(t){i.bars.forEach((function(t){t.max=r(),t.recalculatePercentage()}))}))}]).directive("uibProgress",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}})).directive("uibBar",(function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e,n)}}})).directive("uibProgressbar",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]),{title:n.title})}}})),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(t,e,n){var i={$setViewValue:angular.noop},o=this;this.init=function(o){(i=o).$render=this.render,i.$formatters.push((function(t){return angular.isNumber(t)&&t<<0!==t&&(t=Math.round(t)),t})),this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):n.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):n.stateOff,this.enableReset=angular.isDefined(e.enableReset)?t.$parent.$eval(e.enableReset):n.enableReset;var r=angular.isDefined(e.titles)?t.$parent.$eval(e.titles):n.titles;this.titles=angular.isArray(r)&&r.length>0?r:n.titles;var a=angular.isDefined(e.ratingStates)?t.$parent.$eval(e.ratingStates):new Array(angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max);t.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;e=this.titles.length?t+1:this.titles[t]},t.rate=function(e){if(!t.readonly&&e>=0&&e<=t.range.length){var n=o.enableReset&&i.$viewValue===e?0:e;i.$setViewValue(n),i.$render()}},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=i.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=i.$viewValue,t.title=o.getTitle(t.value-1)}}]).directive("uibRating",(function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(t,e,n,i){var o=i[0],r=i[1];o.init(r)}}})),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var e,n,i=this;function o(t){for(var e=0;ee.index?1:t.indexb||tu&&t>b},t.noIncrementMinutes=function(){var t=T(u,v);return $||t>b||tu&&t>b},t.noIncrementSeconds=function(){var t=D(u,y);return $||t>b||tu&&t>b},t.noToggleMeridian=function(){return u.getHours()<12?$||T(u,720)>b:$||T(u,-720)0&&e<13:e>=0&&e<24)&&""!==t.hours)return t.showMeridian&&(12===e&&(e=0),t.meridian===h[1]&&(e+=12)),e}function w(){var e=+t.minutes;if(e>=0&&e<60&&""!==t.minutes)return e}function k(t,e){return null===t?"":angular.isDefined(t)&&t.toString().length<2&&!e?"0"+t:t.toString()}function _(t){C(),p.$setViewValue(new Date(u)),M(t)}function C(){s&&s.$setValidity("hours",!0),l&&l.$setValidity("minutes",!0),d&&d.$setValidity("seconds",!0),p.$setValidity("time",!0),t.invalidHours=!1,t.invalidMinutes=!1,t.invalidSeconds=!1}function M(e){if(p.$modelValue){var n=u.getHours(),i=u.getMinutes(),o=u.getSeconds();t.showMeridian&&(n=0===n||12===n?12:n%12),t.hours="h"===e?n:k(n,!f),"m"!==e&&(t.minutes=k(i)),t.meridian=u.getHours()<12?h[0]:h[1],"s"!==e&&(t.seconds=k(o)),t.meridian=u.getHours()<12?h[0]:h[1]}else t.hours=null,t.minutes=null,t.seconds=null,t.meridian=h[0]}function S(t){u=D(u,t),_()}function T(t,e){return D(t,60*e)}function D(t,e){var n=new Date(t.getTime()+1e3*e),i=new Date(t);return i.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),i}function O(){return(null===t.hours||""===t.hours)&&(null===t.minutes||""===t.minutes)&&(!t.showSeconds||t.showSeconds&&(null===t.seconds||""===t.seconds))}n.secondStep&&c.push(t.$parent.$watch(i(n.secondStep),(function(t){y=+t}))),t.showSeconds=a.showSeconds,n.showSeconds&&c.push(t.$parent.$watch(i(n.showSeconds),(function(e){t.showSeconds=!!e}))),t.showMeridian=a.showMeridian,n.showMeridian&&c.push(t.$parent.$watch(i(n.showMeridian),(function(e){if(t.showMeridian=!!e,p.$error.time){var n=x(),i=w();angular.isDefined(n)&&angular.isDefined(i)&&(u.setHours(n),_())}else M()}))),this.setupMousewheelEvents=function(e,n,i){var o=function(t){t.originalEvent&&(t=t.originalEvent);var e=t.wheelDelta?t.wheelDelta:-t.deltaY;return t.detail||e>0};e.on("mousewheel wheel",(function(e){$||t.$apply(o(e)?t.incrementHours():t.decrementHours()),e.preventDefault()})),n.on("mousewheel wheel",(function(e){$||t.$apply(o(e)?t.incrementMinutes():t.decrementMinutes()),e.preventDefault()})),i.on("mousewheel wheel",(function(e){$||t.$apply(o(e)?t.incrementSeconds():t.decrementSeconds()),e.preventDefault()}))},this.setupArrowkeyEvents=function(e,n,i){e.on("keydown",(function(e){$||(38===e.which?(e.preventDefault(),t.incrementHours(),t.$apply()):40===e.which&&(e.preventDefault(),t.decrementHours(),t.$apply()))})),n.on("keydown",(function(e){$||(38===e.which?(e.preventDefault(),t.incrementMinutes(),t.$apply()):40===e.which&&(e.preventDefault(),t.decrementMinutes(),t.$apply()))})),i.on("keydown",(function(e){$||(38===e.which?(e.preventDefault(),t.incrementSeconds(),t.$apply()):40===e.which&&(e.preventDefault(),t.decrementSeconds(),t.$apply()))}))},this.setupInputEvents=function(e,n,i){if(t.readonlyInput)return t.updateHours=angular.noop,t.updateMinutes=angular.noop,void(t.updateSeconds=angular.noop);var o=function(e,n,i){p.$setViewValue(null),p.$setValidity("time",!1),angular.isDefined(e)&&(t.invalidHours=e,s&&s.$setValidity("hours",!1)),angular.isDefined(n)&&(t.invalidMinutes=n,l&&l.$setValidity("minutes",!1)),angular.isDefined(i)&&(t.invalidSeconds=i,d&&d.$setValidity("seconds",!1))};t.updateHours=function(){var t=x(),e=w();p.$setDirty(),angular.isDefined(t)&&angular.isDefined(e)?(u.setHours(t),u.setMinutes(e),ub?o(!0):_("h")):o(!0)},e.on("blur",(function(e){p.$setTouched(),O()?C():null===t.hours||""===t.hours?o(!0):!t.invalidHours&&t.hours<10&&t.$apply((function(){t.hours=k(t.hours,!f)}))})),t.updateMinutes=function(){var t=w(),e=x();p.$setDirty(),angular.isDefined(t)&&angular.isDefined(e)?(u.setHours(e),u.setMinutes(t),ub?o(void 0,!0):_("m")):o(void 0,!0)},n.on("blur",(function(e){p.$setTouched(),O()?C():null===t.minutes?o(void 0,!0):!t.invalidMinutes&&t.minutes<10&&t.$apply((function(){t.minutes=k(t.minutes)}))})),t.updateSeconds=function(){var e=function(){var e=+t.seconds;return e>=0&&e<60?e:void 0}();p.$setDirty(),angular.isDefined(e)?(u.setSeconds(e),_("s")):o(void 0,void 0,!0)},i.on("blur",(function(e){O()?C():!t.invalidSeconds&&t.seconds<10&&t.$apply((function(){t.seconds=k(t.seconds)}))}))},this.render=function(){var e=p.$viewValue;isNaN(e)?(p.$setValidity("time",!1),o.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(u=e),ub?(p.$setValidity("time",!1),t.invalidHours=!0,t.invalidMinutes=!0):C(),M())},t.showSpinners=angular.isDefined(n.showSpinners)?t.$parent.$eval(n.showSpinners):a.showSpinners,t.incrementHours=function(){t.noIncrementHours()||S(60*g*60)},t.decrementHours=function(){t.noDecrementHours()||S(60*-g*60)},t.incrementMinutes=function(){t.noIncrementMinutes()||S(60*v)},t.decrementMinutes=function(){t.noDecrementMinutes()||S(60*-v)},t.incrementSeconds=function(){t.noIncrementSeconds()||S(y)},t.decrementSeconds=function(){t.noDecrementSeconds()||S(-y)},t.toggleMeridian=function(){var e=w(),n=x();t.noToggleMeridian()||(angular.isDefined(e)&&angular.isDefined(n)?S(720*(u.getHours()<12?60:-60)):t.meridian=t.meridian===h[0]?h[1]:h[0])},t.blur=function(){p.$setTouched()},t.$on("$destroy",(function(){for(;c.length;)c.shift()()}))}]).directive("uibTimepicker",["uibTimepickerConfig",function(t){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(e,n){return n.templateUrl||t.templateUrl},link:function(t,e,n,i){var o=i[0],r=i[1];r&&o.init(r,e.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(t,e,n,i,o,r,a,s,l,d,u,c,p){var h,f,g=[9,13,27,38,40],m=t.$eval(n.typeaheadMinLength);m||0===m||(m=1),t.$watch(n.typeaheadMinLength,(function(t){m=t||0===t?t:1}));var b=t.$eval(n.typeaheadWaitMs)||0,v=!1!==t.$eval(n.typeaheadEditable);t.$watch(n.typeaheadEditable,(function(t){v=!1!==t}));var $,y,x=o(n.typeaheadLoading).assign||angular.noop,w=n.typeaheadShouldSelect?o(n.typeaheadShouldSelect):function(t,e){var n=e.$event;return 13===n.which||9===n.which},k=o(n.typeaheadOnSelect),_=!!angular.isDefined(n.typeaheadSelectOnBlur)&&t.$eval(n.typeaheadSelectOnBlur),C=o(n.typeaheadNoResults).assign||angular.noop,M=n.typeaheadInputFormatter?o(n.typeaheadInputFormatter):void 0,S=!!n.typeaheadAppendToBody&&t.$eval(n.typeaheadAppendToBody),T=n.typeaheadAppendTo?t.$eval(n.typeaheadAppendTo):null,D=!1!==t.$eval(n.typeaheadFocusFirst),O=!!n.typeaheadSelectOnExact&&t.$eval(n.typeaheadSelectOnExact),E=o(n.typeaheadIsOpen).assign||angular.noop,A=t.$eval(n.typeaheadShowHint)||!1,P=o(n.ngModel),L=o(n.ngModel+"($$$p)"),I=p.parse(n.uibTypeahead),N=t.$new(),j=t.$on("$destroy",(function(){N.$destroy()}));N.$on("$destroy",j);var G,R,z="typeahead-"+N.$id+"-"+Math.floor(1e4*Math.random());e.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":z}),A&&((G=angular.element("
")).css("position","relative"),e.after(G),(R=e.clone()).attr("placeholder",""),R.attr("tabindex","-1"),R.val(""),R.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),e.css({position:"relative","vertical-align":"top","background-color":"transparent"}),R.attr("id")&&R.removeAttr("id"),G.append(R),R.after(e));var B=angular.element("
");B.attr({id:z,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(n.typeaheadTemplateUrl)&&B.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&B.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var U=function(){N.matches=[],N.activeIdx=-1,e.attr("aria-expanded",!1),A&&R.val("")},F=function(t){return z+"-option-"+t};N.$watch("activeIdx",(function(t){t<0?e.removeAttr("aria-activedescendant"):e.attr("aria-activedescendant",F(t))}));var V=function(n,i){var o={$viewValue:n};x(t,!0),C(t,!1),r.when(I.source(t,o)).then((function(r){var a=n===h.$viewValue;if(a&&$)if(r&&r.length>0){N.activeIdx=D?0:-1,C(t,!1),N.matches.length=0;for(var s=0;s0&&t)&&t.toUpperCase()===N.matches[0].label.toUpperCase()}(n)&&(angular.isNumber(N.debounceUpdate)||angular.isObject(N.debounceUpdate)?u((function(){N.select(0,i)}),angular.isNumber(N.debounceUpdate)?N.debounceUpdate:N.debounceUpdate.default):N.select(0,i)),A){var l=N.matches[0].label;angular.isString(n)&&n.length>0&&l.slice(0,n.length).toUpperCase()===n.toUpperCase()?R.val(n+l.slice(n.length)):R.val("")}}else U(),C(t,!0);a&&x(t,!1)}),(function(){U(),x(t,!1),C(t,!0)}))};S&&(angular.element(l).on("resize",W),s.find("body").on("scroll",W));var H,q=u((function(){N.matches.length&&K(),N.moveInProgress=!1}),200);function W(){N.moveInProgress||(N.moveInProgress=!0,N.$digest()),q()}function K(){N.position=S?c.offset(e):c.position(e),N.position.top+=e.prop("offsetHeight")}N.moveInProgress=!1,N.query=void 0;var Z=function(){H&&a.cancel(H)};U(),N.assignIsOpen=function(e){E(t,e)},N.select=function(i,o){var r,s,l={};y=!0,l[I.itemName]=s=N.matches[i].model,r=I.modelMapper(t,l),function(e,n){angular.isFunction(P(t))&&f.getOption("getterSetter")?L(e,{$$$p:n}):P.assign(e,n)}(t,r),h.$setValidity("editable",!0),h.$setValidity("parse",!0),k(t,{$item:s,$model:r,$label:I.viewMapper(t,l),$event:o}),U(),!1!==N.$eval(n.typeaheadFocusOnSelect)&&a((function(){e[0].focus()}),0,!1)},e.on("keydown",(function(e){if(0!==N.matches.length&&-1!==g.indexOf(e.which)){var n,i=w(t,{$event:e});if(-1===N.activeIdx&&i||9===e.which&&e.shiftKey)return U(),void N.$digest();switch(e.preventDefault(),e.which){case 27:e.stopPropagation(),U(),t.$digest();break;case 38:N.activeIdx=(N.activeIdx>0?N.activeIdx:N.matches.length)-1,N.$digest(),(n=B[0].querySelectorAll(".uib-typeahead-match")[N.activeIdx]).parentNode.scrollTop=n.offsetTop;break;case 40:N.activeIdx=(N.activeIdx+1)%N.matches.length,N.$digest(),(n=B[0].querySelectorAll(".uib-typeahead-match")[N.activeIdx]).parentNode.scrollTop=n.offsetTop;break;default:i&&N.$apply((function(){angular.isNumber(N.debounceUpdate)||angular.isObject(N.debounceUpdate)?u((function(){N.select(N.activeIdx,e)}),angular.isNumber(N.debounceUpdate)?N.debounceUpdate:N.debounceUpdate.default):N.select(N.activeIdx,e)}))}}})),e.on("focus",(function(t){$=!0,0!==m||h.$viewValue||a((function(){V(h.$viewValue,t)}),0)})),e.on("blur",(function(t){_&&N.matches.length&&-1!==N.activeIdx&&!y&&(y=!0,N.$apply((function(){angular.isObject(N.debounceUpdate)&&angular.isNumber(N.debounceUpdate.blur)?u((function(){N.select(N.activeIdx,t)}),N.debounceUpdate.blur):N.select(N.activeIdx,t)}))),!v&&h.$error.editable&&(h.$setViewValue(),N.$apply((function(){h.$setValidity("editable",!0),h.$setValidity("parse",!0)})),e.val("")),$=!1,y=!1}));var Y=function(n){e[0]!==n.target&&3!==n.which&&0!==N.matches.length&&(U(),d.$$phase||t.$digest())};s.on("click",Y),t.$on("$destroy",(function(){s.off("click",Y),(S||T)&&J.remove(),S&&(angular.element(l).off("resize",W),s.find("body").off("scroll",W)),B.remove(),A&&G.remove()}));var J=i(B)(N);S?s.find("body").append(J):T?angular.element(T).eq(0).append(J):e.after(J),this.init=function(e){f=function(t){var e;return angular.version.minor<6?(e=t.$options||{}).getOption=function(t){return e[t]}:e=t.$options,e}(h=e),N.debounceUpdate=o(f.getOption("debounce"))(t),h.$parsers.unshift((function(e){return $=!0,0===m||e&&e.length>=m?b>0?(Z(),function(t){H=a((function(){V(t)}),b)}(e)):V(e):(x(t,!1),Z(),U()),v?e:e?void h.$setValidity("editable",!1):(h.$setValidity("editable",!0),null)})),h.$formatters.push((function(e){var n,i={};return v||h.$setValidity("editable",!0),M?(i.$model=e,M(t,i)):(i[I.itemName]=e,n=I.viewMapper(t,i),i[I.itemName]=void 0,n!==I.viewMapper(t,i)?n:e)}))}}]).directive("uibTypeahead",(function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(t,e,n,i){i[1].init(i[0])}}})).directive("uibTypeaheadPopup",["$$debounce",function(t){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(e,n,i){e.templateUrl=i.templateUrl,e.isOpen=function(){var t=e.matches.length>0;return e.assignIsOpen({isOpen:t}),t},e.isActive=function(t){return e.active===t},e.selectActive=function(t){e.active=t},e.selectMatch=function(n,i){var o=e.debounce();angular.isNumber(o)||angular.isObject(o)?t((function(){e.select({activeIdx:n,evt:i})}),angular.isNumber(o)?o:o.default):e.select({activeIdx:n,evt:i})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(t,e,n){return{scope:{index:"=",match:"=",query:"="},link:function(i,o,r){var a=n(r.templateUrl)(i.$parent)||"uib/template/typeahead/typeahead-match.html";t(a).then((function(t){var n=angular.element(t.trim());o.replaceWith(n),e(n)(i)}))}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(t,e,n){var i;return i=e.has("$sanitize"),function(e,o){return!i&&function(t){return/<.*>/g.test(t)}(e)&&n.warn("Unsafe use of typeahead please use ngSanitize"),e=o?(""+e).replace(new RegExp(o.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"$&"):e,i||(e=t.trustAsHtml(e)),e}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion-group.html",'\n
\n
\n
\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion.html",'
')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("uib/template/alert/alert.html",'\n
\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/carousel.html",'\n\n \n previous\n\n\n \n next\n\n\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/slide.html",'
\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/datepicker.html",'
\n
\n
\n
\n
\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/day.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{::label.abbr}}
{{ weekNumbers[$index] }}\n \n
\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/month.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/year.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepickerPopup/popup.html",'\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html","
\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(t){t.put("uib/template/pager/pager.html",'
  • {{::getText(\'previous\')}}
  • \n
  • {{::getText(\'next\')}}
  • \n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("uib/template/pagination/pagination.html",'\n\n\n\n\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'
    \n
    \n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'
    \n
    \n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'
    \n
    \n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-html.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-template.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/bar.html",'
    \n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progress.html",'
    ')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progressbar.html",'
    \n
    \n
    \n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("uib/template/rating/rating.html",'\n ({{ $index < value ? \'*\' : \' \' }})\n \n\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tab.html",'\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tabset.html",'
    \n \n
    \n
    \n
    \n
    \n
    \n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/timepicker/timepicker.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
      
    \n \n :\n \n :\n \n
      
    \n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-match.html",'\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-popup.html",'\n')}]),angular.module("ui.bootstrap.carousel").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend(''),angular.$$uibCarouselCss=!0})),angular.module("ui.bootstrap.datepicker").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerCss=!0})),angular.module("ui.bootstrap.position").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend(''),angular.$$uibPositionCss=!0})),angular.module("ui.bootstrap.datepickerPopup").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerpopupCss=!0})),angular.module("ui.bootstrap.tooltip").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend(''),angular.$$uibTooltipCss=!0})),angular.module("ui.bootstrap.timepicker").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibTimepickerCss=!0})),angular.module("ui.bootstrap.typeahead").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend(''),angular.$$uibTypeaheadCss=!0}))},48362:(t,e,n)=>{n(6700),t.exports="ui.bootstrap"},29651:(t,e,n)=>{"use strict";var i=n(66695),o=angular,r=i&&i.module?i:o,a=n(69875),s=function(t,e){return t.reduce((function(t,n){return t||(0,a.isDefined)(e[n])}),!1)};function l(t){if(!t.parent)return{};var e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=e.concat(n);if((0,a.isDefined)(t.views)&&s(i,t))throw new Error("State '"+t.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level. Move the following properties into a view (in the 'views' object): "+i.filter((function(e){return(0,a.isDefined)(t[e])})).join(", "));var o={},r=t.views||{$default:(0,a.pick)(t,i)};return(0,a.forEach)(r,(function(i,r){if(r=r||"$default",(0,a.isString)(i)&&(i={component:i}),i=(0,a.extend)({},i),s(e,i)&&s(n,i))throw new Error("Cannot combine: "+e.join("|")+" with: "+n.join("|")+" in stateview: '"+r+"@"+t.name+"'");i.resolveAs=i.resolveAs||"$resolve",i.$type="ng1",i.$context=t,i.$name=r;var l=a.ViewService.normalizeUIViewTarget(i.$context,i.$name);i.$uiViewName=l.uiViewName,i.$uiViewContextAnchor=l.uiViewContextAnchor,o[r]=i})),o}var d=0,u=function(){function t(t,e,n){var i=this;this.path=t,this.viewDecl=e,this.factory=n,this.$id=d++,this.loaded=!1,this.getTemplate=function(t,e){return i.component?i.factory.makeComponentTemplate(t,e,i.component,i.viewDecl.bindings):i.template}}return t.prototype.load=function(){var t=this,e=a.services.$q,n=new a.ResolveContext(this.path),i=this.path.reduce((function(t,e){return(0,a.extend)(t,e.paramValues)}),{}),o={template:e.when(this.factory.fromConfig(this.viewDecl,i,n)),controller:e.when(this.getController(n))};return e.all(o).then((function(e){return a.trace.traceViewServiceEvent("Loaded",t),t.controller=e.controller,(0,a.extend)(t,e.template),t}))},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!(0,a.isInjectable)(e))return this.viewDecl.controller;var n=a.services.$injector.annotate(e),i=(0,a.isArray)(e)?(0,a.tail)(e):e;return new a.Resolvable("",i,n).get(t)},t}(),c=function(){function t(){var t=this;this._useHttp=r.version.minor<3,this.$get=["$http","$templateCache","$injector",function(e,n,i){return t.$templateRequest=i.has&&i.has("$templateRequest")&&i.get("$templateRequest"),t.$http=e,t.$templateCache=n,t}]}return t.prototype.useHttpService=function(t){this._useHttp=t},t.prototype.fromConfig=function(t,e,n){var i=function(t){return a.services.$q.when(t).then((function(t){return{template:t}}))},o=function(t){return a.services.$q.when(t).then((function(t){return{component:t}}))};return(0,a.isDefined)(t.template)?i(this.fromString(t.template,e)):(0,a.isDefined)(t.templateUrl)?i(this.fromUrl(t.templateUrl,e)):(0,a.isDefined)(t.templateProvider)?i(this.fromProvider(t.templateProvider,e,n)):(0,a.isDefined)(t.component)?o(t.component):(0,a.isDefined)(t.componentProvider)?o(this.fromComponentProvider(t.componentProvider,e,n)):i("")},t.prototype.fromString=function(t,e){return(0,a.isFunction)(t)?t(e):t},t.prototype.fromUrl=function(t,e){return(0,a.isFunction)(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)},t.prototype.fromProvider=function(t,e,n){var i=a.services.$injector.annotate(t),o=(0,a.isArray)(t)?(0,a.tail)(t):t;return new a.Resolvable("",o,i).get(n)},t.prototype.fromComponentProvider=function(t,e,n){var i=a.services.$injector.annotate(t),o=(0,a.isArray)(t)?(0,a.tail)(t):t;return new a.Resolvable("",o,i).get(n)},t.prototype.makeComponentTemplate=function(t,e,n,i){i=i||{};var o=r.version.minor>=3?"::":"",s=function(t){var e=(0,a.kebobString)(t);return/^(x|data)-/.exec(e)?"x-"+e:e},l=function(t){var e=a.services.$injector.get(t+"Directive");if(!e||!e.length)throw new Error("Unable to find component named '"+t+"'");return e.map(p).reduce(a.unnestR,[])}(n).map((function(n){var r=n.name,l=n.type,d=s(r);if(t.attr(d)&&!i[r])return d+"='"+t.attr(d)+"'";var u=i[r]||r;if("@"===l)return d+"='{{"+o+"$resolve."+u+"}}'";if("&"===l){var c=e.getResolvable(u),p=c&&c.data,h=p&&a.services.$injector.annotate(p)||[];return d+"='$resolve."+u+((0,a.isArray)(p)?"["+(p.length-1)+"]":"")+"("+h.join(",")+")'"}return d+"='"+o+"$resolve."+u+"'"})).join(" "),d=s(n);return"<"+d+" "+l+">"},t}(),p=function(t){return(0,a.isObject)(t.bindToController)?h(t.bindToController):h(t.scope)},h=function(t){return Object.keys(t||{}).map((function(e){return[e,/^([=<@&])[?]?(.*)/.exec(t[e])]})).filter((function(t){return(0,a.isDefined)(t)&&(0,a.isArray)(t[1])})).map((function(t){return{name:t[1][2]||t[0],type:t[1][1]}}))},f=function(){function t(e,n){this.stateRegistry=e,this.stateService=n,(0,a.createProxyFunctions)((0,a.val)(t.prototype),this,(0,a.val)(this))}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return(0,a.isObject)(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},t}(),g=function(t){return function(e){var n=e[t],i="onExit"===t?"from":"to";return n?function(t,e){var o=new a.ResolveContext(t.treeChanges(i)).subContext(e.$$state()),r=(0,a.extend)(A(o),{$state$:e,$transition$:t});return a.services.$injector.invoke(n,this,r)}:void 0}},m=function(){function t(t){this._urlListeners=[],this.$locationProvider=t;var e=(0,a.val)(t);(0,a.createProxyFunctions)(e,this,e,["hashPrefix"])}return t.monkeyPatchPathParameterType=function(t){var e=t.urlMatcherFactory.type("path");e.encode=function(t){return null!=t?t.toString().replace(/(~|\/)/g,(function(t){return{"~":"~~","/":"~2F"}[t]})):t},e.decode=function(t){return null!=t?t.toString().replace(/(~~|~2F)/g,(function(t){return{"~~":"~","~2F":"/"}[t]})):t}},t.prototype.dispose=function(){},t.prototype.onChange=function(t){var e=this;return this._urlListeners.push(t),function(){return(0,a.removeFrom)(e._urlListeners)(t)}},t.prototype.html5Mode=function(){var t=this.$locationProvider.html5Mode();return(t=(0,a.isObject)(t)?t.enabled:t)&&this.$sniffer.history},t.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},t.prototype.url=function(t,e,n){return void 0===e&&(e=!1),(0,a.isDefined)(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},t.prototype._runtimeServices=function(t,e,n,i,o){var r=this;this.$location=e,this.$sniffer=n,this.$browser=i,this.$window=o,t.$on("$locationChangeSuccess",(function(t){return r._urlListeners.forEach((function(e){return e(t)}))}));var s=(0,a.val)(e);(0,a.createProxyFunctions)(s,this,s,["replace","path","search","hash"]),(0,a.createProxyFunctions)(s,this,s,["port","protocol","host"])},t}(),b=function(){function t(t){this.router=t}return t.injectableHandler=function(t,e){return function(n){return a.services.$injector.invoke(e,null,{$match:n,$stateParams:t.globals.params})}},t.prototype.$get=function(){var t=this.router.urlService;return this.router.urlRouter.update(!0),t.interceptDeferred||t.listen(),this.router.urlRouter},t.prototype.rule=function(t){var e=this;if(!(0,a.isFunction)(t))throw new Error("'rule' must be a function");var n=new a.BaseUrlRule((function(){return t(a.services.$injector,e.router.locationService)}),a.identity);return this.router.urlService.rules.rule(n),this},t.prototype.otherwise=function(t){var e=this,n=this.router.urlService.rules;if((0,a.isString)(t))n.otherwise(t);else{if(!(0,a.isFunction)(t))throw new Error("'rule' must be a string or function");n.otherwise((function(){return t(a.services.$injector,e.router.locationService)}))}return this},t.prototype.when=function(e,n){return((0,a.isArray)(n)||(0,a.isFunction)(n))&&(n=t.injectableHandler(this.router,n)),this.router.urlService.rules.when(e,n),this},t.prototype.deferIntercept=function(t){this.router.urlService.deferIntercept(t)},t}();r.module("ui.router.angular1",[]);var v=r.module("ui.router.init",["ng"]),$=r.module("ui.router.util",["ui.router.init"]),y=r.module("ui.router.router",["ui.router.util"]),x=r.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),w=r.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),k=(r.module("ui.router.compat",["ui.router"]),null);function _(t){var e;(k=this.router=new a.UIRouter).stateProvider=new f(k.stateRegistry,k.stateService),k.stateRegistry.decorator("views",l),k.stateRegistry.decorator("onExit",g("onExit")),k.stateRegistry.decorator("onRetain",g("onRetain")),k.stateRegistry.decorator("onEnter",g("onEnter")),k.viewService._pluginapi._viewConfigFactory("ng1",(e=null,function(t,n){return e=e||a.services.$injector.get("$templateFactory"),[new u(t,n,e)]})),k.urlService.config._decodeParams=!1;var n=k.locationService=k.locationConfig=new m(t);function i(t,e,i,o,r,a,s){return n._runtimeServices(r,t,o,e,i),delete k.router,delete k.$get,k}return m.monkeyPatchPathParameterType(k),k.router=k,k.$get=i,i.$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],k}_.$inject=["$locationProvider"];var C=function(t){return["$uiRouterProvider",function(e){var n=e.router[t];return n.$get=function(){return n},n}]};function M(t,e,n){if(a.services.$injector=t,a.services.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((function(t){}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.stateRegistry.get().map((function(t){return t.$$state().resolvables})).reduce(a.unnestR,[]).filter((function(t){return"deferred"===t.deps})).forEach((function(e){return e.deps=t.annotate(e.resolveFn,t.strictDi)}))}function S(t){t.$watch((function(){a.trace.approximateDigests++}))}M.$inject=["$injector","$q","$uiRouter"],S.$inject=["$rootScope"],v.provider("$uiRouter",_),y.provider("$urlRouter",["$uiRouterProvider",function(t){return t.urlRouterProvider=new b(t)}]),$.provider("$urlService",C("urlService")),$.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return k.urlMatcherFactory}]),$.provider("$templateFactory",(function(){return new c})),x.provider("$stateRegistry",C("stateRegistry")),x.provider("$uiRouterGlobals",C("globals")),x.provider("$transitions",C("transitionService")),x.provider("$state",["$uiRouterProvider",function(){return(0,a.extend)(k.stateProvider,{$get:function(){return k.stateService}})}]),x.factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]),w.factory("$view",(function(){return k.viewService})),w.service("$trace",(function(){return a.trace})),w.run(S),$.run(["$urlMatcherFactory",function(t){}]),x.run(["$state",function(t){}]),y.run(["$urlRouter",function(t){}]),v.run(M);var T,D,O,E,A=function(t){return t.getTokens().filter(a.isString).map((function(e){var n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(a.applyPairs,{})};function P(t){var e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");var n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function L(t){var e=t.parent().inheritedData("$uiView"),n=(0,a.parse)("$cfg.path")(e);return n?(0,a.tail)(n).state.name:void 0}function I(t,e,n){var i=n.uiState||t.current.name,o=(0,a.extend)(function(t,e){return{relative:L(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.uiStateOpts||{}),r=t.href(i,n.uiStateParams,o);return{uiState:i,uiStateParams:n.uiStateParams,uiStateOpts:o,href:r}}function N(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function j(t,e,n,i,o){return function(r){var a=r.which||r.button,s=o();if(!(a>1||r.ctrlKey||r.metaKey||r.shiftKey||r.altKey||t.attr("target"))){var l=n((function(){t.attr("disabled")||e.go(s.uiState,s.uiStateParams,s.uiStateOpts)}));r.preventDefault();var d=i.isAnchor&&!s.href?1:0;r.preventDefault=function(){d--<=0&&n.cancel(l)}}}}function G(t,e,n,i){var o;i&&(o=i.events),(0,a.isArray)(o)||(o=["click"]);for(var r=t.on?"on":"bind",s=0,l=o;s0)){var n=g(t,e,l);return m(),n}},e.$on("$destroy",(d=i.stateRegistry.onStatesChanged((function(){f(l)})),u=i.transitionService.onStart({},h),c=e.$on("$stateChangeSuccess",m),function(){d(),u(),c()})),i.globals.transition&&h(i.globals.transition),m()}]}}],r.module("ui.router.state").directive("uiSref",T).directive("uiSrefActive",O).directive("uiSrefActiveEq",O).directive("uiState",D),R.$inject=["$state"],z.$inject=["$state"],r.module("ui.router.state").filter("isState",R).filter("includedByState",z),E=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,i,o){var s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},l={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(d,c,p){return function(d,c,h){var f,g,m,b,v=h.onload||"",$=h.autoscroll,y=function(t,n,i){r.version.minor>2?e.enter(t,null,n).then(i):e.enter(t,null,n,i)},x=function(t,n){r.version.minor>2?e.leave(t).then(n):e.leave(t,n)},w=c.inheritedData("$uiView")||s,k=i(h.uiView||h.name||"")(d)||"$default",_={$type:"ng1",id:l.count++,name:k,fqn:w.$uiView.fqn?w.$uiView.fqn+"."+k:k,config:null,configUpdated:function(t){(!t||t instanceof u)&&(b!==t&&(a.trace.traceUIViewConfigUpdated(_,t&&t.viewDecl&&t.viewDecl.$context),b=t,M(t)))},get creationContext(){var t=(0,a.parse)("$cfg.viewDecl.$context")(w),e=(0,a.parse)("$uiView.creationContext")(w);return t||e}};a.trace.traceUIViewEvent("Linking",_),c.data("$uiView",{$uiView:_}),M();var C=t.registerUIView(_);function M(t){var e=d.$new(),i=o.defer(),r=o.defer(),s={$cfg:t,$uiView:_},l={$animEnter:i.promise,$animLeave:r.promise,$$animLeave:r};e.$emit("$viewContentLoading",k);var u=p(e,(function(t){t.data("$uiViewAnim",l),t.data("$uiView",s),y(t,c,(function(){i.resolve(),m&&m.$emit("$viewContentAnimationEnded"),((0,a.isDefined)($)&&!$||d.$eval($))&&n(t)})),function(){if(f&&(a.trace.traceUIViewEvent("Removing (previous) el",f.data("$uiView")),f.remove(),f=null),m&&(a.trace.traceUIViewEvent("Destroying scope",_),m.$destroy(),m=null),g){var t=g.data("$uiViewAnim");a.trace.traceUIViewEvent("Animate out",t),x(g,(function(){t.$$animLeave.resolve(),f=null})),f=g,g=null}}()}));g=u,(m=e).$emit("$viewContentLoaded",t||b),m.$eval(v)}d.$on("$destroy",(function(){a.trace.traceUIViewEvent("Destroying/Unregistering",_),C()}))}}};return l}],B.$inject=["$compile","$controller","$transitions","$view","$q"];var U="function"==typeof r.module("ui.router").component,F=0;function V(t,e,n,i,o){!(0,a.isFunction)(n.$onInit)||(o.viewDecl.component||o.viewDecl.componentProvider)&&U||n.$onInit();var r=(0,a.tail)(o.path).state.self,s={bind:n};if((0,a.isFunction)(n.uiOnParamsChanged)){var l=new a.ResolveContext(o.path).getResolvable("$transition$").data;i.$on("$destroy",e.onSuccess({},(function(t){if(t!==l&&-1===t.exiting().indexOf(r)){var e=t.params("to"),i=t.params("from"),o=function(t){return t.paramSchema},s=t.treeChanges("to").map(o).reduce(a.unnestR,[]),d=t.treeChanges("from").map(o).reduce(a.unnestR,[]),u=s.filter((function(t){var n=d.indexOf(t);return-1===n||!d[n].type.equals(e[t.id],i[t.id])}));if(u.length){var c=u.map((function(t){return t.id})),p=(0,a.filter)(e,(function(t,e){return-1!==c.indexOf(e)}));n.uiOnParamsChanged(p,t)}}}),s))}if((0,a.isFunction)(n.uiCanExit)){var d=F++,u="_uiCanExitIds",c=function(t){return!!t&&(t[u]&&!0===t[u][d]||c(t.redirectedFrom()))},p={exiting:r.name};i.$on("$destroy",e.onBefore(p,(function(e){var i,o=e[u]=e[u]||{};return c(e)||(i=t.when(n.uiCanExit(e))).then((function(t){return o[d]=!1!==t})),i}),s))}}r.module("ui.router.state").directive("uiView",E),r.module("ui.router.state").directive("uiView",B),r.module("ui.router.state").provider("$uiViewScroll",(function(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}}]}))},74426:(t,e,n)=>{var i=n(19755);!function(t){"use strict";var e={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(t){if(!z(t))return e;R(t.objectMaxDepth)&&(e.objectMaxDepth=o(t.objectMaxDepth)?t.objectMaxDepth:NaN),R(t.urlErrorParamsEnabled)&&J(t.urlErrorParamsEnabled)&&(e.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function o(t){return F(t)&&t>0}function r(t,n){n=n||Error;var i="https://errors.angularjs.org/1.8.2/",o=i.replace(".","\\.")+"[\\s\\S]*",r=new RegExp(o,"g");return function(){var o,a,s=arguments[0],l=arguments[1],d="["+(t?t+":":"")+s+"] ",u=pt(arguments,2).map((function(t){return Ft(t,e.objectMaxDepth)}));if(d+=l.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1);return e=0&&e-1 in t||"function"==typeof t.item)}function k(t,e,n){var i,o;if(t)if(W(t))for(i in t)"prototype"!==i&&"length"!==i&&"name"!==i&&t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else if(H(t)||w(t)){var r="object"!=typeof t;for(i=0,o=t.length;i=0&&t.splice(n,1),n}function at(t,e,n){var i,r,a=[],s=[];if(n=o(n)?n:NaN,e){if((r=e)&&F(r.length)&&Q.test(b.call(r))||(i=e,"[object ArrayBuffer]"===b.call(i)))throw $("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw $("cpi","Can't copy! Source and destination are identical.");return H(e)?e.length=0:k(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),a.push(t),s.push(e),l(t,e,n)}return d(t,n);function l(t,e,n){if(--n<0)return"...";var i,o=e.$$hashKey;if(H(t))for(var r=0,a=t.length;r2?pt(arguments,2):[];return!W(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,ct(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function ft(e,n){var i=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=void 0:Z(n)?i="$WINDOW":n&&t.document===n?i="$DOCUMENT":Y(n)&&(i="$SCOPE"),i}function gt(t,e){if(!G(t))return F(e)||(e=e?2:null),JSON.stringify(t,ft,e)}function mt(t){return U(t)?JSON.parse(t):t}var bt=/:/g;function vt(t,e){t=t.replace(bt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return A(n)?e:n}function $t(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function yt(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset();return $t(t,n*(vt(e,i)-i))}function xt(t){t=s(t).clone().empty();var e=s("
    ").append(t).html();try{return t[0].nodeType===Bt?p(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+p(e)}))}catch(t){return p(e)}}function wt(t){try{return decodeURIComponent(t)}catch(t){}}function kt(t){var e={};return k((t||"").split("&"),(function(t){var n,i,o;t&&(i=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(i=t.substring(0,n),o=t.substring(n+1)),R(i=wt(i))&&(o=!R(o)||wt(o),c.call(e,i)?H(e[i])?e[i].push(o):e[i]=[e[i],o]:e[i]=o))})),e}function _t(t){return Ct(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ct(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":"+")}var Mt=["ng-","data-ng-","ng:","x-ng-"],St=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var i=n.attributes;return[i.getNamedItem("src"),i.getNamedItem("href"),i.getNamedItem("xlink:href")].every((function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement("a");if(n.href=t.value,e.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(t.document);function Tt(e,n,i){z(i)||(i={}),i=D({strictDi:!1},i);var o=function(){if((e=s(e)).injector()){var o=e[0]===t.document?"document":xt(e);throw $("btstrpd","App already bootstrapped with this element '{0}'",o.replace(//,">"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var r=Je(n,i.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply((function(){e.data("$injector",i),n(e)(t)}))}]),r},r=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&r.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(r,"")),t&&!a.test(t.name))return o();t.name=t.name.replace(a,""),y.resumeBootstrap=function(t){return k(t,(function(t){n.push(t)})),o()},W(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function Dt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function Ot(t){var e=y.element(t).injector();if(!e)throw $("test","no injector found for element argument to getTestability");return e.get("$$testability")}var Et=/[A-Z]/g;function At(t,e){return e=e||"_",t.replace(Et,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Pt=!1;function Lt(){pe.legacyXHTMLReplacement=!0}function It(t,e,n){if(!t)throw $("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function Nt(t,e,n){return n&&H(t)&&(t=t[t.length-1]),It(W(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function jt(t,e){if("hasOwnProperty"===t)throw $("badname","hasOwnProperty is not a valid {0} name",e)}function Gt(t){for(var e,n=t[0],i=t[t.length-1],o=1;n!==i&&(n=n.nextSibling);o++)(e||t[o]!==n)&&(e||(e=s(f.call(t,0,o))),e.push(n));return e||t}function Rt(){return Object.create(null)}function zt(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!j(t)||H(t)||V(t)?gt(t):t.toString()}return t}var Bt=3;function Ut(t,e){if(H(t)){e=e||[];for(var n=0,i=t.length;n=0)return"...";n.push(e)}return e}))}(t,e):t}var Vt={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};pe.expando="ng339";var Ht=pe.cache={},qt=1;pe._data=function(t){return this.cache[t[this.expando]]||{}};var Wt=/-([a-z])/g,Kt=/^-ms-/,Zt={mouseleave:"mouseout",mouseenter:"mouseover"},Yt=r("jqLite");function Jt(t,e){return e.toUpperCase()}function Xt(t){return t.replace(Wt,Jt)}var Qt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,te=/<|&#?\w+;/,ee=/<([\w:-]+)/,ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ie={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ie.tbody=ie.tfoot=ie.colgroup=ie.caption=ie.thead,ie.th=ie.td;var oe={option:[1,'"],_default:[0,"",""]};for(var re in ie){var ae=ie[re],se=ae.slice().reverse();oe[re]=[se.length,"<"+se.join("><")+">",""]}function le(t){return!te.test(t)}function de(t){var e=t.nodeType;return 1===e||!e||9===e}function ue(e,n){var i,o,r,s,l,d=n.createDocumentFragment(),u=[];if(le(e))u.push(n.createTextNode(e));else{if(i=d.appendChild(n.createElement("div")),o=(ee.exec(e)||["",""])[1].toLowerCase(),s=pe.legacyXHTMLReplacement?e.replace(ne,"<$1>"):e,a<10)for(r=oe[o]||oe._default,i.innerHTML=r[1]+s+r[2],l=r[0];l--;)i=i.firstChild;else{for(l=(r=ie[o]||[]).length;--l>-1;)i.appendChild(t.document.createElement(r[l])),i=i.firstChild;i.innerHTML=s}u=ct(u,i.childNodes),(i=d.firstChild).textContent=""}return d.textContent="",d.innerHTML="",k(u,(function(t){d.appendChild(t)})),d}oe.optgroup=oe.option;var ce=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function pe(e){if(e instanceof pe)return e;var n,i,o,r;if(U(e)&&(e=tt(e),n=!0),!(this instanceof pe)){if(n&&"<"!==e.charAt(0))throw Yt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new pe(e)}n?_e(this,(i=e,o=o||t.document,(r=Qt.exec(i))?[o.createElement(r[1])]:(r=ue(i,o))?r.childNodes:[])):W(e)?De(e):_e(this,e)}function he(t){return t.cloneNode(!0)}function fe(t,e){!e&&de(t)&&s.cleanData([t]),t.querySelectorAll&&s.cleanData(t.querySelectorAll("*"))}function ge(t){var e;for(e in t)return!1;return!0}function me(t){var e=t.ng339,n=e&&Ht[e],i=n&&n.events,o=n&&n.data;o&&!ge(o)||i&&!ge(i)||(delete Ht[e],t.ng339=void 0)}function be(t,e,n,i){if(R(i))throw Yt("offargs","jqLite#off() does not support the `selector` argument");var o=$e(t),r=o&&o.events,a=o&&o.handle;if(a){if(e){var s=function(e){var i=r[e];R(n)&&rt(i||[],n),R(n)&&i&&i.length>0||(t.removeEventListener(e,a),delete r[e])};k(e.split(" "),(function(t){s(t),Zt[t]&&s(Zt[t])}))}else for(e in r)"$destroy"!==e&&t.removeEventListener(e,a),delete r[e];me(t)}}function ve(t,e){var n=t.ng339,i=n&&Ht[n];i&&(e?delete i.data[e]:i.data={},me(t))}function $e(t,e){var n=t.ng339,i=n&&Ht[n];return e&&!i&&(t.ng339=n=++qt,i=Ht[n]={events:{},data:{},handle:void 0}),i}function ye(t,e,n){if(de(t)){var i,o=R(n),r=!o&&e&&!z(e),a=!e,s=$e(t,!r),l=s&&s.data;if(o)l[Xt(e)]=n;else{if(a)return l;if(r)return l&&l[Xt(e)];for(i in e)l[Xt(i)]=e[i]}}}function xe(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function we(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;k(e.split(" "),(function(t){t=tt(t),i=i.replace(" "+t+" "," ")})),i!==n&&t.setAttribute("class",tt(i))}}function ke(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;k(e.split(" "),(function(t){t=tt(t),-1===i.indexOf(" "+t+" ")&&(i+=t+" ")})),i!==n&&t.setAttribute("class",tt(i))}}function _e(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 i=0;i=0?this[t]:this[this.length+t])},length:0,push:m,sort:[].sort,splice:[].splice},Ee={};k("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){Ee[p(t)]=t}));var Ae={};k("input,select,option,textarea,button,form,details".split(","),(function(t){Ae[t]=!0}));var Pe={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Le(t,e){var n=Ee[e.toLowerCase()];return n&&Ae[it(t)]&&n}function Ie(t,e,n){n.call(t,e)}function Ne(t,e,n){var i=e.relatedTarget;i&&(i===t||ce.call(t,i))||n.call(t,e)}function je(){this.$get=function(){return D(pe,{hasClass:function(t,e){return t.attr&&(t=t[0]),xe(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),ke(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),we(t,e)}})}}function Ge(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var i=typeof t;return"function"===i||"object"===i&&null!==t?t.$$hashKey=i+":"+(e||M)():i+":"+t}k({data:ye,removeData:ve,hasData:function(t){for(var e in Ht[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e1&&(o=Ut(o));for(var l=0;l=0?e.split(" "):[e],l=s.length,d=function(e,i,o){var s=r[e];s||((s=r[e]=[]).specialHandlerWrapper=i,"$destroy"===e||o||t.addEventListener(e,a)),s.push(n)};l--;)e=s[l],Zt[e]?(d(Zt[e],Ne),d(e,void 0,!0)):d(e)}},off:be,one:function(t,e,n){(t=s(t)).on(e,(function i(){t.off(e,n),t.off(e,i)})),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;fe(t),k(new pe(e),(function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e}))},children:function(t){var e=[];return k(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var i=0,o=(e=new pe(e)).length;i/,Ve=/^[^(]*\(\s*([^)]*)\)/m,He=/,/,qe=/^\s*(_?)(\S+?)\1\s*$/,We=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ke=r("$injector");function Ze(t){return Function.prototype.toString.call(t)}function Ye(t){var e=Ze(t).replace(We,"");return e.match(Fe)||e.match(Ve)}function Je(t,e){e=!0===e;var n={},i="Provider",o=[],r=new Be,s={$provide:{provider:f(g),factory:f(b),service:f((function(t,e){return b(t,["$injector",function(t){return t.instantiate(e)}])})),value:f((function(t,e){return b(t,N(e),!1)})),constant:f((function(t,e){jt(t,"constant"),s[t]=e,u[t]=e})),decorator:function(t,e){var n=l.get(t+i),o=n.$get;n.$get=function(){var t=p.invoke(o,n);return p.invoke(e,null,{$delegate:t})}}}},l=s.$injector=$(s,(function(t,e){throw y.isString(e)&&o.push(e),Ke("unpr","Unknown provider: {0}",o.join(" <- "))})),u={},c=$(u,(function(t,e){var n=l.get(t+i,e);return p.invoke(n.$get,n,void 0,t)})),p=c;s.$injectorProvider={$get:N(c)},p.modules=l.modules=Rt();var h=v(t);return(p=c.get("$injector")).strictDi=e,k(h,(function(t){t&&p.invoke(t)})),p.loadNewModules=function(t){k(v(t),(function(t){t&&p.invoke(t)}))},p;function f(t){return function(e,n){if(!z(e))return t(e,n);k(e,C(t))}}function g(t,e){if(jt(t,"service"),(W(e)||H(e))&&(e=l.instantiate(e)),!e.$get)throw Ke("pget","Provider '{0}' must define $get factory method.",t);return s[t+i]=e}function m(t,e){return function(){var n=p.invoke(e,this);if(G(n))throw Ke("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function b(t,e,n){return g(t,{$get:!1!==n?m(t,e):e})}function v(t){It(G(t)||H(t),"modulesToLoad","not an array");var e,n=[];return k(t,(function(t){if(!r.get(t)){r.set(t,!0);try{U(t)?(e=d(t),p.modules[t]=e,n=n.concat(v(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):W(t)||H(t)?n.push(l.invoke(t)):Nt(t,"module")}catch(e){throw H(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ke("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(t){var e,n;for(e=0,n=t.length;e1||t((function(){for(var t=0;ts&&this.remove(u.key),e},get:function(t){if(s0&&O.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&O.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=xn(t,e);n&&n.length&&O.addClass(this.$$element,n);var i=xn(e,t);i&&i.length&&O.removeClass(this.$$element,i)},$set:function(t,e,n,i){var o=Le(this.$$element[0],t),r=Pe[t],a=t;o?(this.$$element.prop(t,e),i=o):r&&(this[r]=e,a=r),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=At(t,"-")),"img"===it(this.$$element)&&"srcset"===t&&(this[t]=e=V(e,"$set('srcset', value)")),!1!==n&&(null===e||G(e)?this.$$element.removeAttr(i):A.test(i)?o&&!1===e?this.$$element.removeAttr(i):this.$$element.attr(i,e):function(t,e,n){N.innerHTML="";var i=N.firstChild.attributes,o=i[0];i.removeNamedItem(o.name),o.value=n,t.attributes.setNamedItem(o)}(this.$$element[0],i,e));var s=this.$$observers;s&&k(s[a],(function(t){try{t(e)}catch(t){f(t)}}))},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=Rt()),o=i[t]||(i[t]=[]);return o.push(e),S.$evalAsync((function(){o.$$inter||!n.hasOwnProperty(t)||G(n[t])||e(n[t])})),function(){rt(o,e)}}};var X=n.startSymbol(),Q=n.endSymbol(),et="{{"===X&&"}}"===Q?I:function(t){return t.replace(/\{\{/g,X).replace(/}}/g,Q)},nt=/^ng(Attr|Prop|On)([A-Z].*)$/,ot=/^(.+)Start$/;return at.$$addBindingInfo=v?function(t,e){var n=t.data("$binding")||[];H(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:L,at.$$addBindingClass=v?function(t){Z(t,"ng-binding")}:L,at.$$addScopeInfo=v?function(t,e,n,i){var o=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(o,e)}:L,at.$$addScopeClass=v?function(t,e){Z(t,e?"ng-isolate-scope":"ng-scope")}:L,at.$$createComment=function(e,n){var i="";return v&&(i=" "+(e||"")+": ",n&&(i+=n+" ")),t.document.createComment(i)},at;function at(t,e,n,i,o){t instanceof s||(t=s(t));var r=dt(t,e,t,n,i,o);at.$$addScopeClass(t);var a=null;return function(e,n,i){if(!t)throw fn("multilink","This element has already been linked.");It(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new());var l,d,u,c=(i=i||{}).parentBoundTranscludeFn,p=i.transcludeControllers,h=i.futureParentElement;if(c&&c.$$boundTransclude&&(c=c.$$boundTransclude),a||(d=(l=h)&&l[0],a=d&&"foreignobject"!==it(d)&&b.call(d).match(/SVG/)?"svg":"html"),u="html"!==a?s(Tt(a,s("
    ").append(t).html())):n?Oe.clone.call(t):t,p)for(var f in p)u.data("$"+f+"Controller",p[f].instance);return at.$$addScopeInfo(u,e),n&&n(u,e),r&&r(e,u,u,c),n||(t=r=null),u}}function dt(t,e,n,i,o,r){for(var l,d,u,c,p,h,f,g=[],m=H(t)||t instanceof s,b=0;b0);else i.push(t);return s(i)}function mt(t,e,n){return function(i,o,r,a,s){return o=gt(o[0],e,n),t(i,o,r,a,s)}}function bt(t,e,n,i,o,r){var a;return t?at(e,n,i,o,r):function(){return a||(a=at(e,n,i,o,r),e=n=r=null),a.apply(this,arguments)}}function vt(e,n,i,o,r,a,l,d,u){u=u||{};for(var c,p,h,g,m,b=-Number.MAX_VALUE,v=u.newScopeDirective,$=u.controllerDirectives,y=u.newIsolateScopeDirective,x=u.templateDirective,w=u.nonTlbTranscludeDirective,_=!1,C=!1,S=u.hasElementTranscludeDirective,T=i.$$element=s(n),O=a,E=o,A=!1,P=!1,L=0,I=e.length;Lc.priority)break;if((m=c.scope)&&(c.templateUrl||(z(m)?(St("new/isolated scope",y||v,c,T),y=c):St("new/isolated scope",y,c,T)),v=v||c),p=c.name,!A&&(c.replace&&(c.templateUrl||c.template)||c.transclude&&!c.$$tlb)){for(var R,B=L+1;R=e[B++];)if(R.transclude&&!R.$$tlb||R.replace&&(R.templateUrl||R.template)){P=!0;break}A=!0}if(!c.templateUrl&&c.controller&&($=$||Rt(),St("'"+p+"' controller",$[p],c,T),$[p]=c),m=c.transclude)if(_=!0,c.$$tlb||(St("transclusion",w,c,T),w=c),"element"===m)S=!0,b=c.priority,h=T,T=i.$$element=s(at.$$createComment(p,i[p])),n=T[0],Lt(r,pt(h),n),E=bt(P,h,o,b,O&&O.name,{nonTlbTranscludeDirective:w});else{var U=Rt();if(z(m)){h=t.document.createDocumentFragment();var F=Rt(),V=Rt();for(var q in k(m,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,F[t]=e,U[e]=null,V[e]=n})),k(T.contents(),(function(e){var n=F[yn(it(e))];n?(V[n]=!0,U[n]=U[n]||t.document.createDocumentFragment(),U[n].appendChild(e)):h.appendChild(e)})),k(V,(function(t,e){if(!t)throw fn("reqslot","Required transclusion slot `{0}` was not filled.",e)})),U)if(U[q]){var Z=s(U[q].childNodes);U[q]=bt(P,Z,o)}h=s(h.childNodes)}else h=s(he(n)).contents();T.empty(),(E=bt(P,h,o,void 0,void 0,{needsNewScope:c.$$isolateScope||c.$$newScope})).$$slots=U}if(c.template)if(C=!0,St("template",x,c,T),x=c,m=W(c.template)?c.template(T,i):c.template,m=et(m),c.replace){if(O=c,h=le(m)?[]:wn(Tt(c.templateNamespace,tt(m))),n=h[0],1!==h.length||1!==n.nodeType)throw fn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p,"");Lt(r,T,n);var J={$attr:{}},X=ft(n,[],J),Q=e.splice(L+1,e.length-(L+1));(y||v)&&yt(X,y,v),e=e.concat(X).concat(Q),_t(i,J),I=e.length}else T.html(m);if(c.templateUrl)C=!0,St("template",x,c,T),x=c,c.replace&&(O=c),rt=Ct(e.splice(L,e.length-L),T,i,r,_&&E,l,d,{controllerDirectives:$,newScopeDirective:v!==c&&v,newIsolateScopeDirective:y,templateDirective:x,nonTlbTranscludeDirective:w}),I=e.length;else if(c.compile)try{g=c.compile(T,i,E);var nt=c.$$originalDirective||c;W(g)?ot(null,ht(nt,g),N,j):g&&ot(ht(nt,g.pre),ht(nt,g.post),N,j)}catch(t){f(t,xt(T))}c.terminal&&(rt.terminal=!0,b=Math.max(b,c.priority))}return rt.scope=v&&!0===v.scope,rt.transcludeOnThisElement=_,rt.templateOnThisElement=C,rt.transclude=E,u.hasElementTranscludeDirective=S,rt;function ot(t,e,n,i){t&&(n&&(t=mt(t,n,i)),t.require=c.require,t.directiveName=p,(y===c||c.$$isolateScope)&&(t=Nt(t,{isolateScope:!0})),l.push(t)),e&&(n&&(e=mt(e,n,i)),e.require=c.require,e.directiveName=p,(y===c||c.$$isolateScope)&&(e=Nt(e,{isolateScope:!0})),d.push(e))}function rt(t,e,o,r,a){var u,c,p,h,g,m,b,w,_,C;for(var T in n===o?(_=i,w=i.$$element):_=new K(w=s(o),i),g=e,y?h=e.$new(!0):v&&(g=e.$parent),a&&(b=function(t,e,n,i){var o;if(Y(t)||(i=n,n=e,e=t,t=void 0),S&&(o=m),n||(n=S?w.parent():w),!i)return a(t,e,o,n,P);var r=a.$$slots[i];if(r)return r(t,e,o,n,P);if(G(r))throw fn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,xt(w))},b.$$boundTransclude=a,b.isSlotFilled=function(t){return!!a.$$slots[t]}),$&&(m=function(t,e,n,i,o,r,a){var s=Rt();for(var l in i){var d=i[l],u={$scope:d===a||d.$$isolateScope?o:r,$element:t,$attrs:e,$transclude:n},c=d.controller;"@"===c&&(c=e[d.name]);var p=M(c,u,!0,d.controllerAs);s[d.name]=p,t.data("$"+d.name+"Controller",p.instance)}return s}(w,_,b,$,h,e,y)),y&&(at.$$addScopeInfo(w,h,!0,!(x&&(x===y||x===y.$$originalDirective))),at.$$addScopeClass(w,!0),h.$$isolateBindings=y.$$isolateBindings,(C=zt(e,_,h,h.$$isolateBindings,y)).removeWatches&&h.$on("$destroy",C.removeWatches)),m){var O=$[T],E=m[T],A=O.$$bindings.bindToController;E.instance=E(),w.data("$"+O.name+"Controller",E.instance),E.bindingInfo=zt(g,_,E.instance,A,O)}for(k($,(function(t,e){var n=t.require;t.bindToController&&!H(n)&&z(n)&&D(m[e].instance,$t(e,n,w,m))})),k(m,(function(t){var e=t.instance;if(W(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){f(t)}if(W(e.$onInit))try{e.$onInit()}catch(t){f(t)}W(e.$doCheck)&&(g.$watch((function(){e.$doCheck()})),e.$doCheck()),W(e.$onDestroy)&&g.$on("$destroy",(function(){e.$onDestroy()}))})),u=0,c=l.length;u=0;u--)jt(p=d[u],p.isolateScope?h:e,w,_,p.require&&$t(p.directiveName,p.require,w,m),b);k(m,(function(t){var e=t.instance;W(e.$postLink)&&e.$postLink()}))}}function $t(t,e,n,i){var o;if(U(e)){var r=e.match(u),a=e.substring(r[0].length),s=r[1]||r[3],l="?"===r[2];if("^^"===s?n=n.parent():o=(o=i&&i[a])&&o.instance,!o){var d="$"+a+"Controller";o="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(d):n.data(d)}if(!o&&!l)throw fn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(H(e)){o=[];for(var c=0,p=e.length;cc.priority)&&-1!==c.restrict.indexOf(r)){if(l&&(c=P(c,{$$start:l,$$end:d})),!c.$$bindings){var g=c.$$bindings=m(c,c.name);z(g.isolateScope)&&(c.$$isolateBindings=g.isolateScope)}t.push(c),u=c}return u}function kt(t){if(i.hasOwnProperty(t))for(var n=e.get(t+o),r=0,a=n.length;r"+n+"",i.childNodes[0].childNodes;default:return n}}function Dt(t){return V(T.valueOf(t),"ng-prop-srcset")}function Ot(t,e,n,i){if(h.test(i))throw fn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var o=it(t),r=function(t,e){var n=e.toLowerCase();return _[t+"|"+n]||_["*|"+n]}(o,i),a=I;"srcset"!==i||"img"!==o&&"source"!==o?r&&(a=T.getTrusted.bind(T,r)):a=Dt,e.push({priority:100,compile:function(t,e){var o=C(e[n]),r=C(e[n],(function(t){return T.valueOf(t)}));return{pre:function(t,e){function n(){var n=o(t);e[0][i]=a(n)}n(),t.$watch(r,n)}}}})}function Et(t,e,n){t.push(Lr(C,S,f,e,n,!1))}function Pt(t,e,i,o,r){var a=it(t),s=function(t,e){return"srcdoc"===e?T.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?T.RESOURCE_URL:T.MEDIA_URL:"xlinkHref"===e?"image"===t?T.MEDIA_URL:"a"===t?T.URL:T.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?T.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:T.URL}(a,o),l=!r,u=d[o]||r,c=n(i,l,s,u);if(c){if("multiple"===o&&"select"===a)throw fn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",xt(t));if(h.test(o))throw fn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:function(){return{pre:function(t,e,r){var a=r.$$observers||(r.$$observers=Rt()),l=r[o];l!==i&&(c=l&&n(l,!0,s,u),i=l),c&&(r[o]=c(t),(a[o]||(a[o]=[])).$$inter=!0,(r.$$observers&&r.$$observers[o].$$scope||t).$watch(c,(function(t,e){"class"===o&&t!==e?r.$updateClass(t,e):r.$set(o,t)})))}}}})}}function Lt(e,n,i){var o,r,a=n[0],l=n.length,d=a.parentNode;if(e)for(o=0,r=e.length;o0?" ":"")+a}return n}function wn(t){var e=(t=s(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Bt&&""===n.nodeValue.trim())&&g.call(t,e,1)}return t}var kn=r("$controller"),_n=/^(\S+)(\s+as\s+([\w$]+))?$/;function Cn(t,e){if(e&&U(e))return e;if(U(t)){var n=_n.exec(t);if(n)return n[3]}}function Mn(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){jt(e,"controller"),z(e)?D(t,e):t[e]=n},this.$get=["$injector",function(e){return function(i,o,r,a){var s,l,d,u;if(r=!0===r,a&&U(a)&&(u=a),U(i)){if(!(l=i.match(_n)))throw kn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",i);if(d=l[1],u=u||l[3],i=t.hasOwnProperty(d)?t[d]:function(t,e,n){if(!e)return t;for(var i,o=e.split("."),r=o.length,a=0;a0&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t}(b,n.paramSerializer(n.params)),m&&(b=function(t,e){var n=t.split("?");if(n.length>2)throw In("badjsonp",'Illegal use more than one "?", in url, "{1}"',t);return k(kt(n[1]),(function(n,i){if("JSON_CALLBACK"===n)throw In("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(i===e)throw In("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(b,n.jsonpCallbackParam)),$.pendingRequests.push(n),c.then(C,C),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(o=z(n.cache)?n.cache:z(t.cache)?t.cache:g),o&&(R(r=o.get(b))?X(r)?r.then(_,_):H(r)?w(r[1],r[0],Ut(r[2]),r[3],r[4]):w(r,200,{},"OK","complete"):o.put(b,c)),G(r)){var y=v(n.url)?s()[n.xsrfCookieName||t.xsrfCookieName]:void 0;y&&(h[n.xsrfHeaderName||t.xsrfHeaderName]=y),a(n.method,b,i,(function(t,n,i,r,a){function s(){w(n,t,i,r,a)}o&&(Fn(t)?o.put(b,[t,n,zn(i),r,a]):o.remove(b)),e?d.$applyAsync(s):(s(),d.$$phase||d.$apply())}),h,n.timeout,n.withCredentials,n.responseType,x(n.eventHandlers),x(n.uploadEventHandlers))}return c;function x(t){if(t){var n={};return k(t,(function(t,i){n[i]=function(n){function i(){t(n)}e?d.$applyAsync(i):d.$$phase?i():d.$apply(i)}})),n}}function w(t,e,i,o,r){(Fn(e=e>=-1?e:0)?l.resolve:l.reject)({data:t,status:e,headers:Bn(i),config:n,statusText:o,xhrStatus:r})}function _(t){w(t.data,t.status,Ut(t.headers()),t.statusText,t.xhrStatus)}function C(){var t=$.pendingRequests.indexOf(n);-1!==t&&$.pendingRequests.splice(t,1)}}(n,o).then(w,w)})),(y=x(y,b)).finally((function(){o.$$completeOutstandingRequest(L,"$http")}));function x(t,e){for(var n=0,i=e.length;n0)var y=n((function(){x("timeout")}),u);else X(u)&&u.then((function(){x(R(u.$$timeoutId)?"timeout":"abort")}));function x(t){$="timeout"===t,b&&b(),v&&v.abort()}function w(t,e,i,o,r,a){R(y)&&n.cancel(y),b=v=null,t(e,i,o,r,a)}}}(t,i,t.defer,e,n[0])}]}var Wn=y.$interpolateMinErr=r("$interpolate");function Kn(){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,i,o){var r=t.length,a=e.length,s=new RegExp(t.replace(/./g,d),"g"),l=new RegExp(e.replace(/./g,d),"g");function d(t){return"\\\\\\"+t}function u(n){return n.replace(s,t).replace(l,e)}function c(t,e,n,i){var o=t.$watch((function(t){return o(),i(t)}),e,n);return o}function p(s,l,d,p){var h=d===o.URL||d===o.MEDIA_URL;if(!s.length||-1===s.indexOf(t)){if(l)return;var f=u(s);h&&(f=o.getTrusted(d,f));var g=N(f);return g.exp=s,g.expressions=[],g.$$watchDelegate=c,g}p=!!p;for(var m,b,v,$,y,x=0,w=[],k=s.length,_=[],C=[];x1&&Wn.throwNoconcat(s),_.join(""))};return D((function(t){var e=0,n=w.length,o=new Array(n);try{for(;e4,c=u?pt(arguments,4):[],p=0,h=R(d)&&!d,f=(h?n:e).defer(),g=f.promise;function m(){u?a.apply(null,c):a(p)}function b(){h?t.defer(m):i.$evalAsync(m),f.notify(p++),l>0&&p>=l&&(f.resolve(p),r(g.$$intervalId)),h||i.$apply()}return l=R(l)?l:0,g.$$intervalId=o(b,s,f,h),g}}}]}var Xn=function(){this.$get=function(){var t=y.callbacks,e={};return{createCallback:function(n){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,r=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(i);return e[o]=t[i]=r,o},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){var i=e[n];delete t[i.id],delete e[n]}}}},Qn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ti={http:80,https:443,ftp:21},ei=r("$location");function ni(t,e){var n=lo(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=E(n.port)||ti[n.protocol]||null}var ii=/^\s*[\\/]{2,}/;function oi(t,e,n){if(ii.test(t))throw ei("badpath",'Invalid url "{0}".',t);var i="/"!==t.charAt(0);i&&(t="/"+t);var o=lo(t),r=i&&"/"===o.pathname.charAt(0)?o.pathname.substring(1):o.pathname;e.$$path=function(t,e){for(var n=t.split("/"),i=n.length;i--;)n[i]=decodeURIComponent(n[i]),e&&(n[i]=n[i].replace(/\//g,"%2F"));return n.join("/")}(r,n),e.$$search=kt(o.search),e.$$hash=decodeURIComponent(o.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ri(t,e){return t.slice(0,e.length)===e}function ai(t,e){if(ri(e,t))return e.substr(t.length)}function si(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function li(t,e,n){this.$$html5=!0,n=n||"",ni(t,this),this.$$parse=function(t){var n=ai(e,t);if(!U(n))throw ei("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);oi(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(i,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):(R(r=ai(t,i))?(a=r,s=n&&R(r=ai(n,r))?e+(ai("/",r)||r):t+a):R(r=ai(e,i))?s=e+r:e===i+"/"&&(s=e),s&&this.$$parse(s),!!s);var r,a,s}}function di(t,e,n){ni(t,this),this.$$parse=function(i){var o,r=ai(t,i)||ai(e,i);G(r)||"#"!==r.charAt(0)?this.$$html5?o=r:(o="",G(r)&&(t=i,this.replace())):G(o=ai(n,r))&&(o=r),oi(o,this,!1),this.$$path=function(t,e,n){var i,o=/^\/[A-Z]:(\/.*)/;return ri(e,n)&&(e=e.replace(n,"")),o.exec(e)?t:(i=o.exec(t))?i[1]:t}(this.$$path,o,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return si(t)===si(e)&&(this.$$parse(e),!0)}}function ui(t,e,n){this.$$html5=!0,di.apply(this,arguments),this.$$parseLinkUrl=function(i,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):(t===si(i)?r=i:(a=ai(e,i))?r=t+n+a:e===i+"/"&&(r=e),r&&this.$$parse(r),!!r);var r,a},this.$$normalizeUrl=function(e){return t+n+e}}var ci={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){var t,e,n,i,o,r;this.$$url=(t=this.$$path,e=this.$$search,n=this.$$hash,i=[],k(e,(function(t,e){H(t)?k(t,(function(t){i.push(Ct(e,!0)+(!0===t?"":"="+Ct(t,!0)))})):i.push(Ct(e,!0)+(!0===t?"":"="+Ct(t,!0)))})),o=i.length?i.join("&"):"",r=n?"#"+_t(n):"",function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=_t(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(o?"?"+o:"")+r),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:pi("$$absUrl"),url:function(t){if(G(t))return this.$$url;var e=Qn.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:pi("$$protocol"),host:pi("$$host"),port:pi("$$port"),path:hi("$$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(U(t)||F(t))t=t.toString(),this.$$search=kt(t);else{if(!z(t))throw ei("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");k(t=at(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:G(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:hi("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function pi(t){return function(){return this[t]}}function hi(t,e){return function(n){return G(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function fi(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return R(e)?(t=e,this):t},this.html5Mode=function(t){return J(t)?(e.enabled=t,this):z(t)?(J(t.enabled)&&(e.enabled=t.enabled),J(t.requireBase)&&(e.requireBase=t.requireBase),(J(t.rewriteLinks)||U(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,o,r,a){var l,d,u,c,p=i.baseHref(),h=i.url();if(e.enabled){if(!p&&e.requireBase)throw ei("nobase","$location in HTML5 mode requires a tag to be present!");u=(c=h).substring(0,c.indexOf("/",c.indexOf("//")+2))+(p||"/"),d=o.history?li:ui}else u=si(h),d=di;var f=function(t){return t.substr(0,si(t).lastIndexOf("/")+1)}(u);(l=new d(u,f,"#"+t)).$$parseLinkUrl(h,h),l.$$state=i.state();var g=/^\s*(javascript|mailto):/i;function m(t,e,n){var o=l.url(),r=l.$$state;try{i.url(t,e,n),l.$$state=i.state()}catch(t){throw l.url(o),l.$$state=r,t}}r.on("click",(function(t){var o=e.rewriteLinks;if(o&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var a=s(t.target);"a"!==it(a[0]);)if(a[0]===r[0]||!(a=a.parent())[0])return;if(!U(o)||!G(a.attr(o))){var d=a.prop("href"),u=a.attr("href")||a.attr("xlink:href");z(d)&&"[object SVGAnimatedString]"===d.toString()&&(d=lo(d.animVal).href),g.test(d)||!d||a.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(d,u)&&(t.preventDefault(),l.absUrl()!==i.url()&&n.$apply())}}})),l.absUrl()!==h&&i.url(l.absUrl(),!0);var b=!0;return i.onUrlChange((function(t,e){ri(t,f)?(n.$evalAsync((function(){var i,o=l.absUrl(),r=l.$$state;l.$$parse(t),l.$$state=e,i=n.$broadcast("$locationChangeStart",t,o,e,r).defaultPrevented,l.absUrl()===t&&(i?(l.$$parse(o),l.$$state=r,m(o,!1,r)):(b=!1,v(o,r)))})),n.$$phase||n.$digest()):a.location.href=t})),n.$watch((function(){if(b||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=i.url(),e=l.absUrl(),r=i.state(),a=l.$$replace,s=!((d=t)===(u=e)||lo(d).href===lo(u).href)||l.$$html5&&o.history&&r!==l.$$state;(b||s)&&(b=!1,n.$evalAsync((function(){var e=l.absUrl(),i=n.$broadcast("$locationChangeStart",e,t,l.$$state,r).defaultPrevented;l.absUrl()===e&&(i?(l.$$parse(t),l.$$state=r):(s&&m(e,a,r===l.$$state?null:l.$$state),v(t,r)))})))}var d,u;l.$$replace=!1})),l;function v(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}}]}function gi(){var t=!0,e=this;this.debugEnabled=function(e){return R(e)?(t=e,this):t},this.$get=["$window",function(n){var i,o=a||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(i=s("debug"),function(){t&&i.apply(e,arguments)})};function r(t){return q(t)&&(t.stack&&o?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 s(t){var e=n.console||{},i=e[t]||e.log||L;return function(){var t=[];return k(arguments,(function(e){t.push(r(e))})),Function.prototype.apply.call(i,e,t)}}}]}k([ui,di,li],(function(t){t.prototype=Object.create(ci),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==li||!this.$$html5)throw ei("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=G(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var mi=r("$parse"),bi={}.constructor.prototype.valueOf;function vi(t){return t+""}var $i=Rt();k("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){$i[t]=!0}));var yi={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},xi=function(t){this.options=t};xi.prototype={constructor:xi,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index=55296&&n<=56319&&i>=56320&&i<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var i=R(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw mi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,i,this.text)},readNumber:function(){for(var t="",e=this.index;this.index0&&c(this.$$state),i},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return v(e,y,t)}),(function(e){return v(e,b,t)}),e)}});var y=$;function x(t){if(!W(t))throw i("norslvr","Expected resolverFn, got '{0}'",t);var e=new d;return t((function(t){p(e,t)}),(function(t){f(e,t)})),e}return x.prototype=d.prototype,x.defer=s,x.reject=b,x.when=$,x.resolve=y,x.all=function(t){var e=new d,n=0,i=H(t)?[]:{};return k(t,(function(t,o){n++,$(t).then((function(t){i[o]=t,--n||p(e,i)}),(function(t){f(e,t)}))})),0===n&&p(e,i),e},x.race=function(t){var e=s();return k(t,(function(t){$(t).then(e.resolve,e.reject)})),e.promise},x}function ji(t){return!!t.pur}function Gi(t){t.pur=!0}function Ri(t){t.$$state&&Gi(t.$$state)}function zi(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,o=!!n,r=o?function(t){var e=n(t);return function(){i(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return r.supported=o,r}]}function Bi(){var t=10,e=r("$rootScope"),n=null,i=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(o,r,s){function l(t){t.currentScope.$$destroyed=!0}function d(t){9===a&&(t.$$childHead&&d(t.$$childHead),t.$$nextSibling&&d(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function u(){this.$id=M(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}u.prototype={constructor:u,$new:function(t,e){var n;return e=e||this,t?(n=new u).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=M(),this.$$ChildScope=null,this.$$suspended=!1}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!==this)&&n.$on("$destroy",l),n},$watch:function(t,e,i,o){var a=r(t),s=W(e)?e:L;if(a.$$watchDelegate)return a.$$watchDelegate(this,s,i,a,t);var l=this,d=l.$$watchers,u={fn:s,last:x,get:a,exp:o||t,eq:!!i};return n=null,d||((d=l.$$watchers=[]).$$digestWatchIndex=-1),d.unshift(u),d.$$digestWatchIndex++,$(this,1),function(){var t=rt(d,u);t>=0&&($(l,-1),t1,l=0,d=r(t,g),u=[],p={},h=!0,f=0;function g(t){var e,o,r,a;if(!G(n=t)){if(z(n))if(w(n)){i!==u&&(f=(i=u).length=0,l++),e=n.length,f!==e&&(l++,i.length=f=e);for(var s=0;se)for(o in l++,i)c.call(n,o)||(f--,delete i[o])}else i!==n&&(i=n,l++);return l}}return this.$watch(d,(function(){if(h?(h=!1,e(n,n,a)):e(n,o,a),s)if(z(n))if(w(n)){o=new Array(n.length);for(var t=0;t0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:wi.Program,body:t}},expressionStatement:function(){return{type:wi.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();if(this.expect("=")){if(!Si(t))throw mi("lval","Trying to assign a value to a non l-value");t={type:wi.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:wi.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:wi.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:wi.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:wi.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:wi.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:wi.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:wi.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:wi.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=at(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:wi.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:wi.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:wi.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:wi.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:wi.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:wi.Identifier,name:t.text}},constant:function(){return{type:wi.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:wi.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:wi.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:wi.ObjectExpression,properties:e}},throwError:function(t,e){throw mi("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 mi("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 mi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,o){if(this.tokens.length>t){var r=this.tokens[t],a=r.text;if(a===e||a===n||a===i||a===o||!e&&!n&&!i&&!o)return r}return!1},expect:function(t,e,n,i){var o=this.peek(t,e,n,i);return!!o&&(this.tokens.shift(),o)},selfReferential:{this:{type:wi.ThisExpression},$locals:{type:wi.LocalsExpression}}},Di.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ci(t,e.$filter);var n,i="";if(this.stage="assign",n=Ti(t)){this.state.computing="assign";var o=this.nextId();this.recurse(n,o),this.return_(o),i="fn.assign="+this.generateFunction("assign","s,v,l")}var r=Mi(t.body);e.stage="inputs",k(r,(function(t,n){var i="fn"+n;e.state[i]={vars:[],body:[],own:{}},e.state.computing=i;var o=e.nextId();e.recurse(t,o),e.return_(o),e.state.inputs.push({name:i,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,vi,ki,_i);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return k(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return k(this.state.filters,(function(n,i){t.push(n+"=$filter("+e.escape(i)+")")})),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,r){var a,s,l,d,u,c=this;if(i=i||L,!r&&R(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 wi.Program:k(t.body,(function(e,n){c.recurse(e.expression,void 0,void 0,(function(t){s=t})),n!==t.body.length-1?c.current().body.push(s,";"):c.return_(s)}));break;case wi.Literal:d=this.escape(t.value),this.assign(e,d),i(e||d);break;case wi.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){s=t})),d=t.operator+"("+this.ifDefined(s,0)+")",this.assign(e,d),i(d);break;case wi.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){a=t})),this.recurse(t.right,void 0,void 0,(function(t){s=t})),d="+"===t.operator?this.plus(a,s):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(s,0):"("+a+")"+t.operator+"("+s+")",this.assign(e,d),i(d);break;case wi.LogicalExpression:e=e||this.nextId(),c.recurse(t.left,e),c.if_("&&"===t.operator?e:c.not(e),c.lazyRecurse(t.right,e)),i(e);break;case wi.ConditionalExpression:e=e||this.nextId(),c.recurse(t.test,e),c.if_(e,c.lazyRecurse(t.alternate,e),c.lazyRecurse(t.consequent,e)),i(e);break;case wi.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",t.name)),(function(){c.if_("inputs"===c.stage||"s",(function(){o&&1!==o&&c.if_(c.isNull(c.nonComputedMember("s",t.name)),c.lazyAssign(c.nonComputedMember("s",t.name),"{}")),c.assign(e,c.nonComputedMember("s",t.name))}))}),e&&c.lazyAssign(e,c.nonComputedMember("l",t.name))),i(e);break;case wi.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),c.recurse(t.object,a,void 0,(function(){c.if_(c.notNull(a),(function(){t.computed?(s=c.nextId(),c.recurse(t.property,s),c.getStringValue(s),o&&1!==o&&c.if_(c.not(c.computedMember(a,s)),c.lazyAssign(c.computedMember(a,s),"{}")),d=c.computedMember(a,s),c.assign(e,d),n&&(n.computed=!0,n.name=s)):(o&&1!==o&&c.if_(c.isNull(c.nonComputedMember(a,t.property.name)),c.lazyAssign(c.nonComputedMember(a,t.property.name),"{}")),d=c.nonComputedMember(a,t.property.name),c.assign(e,d),n&&(n.computed=!1,n.name=t.property.name))}),(function(){c.assign(e,"undefined")})),i(e)}),!!o);break;case wi.CallExpression:e=e||this.nextId(),t.filter?(s=c.filter(t.callee.name),l=[],k(t.arguments,(function(t){var e=c.nextId();c.recurse(t,e),l.push(e)})),d=s+"("+l.join(",")+")",c.assign(e,d),i(e)):(s=c.nextId(),a={},l=[],c.recurse(t.callee,s,a,(function(){c.if_(c.notNull(s),(function(){k(t.arguments,(function(e){c.recurse(e,t.constant?void 0:c.nextId(),void 0,(function(t){l.push(t)}))})),d=a.name?c.member(a.context,a.name,a.computed)+"("+l.join(",")+")":s+"("+l.join(",")+")",c.assign(e,d)}),(function(){c.assign(e,"undefined")})),i(e)})));break;case wi.AssignmentExpression:s=this.nextId(),a={},this.recurse(t.left,void 0,a,(function(){c.if_(c.notNull(a.context),(function(){c.recurse(t.right,s),d=c.member(a.context,a.name,a.computed)+t.operator+s,c.assign(e,d),i(e||d)}))}),1);break;case wi.ArrayExpression:l=[],k(t.elements,(function(e){c.recurse(e,t.constant?void 0:c.nextId(),void 0,(function(t){l.push(t)}))})),d="["+l.join(",")+"]",this.assign(e,d),i(e||d);break;case wi.ObjectExpression:l=[],u=!1,k(t.properties,(function(t){t.computed&&(u=!0)})),u?(e=e||this.nextId(),this.assign(e,"{}"),k(t.properties,(function(t){t.computed?(a=c.nextId(),c.recurse(t.key,a)):a=t.key.type===wi.Identifier?t.key.name:""+t.key.value,s=c.nextId(),c.recurse(t.value,s),c.assign(c.member(e,a,t.computed),s)}))):(k(t.properties,(function(e){c.recurse(e.value,t.constant?void 0:c.nextId(),void 0,(function(t){l.push(c.escape(e.key.type===wi.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),d="{"+l.join(",")+"}",this.assign(e,d)),i(e||d);break;case wi.ThisExpression:this.assign(e,"s"),i(e||"s");break;case wi.LocalsExpression:this.assign(e,"l"),i(e||"l");break;case wi.NGValueParameter:this.assign(e,"v"),i(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[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 i=this.current().body;i.push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,i,o,r){var a=this;return function(){a.recurse(t,e,n,i,o,r)}},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(U(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(F(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 mi("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]}},Oi.prototype={compile:function(t){var e,n,i=this;Ci(t,i.$filter),(e=Ti(t))&&(n=this.recurse(e));var o,r=Mi(t.body);r&&(o=[],k(r,(function(t,e){var n=i.recurse(t);n.isPure=t.isPure,t.input=n,o.push(n),t.watchId=e})));var a=[];k(t.body,(function(t){a.push(i.recurse(t.expression))}));var s=0===t.body.length?L:1===t.body.length?a[0]:function(t,e){var n;return k(a,(function(i){n=i(t,e)})),n};return n&&(s.assign=function(t,e,i){return n(t,i,e)}),o&&(s.inputs=o),s},recurse:function(t,e,n){var i,o,r,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case wi.Literal:return this.value(t.value,e);case wi.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case wi.BinaryExpression:case wi.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case wi.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case wi.Identifier:return a.identifier(t.name,e,n);case wi.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n):this.nonComputedMember(i,o,e,n);case wi.CallExpression:return r=[],k(t.arguments,(function(t){r.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,i,a){for(var s=[],l=0;l":function(t,e,n){return function(i,o,r,a){var s=t(i,o,r,a)>e(i,o,r,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(i,o,r,a){var s=t(i,o,r,a)<=e(i,o,r,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(i,o,r,a){var s=t(i,o,r,a)>=e(i,o,r,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(i,o,r,a){var s=t(i,o,r,a)&&e(i,o,r,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(i,o,r,a){var s=t(i,o,r,a)||e(i,o,r,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,i){return function(o,r,a,s){var l=t(o,r,a,s)?e(o,r,a,s):n(o,r,a,s);return i?{value:l}:l}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(i,o,r,a){var s=o&&t in o?o:i;n&&1!==n&&s&&null==s[t]&&(s[t]={});var l=s?s[t]:void 0;return e?{context:s,name:t,value:l}:l}},computedMember:function(t,e,n,i){return function(o,r,a,s){var l,d,u=t(o,r,a,s);return null!=u&&(l=vi(l=e(o,r,a,s)),i&&1!==i&&u&&!u[l]&&(u[l]={}),d=u[l]),n?{context:u,name:l,value:d}:d}},nonComputedMember:function(t,e,n,i){return function(o,r,a,s){var l=t(o,r,a,s);i&&1!==i&&l&&null==l[e]&&(l[e]={});var d=null!=l?l[e]:void 0;return n?{context:l,name:e,value:d}:d}},inputs:function(t,e){return function(n,i,o,r){return r?r[e]:t(n,i,o)}}},Ei.prototype={constructor:Ei,parse:function(t){var e=this.getAst(t),n=this.astCompiler.compile(e.ast);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===wi.Literal||t.body[0].expression.type===wi.ArrayExpression||t.body[0].expression.type===wi.ObjectExpression)}(e.ast),n.constant=function(t){return t.constant}(e.ast),n.oneTime=e.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var Fi=r("$sce"),Vi={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Hi=/_([a-z])/g;function qi(t){return t.replace(Hi,Jt)}function Wi(t){var e=[];return R(t)&&k(t,(function(t){e.push(function(t){if("self"===t)return t;if(U(t)){if(t.indexOf("***")>-1)throw Fi("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=et(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(K(t))return new RegExp("^"+t.source+"$");throw Fi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Ki(){this.SCE_CONTEXTS=Vi;var e=["self"],n=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=Wi(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return arguments.length&&(n=Wi(t)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(i,o){var r=function(t){throw Fi("unsafe","Attempting to use an unsafe value in a safe context.")};function a(e,n){return"self"===e?uo(n,ao)||uo(n,t.document.baseURI?t.document.baseURI:(oo||((oo=t.document.createElement("a")).href=".",oo=oo.cloneNode(!1)),oo.href)):!!e.exec(n.href)}function s(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}i.has("$sanitize")&&(r=i.get("$sanitize"));var l=s(),d={};return d[Vi.HTML]=s(l),d[Vi.CSS]=s(l),d[Vi.MEDIA_URL]=s(l),d[Vi.URL]=s(d[Vi.MEDIA_URL]),d[Vi.JS]=s(l),d[Vi.RESOURCE_URL]=s(d[Vi.URL]),{trustAs:function(t,e){var n=d.hasOwnProperty(t)?d[t]:null;if(!n)throw Fi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||G(e)||""===e)return e;if("string"!=typeof e)throw Fi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,i){if(null===i||G(i)||""===i)return i;var s=d.hasOwnProperty(t)?d[t]:null;if(s&&i instanceof s)return i.$$unwrapTrustedValue();if(W(i.$$unwrapTrustedValue)&&(i=i.$$unwrapTrustedValue()),t===Vi.MEDIA_URL||t===Vi.URL)return o(i.toString(),t===Vi.MEDIA_URL);if(t===Vi.RESOURCE_URL){if(function(t){var i,o,r=lo(t.toString()),s=!1;for(i=0,o=e.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=Ut(Vi);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=I),i.parseAs=function(t,n){var o=e(n);return o.literal&&o.constant?o:e(n,(function(e){return i.getTrusted(t,e)}))};var o=i.parseAs,r=i.getTrusted,s=i.trustAs;return k(Vi,(function(t,e){var n=p(e);i[qi("parse_as_"+n)]=function(e){return o(t,e)},i[qi("get_trusted_"+n)]=function(e){return r(t,e)},i[qi("trust_as_"+n)]=function(e){return s(t,e)}})),i}]}function Yi(){this.$get=["$window","$document",function(t,e){var n={},i=!((!t.nw||!t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,o=E((/android (\d+)/.exec(p((t.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},l=s.body&&s.body.style,d=!1,u=!1;return l&&(d=!(!("transition"in l)&&!("webkitTransition"in l)),u=!(!("animation"in l)&&!("webkitAnimation"in l))),{history:!(!i||o<4||r),hasEvent:function(t){if("input"===t&&a)return!1;if(G(n[t])){var e=s.createElement("div");n[t]="on"+t in e}return n[t]},csp:dt(),transitions:d,animations:u,android:o}}]}function Ji(){this.$get=N((function(t){return new Xi(t)}))}function Xi(t){var e=this,n={},i=[],o=e.ALL_TASKS_TYPE="$$all$$",r=e.DEFAULT_TASK_TYPE="$$default$$";function a(){var t=i.pop();return t&&t.cb}function s(t){for(var e=i.length-1;e>=0;--e){var n=i[e];if(n.type===t)return i.splice(e,1),n.cb}}e.completeTask=function(e,i){i=i||r;try{e()}finally{!function(t){n[t=t||r]&&(n[t]--,n[o]--)}(i);var l=n[i],d=n[o];if(!d||!l)for(var u,c=d?s:a;u=c(i);)try{u()}catch(e){t.error(e)}}},e.incTaskCount=function(t){n[t=t||r]=(n[t]||0)+1,n[o]=(n[o]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||o]?i.push({type:e,cb:t}):t()}}var Qi=r("$templateRequest");function to(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,i,o,r){function a(s,l){a.totalPendingRequests++,U(s)&&!G(n.get(s))||(s=r.getTrustedResourceUrl(s));var d=i.defaults&&i.defaults.transformResponse;return H(d)?d=d.filter((function(t){return t!==Rn})):d===Rn&&(d=null),i.get(s,D({cache:n,transformResponse:d},t)).finally((function(){a.totalPendingRequests--})).then((function(t){return n.put(s,t.data)}),(function(t){return l||(t=Qi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText),e(t)),o.reject(t)}))}return a.totalPendingRequests=0,a}]}function eo(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return k(i,(function(t){var i=y.element(t).data("$binding");i&&k(i,(function(i){n?new RegExp("(^|\\s)"+et(e)+"(\\s|\\||$)").test(i)&&o.push(t):-1!==i.indexOf(e)&&o.push(t)}))})),o},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],o=0;o-1&&(n="["+n+"]"),{href:ro.href,protocol:ro.protocol?ro.protocol.replace(/:$/,""):"",host:ro.host,search:ro.search?ro.search.replace(/^\?/,""):"",hash:ro.hash?ro.hash.replace(/^#/,""):"",hostname:n,port:ro.port,pathname:"/"===ro.pathname.charAt(0)?ro.pathname:"/"+ro.pathname}}function uo(t,e){return t=lo(t),e=lo(e),t.protocol===e.protocol&&t.host===e.host}function co(){this.$get=N(t)}function po(t){var e=t[0]||{},n={},i="";function o(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,r,a,s,l,d=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(d!==i)for(t=(i=d).split("; "),n={},a=0;a0&&(l=o(r.substring(0,s)),G(n[l])&&(n[l]=o(r.substring(s+1))));return n}}function ho(){this.$get=po}function fo(t){var e="Filter";function n(i,o){if(z(i)){var r={};return k(i,(function(t,e){r[e]=n(e,t)})),r}return t.factory(i+e,o)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("currency",vo),n("date",Oo),n("filter",go),n("json",Eo),n("limitTo",Lo),n("lowercase",Ao),n("number",$o),n("orderBy",No),n("uppercase",Po)}function go(){return function(t,e,n,i){if(!w(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,a;switch(i=i||"$",bo(e)){case"function":o=e;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(t,e,n,i){var o=z(t)&&n in t;return!0===e?e=lt:W(e)||(e=function(t,e){return!(G(t)||(null===t||null===e?t!==e:z(e)||z(t)&&!j(t)||(t=p(""+t),e=p(""+e),-1===t.indexOf(e))))}),function(r){return o&&!z(r)?mo(r,t[n],e,n,!1):mo(r,t,e,n,i)}}(e,n,i,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function mo(t,e,n,i,o,r){var a=bo(t),s=bo(e);if("string"===s&&"!"===e.charAt(0))return!mo(t,e.substring(1),n,i,o);if(H(t))return t.some((function(t){return mo(t,e,n,i,o)}));switch(a){case"object":var l;if(o){for(l in t)if(l.charAt&&"$"!==l.charAt(0)&&mo(t[l],e,n,i,!0))return!0;return!r&&mo(t,e,n,i,!1)}if("object"===s){for(l in e){var d=e[l];if(!W(d)&&!G(d)){var u=l===i;if(!mo(u?t:t[l],d,n,i,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function bo(t){return null===t?"null":typeof t}function vo(t){var e=t.NUMBER_FORMATS;return function(t,n,i){G(n)&&(n=e.CURRENCY_SYM),G(i)&&(i=e.PATTERNS[1].maxFrac);var o=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:yo(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(o,n)}}function $o(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:yo(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function yo(t,e,n,i,o){if(!U(t)&&!F(t)||isNaN(t))return"";var r,a=!isFinite(t),s=!1,l=Math.abs(t)+"",d="";if(a)d="∞";else{r=function(t){var e,n,i,o,r,a=0;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;"0"===t.charAt(i);i++);if(i===(r=t.length))e=[0],n=1;else{for(r--;"0"===t.charAt(r);)r--;for(n-=i,e=[],o=0;i<=r;i++,o++)e[o]=+t.charAt(i)}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{d:e,e:a,i:n}}(l),function(t,e,n,i){var o=t.d,r=o.length-t.i,a=(e=G(e)?Math.min(Math.max(n,r),i):+e)+t.i,s=o[a];if(a>0){o.splice(Math.max(t.i,a));for(var l=a;l=5)if(a-1<0){for(var u=0;u>a;u--)o.unshift(0),t.i++;o.unshift(1),t.i++}else o[a-1]++;for(;r0?h=u.splice(c,u.length):(h=u,u=[0]);var f=[];for(u.length>=e.lgSize&&f.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)f.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&f.unshift(u.join("")),d=f.join(n),h.length&&(d+=i+h.join("")),p&&(d+="e+"+p)}return t<0&&!s?e.negPre+d+e.negSuf:e.posPre+d+e.posSuf}function xo(t,e,n,i){var o="";for((t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o="-")),t=""+t;t.length0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),xo(a,e,i,o)}}function ko(t,e,n){return function(i,o){var r=i["get"+t]();return o[h((n?"STANDALONE":"")+(e?"SHORT":"")+t)][r]}}function _o(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Co(t){return function(e){var n,i=_o(e.getFullYear()),o=(n=e,+new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))-+i);return xo(1+Math.round(o/6048e5),t)}}function Mo(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}po.$inject=["$document"],fo.$inject=["$provide"],vo.$inject=["$locale"],$o.$inject=["$locale"];var So={yyyy:wo("FullYear",4,0,!1,!0),yy:wo("FullYear",2,0,!0,!0),y:wo("FullYear",1,0,!1,!0),MMMM:ko("Month"),MMM:ko("Month",!0),MM:wo("Month",2,1),M:wo("Month",1,1),LLLL:ko("Month",!1,!0),dd:wo("Date",2),d:wo("Date",1),HH:wo("Hours",2),H:wo("Hours",1),hh:wo("Hours",2,-12),h:wo("Hours",1,-12),mm:wo("Minutes",2),m:wo("Minutes",1),ss:wo("Seconds",2),s:wo("Seconds",1),sss:wo("Milliseconds",3),EEEE:ko("Day"),EEE:ko("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var i=-1*n;return(i>=0?"+":"")+(xo(Math[i>0?"floor":"ceil"](i/60),2)+xo(Math.abs(i%60),2))},ww:Co(2),w:Co(1),G:Mo,GG:Mo,GGG:Mo,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},To=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Do=/^-?\d+$/;function Oo(t){var e=/^(\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 r,a,s="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,U(n)&&(n=Do.test(n)?E(n):function(t){var n;if(n=t.match(e)){var i=new Date(0),o=0,r=0,a=n[8]?i.setUTCFullYear:i.setFullYear,s=n[8]?i.setUTCHours:i.setHours;n[9]&&(o=E(n[9]+n[10]),r=E(n[9]+n[11])),a.call(i,E(n[1]),E(n[2])-1,E(n[3]));var l=E(n[4]||0)-o,d=E(n[5]||0)-r,u=E(n[6]||0),c=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(i,l,d,u,c),i}return t}(n)),F(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;i;)(a=To.exec(i))?i=(l=ct(l,a,1)).pop():(l.push(i),i=null);var d=n.getTimezoneOffset();return o&&(d=vt(o,d),n=yt(n,o,!0)),k(l,(function(e){s+=(r=So[e])?r(n,t.DATETIME_FORMATS,d):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Eo(){return function(t,e){return G(e)&&(e=2),gt(t,e)}}Oo.$inject=["$locale"];var Ao=N(p),Po=N(h);function Lo(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):E(e),A(e)?t:(F(t)&&(t=t.toString()),w(t)?(n=(n=!n||isNaN(n)?0:E(n))<0?Math.max(0,t.length+n):n,e>=0?Io(t,n,n+e):0===n?Io(t,e,t.length):Io(t,Math.max(0,n+e),n)):t)}}function Io(t,e,n){return U(t)?t.slice(e,n):f.call(t,e,n)}function No(t){return function(i,o,a,s){if(null==i)return i;if(!w(i))throw r("orderBy")("notarray","Expected array but received: {0}",i);H(o)||(o=[o]),0===o.length&&(o=["+"]);var l=o.map((function(e){var n=1,i=I;if(W(e))i=e;else if(U(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e)).constant)){var o=i();i=function(t){return t[o]}}return{get:i,descending:n}})),d=a?-1:1,u=W(s)?s:n,c=Array.prototype.map.call(i,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:l.map((function(i){return function(t,n){var i=typeof t;return null===t?i="null":"object"===i&&(t=function(t){return W(t.valueOf)&&e(t=t.valueOf())||j(t)&&e(t=t.toString()),t}(t)),{value:t,type:i,index:n}}(i.get(t),n)}))}}));return c.sort((function(t,e){for(var i=0,o=l.length;i=l},n.$observe("min",(function(t){t!==d&&(l=hr(t),d=t,i.$validate())}))}if(R(n.max)||n.ngMax){var u=n.max||s(n.ngMax)(t),c=hr(u);i.$validators.max=function(t,e){return i.$isEmpty(e)||G(c)||e<=c},n.$observe("max",(function(t){t!==u&&(c=hr(t),u=t,i.$validate())}))}if(R(n.step)||n.ngStep){var p=n.step||s(n.ngStep)(t),h=hr(p);i.$validators.step=function(t,e){return i.$isEmpty(e)||G(h)||mr(e,l||0,h)},n.$observe("step",(function(t){t!==p&&(h=hr(t),p=t,i.$validate())}))}},url:function(t,e,n,i,o,r){lr(0,e,n,i,o,r),sr(i),i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||Jo.test(n)}},email:function(t,e,n,i,o,r){lr(0,e,n,i,o,r),sr(i),i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||Xo.test(n)}},radio:function(t,e,n,i){var o=!n.ngTrim||"false"!==tt(n.ngTrim);G(n.name)&&e.attr("name",M()),e.on("change",(function(t){var r;e[0].checked&&(r=n.value,o&&(r=tt(r)),i.$setViewValue(r,t&&t.type))})),i.$render=function(){var t=n.value;o&&(t=tt(t)),e[0].checked=t===i.$viewValue},n.$observe("value",i.$render)},range:function(t,e,n,i,o,r){cr(0,e,0,i,"range"),pr(i),lr(0,e,n,i,o,r);var a=i.$$hasNativeValidators&&"range"===e[0].type,s=a?0:void 0,l=a?100:void 0,d=a?1:void 0,u=e[0].validity,c=R(n.min),p=R(n.max),h=R(n.step),f=i.$render;function g(t,i){e.attr(t,n[t]);var o=n[t];n.$observe(t,(function(t){t!==o&&(o=t,i(t))}))}i.$render=a&&R(u.rangeUnderflow)&&R(u.rangeOverflow)?function(){f(),i.$setViewValue(e.val())}:f,c&&(s=hr(n.min),i.$validators.min=a?function(){return!0}:function(t,e){return i.$isEmpty(e)||G(s)||e>=s},g("min",(function(t){if(s=hr(t),!A(i.$modelValue))if(a){var n=e.val();s>n&&(n=s,e.val(n)),i.$setViewValue(n)}else i.$validate()}))),p&&(l=hr(n.max),i.$validators.max=a?function(){return!0}:function(t,e){return i.$isEmpty(e)||G(l)||e<=l},g("max",(function(t){if(l=hr(t),!A(i.$modelValue))if(a){var n=e.val();l=m},a.$observe("min",(function(t){t!==g&&(m=y(t),g=t,s.$validate())}))}if(R(a.max)||a.ngMax){var b=a.max||c(a.ngMax)(o),v=y(b);s.$validators.max=function(t){return!$(t)||G(v)||n(t)<=v},a.$observe("max",(function(t){t!==b&&(v=y(t),b=t,s.$validate())}))}function $(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function y(t){return R(t)&&!V(t)?x(t)||void 0:t}function x(t,e){var i=s.$options.getOption("timezone");h&&h!==i&&(e=$t(e,vt(h)));var o=n(t,e);return!isNaN(o)&&i&&(o=yt(o,i)),o}}}function cr(t,e,n,i,o){var r=e[0];(i.$$hasNativeValidators=z(r.validity))&&i.$parsers.push((function(t){var n=e.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return t;i.$$parserName=o}))}function pr(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:Qo.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!F(e))throw Kr("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function hr(t){return R(t)&&!F(t)&&(t=parseFloat(t)),A(t)?void 0:t}function fr(t){return(0|t)===t}function gr(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-10||c[t])&&(c[t]=(c[t]||0)+e,c[t]===+(e>0)&&n.push(t))})),n.join(" ")}c||(c=Rt(),l.data("$classCounts",c)),"ngClass"!==t&&(n||(n=a("$index",(function(t){return 1&t}))),s.$watch(n,(function(t){var n;t===e?(n=h(o(n=u),1),d.$addClass(n)):function(t){t=h(o(t),-1),d.$removeClass(t)}(u),p=t}))),s.$watch(a(d[t],r),(function(t){p===e&&function(t,e){var n=o(t),r=o(e),a=i(n,r),s=i(r,n),l=h(a,-1),u=h(s,1);d.$addClass(u),d.$removeClass(l)}(u,t),u=t}))}}}];function i(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var i=0;i0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,L))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},Ko({clazz:Zr,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Yr,Jr=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Zr,priority:1,compile:function(e){return e.addClass(Ur).addClass(Vr).addClass(zr),{pre:function(t,e,n,i){var o=i[0],r=i[1]||o.$$parentForm,a=i[2];a&&(o.$options=a.$options),o.$$initGetterSetters(),r.$addControl(o),n.$observe("name",(function(t){o.$name!==t&&o.$$parentForm.$$renameControl(o,t)})),t.$on("$destroy",(function(){o.$$parentForm.$removeControl(o)}))},post:function(e,n,i,o){var r=o[0];function a(){r.$setTouched()}r.$$setUpdateOnEvents(),n.on("blur",(function(){r.$touched||(t.$$phase?e.$evalAsync(a):e.$apply(a))}))}}}}}],Xr=/(\s+|^)default(\s+|$)/;function Qr(t){this.$$options=t}Qr.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return k(t=D({},t),(function(n,i){"$inherit"===n?"*"===i?e=!0:(t[i]=this.$$options[i],"updateOn"===i&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===i&&(t.updateOnDefault=!1,t[i]=tt(n.replace(Xr,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],ea(t,this.$$options)),ea(t,Yr.$$options),new Qr(t)}},Yr=new Qr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ta=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Yr,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function ea(t,e){k(e,(function(e,n){R(t[n])||(t[n]=e)}))}var na=jo({terminal:!0,priority:1e3}),ia=r("ngOptions"),oa=/^\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]+?))?$/,ra=["$compile","$document","$parse",function(e,n,i){var o=t.document.createElement("option"),r=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,i){i[0].registerOption=L},post:function(t,a,l,d){for(var u=d[0],c=d[1],p=l.multiple,h=0,f=a.children(),g=f.length;h=0;e--){var n=m.items[e];R(n.group)?Te(n.element.parentNode):Te(n.element)}m=v.getOptions();var i={};if(m.items.forEach((function(t){var e;R(t.group)?((e=i[t.group])||(e=r.cloneNode(!1),$.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),y(t,e)):y(t,$)})),a[0].appendChild($),c.$render(),!c.$isEmpty(t)){var o=u.readValue();(v.trackBy||p?lt(t,o):t===o)||(c.$setViewValue(o),c.$render())}}))}}}}],aa=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(r,a,s){var l,d=s.count,u=s.$attr.when&&a.attr(s.$attr.when),c=s.offset||0,h=r.$eval(u)||{},f={},g=e.startSymbol(),m=e.endSymbol(),b=g+d+"-"+c+m,v=y.noop;function $(t){a.text(t||"")}k(s,(function(t,e){var n=o.exec(e);if(n){var i=(n[1]?"-":"")+p(n[2]);h[i]=a.attr(s.$attr[e])}})),k(h,(function(t,n){f[n]=e(t.replace(i,b))})),r.$watch(d,(function(e){var i=parseFloat(e),o=A(i);if(o||i in h||(i=t.pluralCat(i-c)),!(i===l||o&&A(l))){v();var a=f[i];G(a)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+u),v=L,$()):v=r.$watch(a,$),l=i}}))}}}],sa=r("ngRef"),la=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var i=yn(it(e)),o=t(n.ngRef),r=o.assign||function(){throw sa("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=e;else if(!(s=e.data("$"+a.ngRefRead+"Controller")))throw sa("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=e.data("$"+i+"Controller");r(t,s=s||e),e.on("$destroy",(function(){o(t)===s&&r(t,null)}))}}}}],da=["$parse","$animate","$compile",function(t,e,n){var i="$$NG_REMOVED",o=r("ngRepeat"),a=function(t,e,n,i,o,r,a){t[n]=i,o&&(t[o]=r),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},s=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]},d=function(t,e,n){return Ge(n)},u=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,p){var h=p.ngRepeat,f=n.$$createComment("end ngRepeat",h),g=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var m=g[1],b=g[2],v=g[3],$=g[4];if(!(g=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var y,x=g[3]||g[1],_=g[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if($){var C={$id:Ge},M=t($);y=function(t,e,n,i){return _&&(C[_]=e),C[x]=n,C.$index=i,M(t,C)}}return function(t,n,r,p,g){var m=Rt();t.$watchCollection(b,(function(r){var p,b,$,M,S,T,D,O,E,A,P,L,I=n[0],N=Rt();if(v&&(t[v]=r),w(r))E=r,O=y||d;else for(var j in O=y||u,E=[],r)c.call(r,j)&&"$"!==j.charAt(0)&&E.push(j);for(M=E.length,P=new Array(M),p=0;p=a}}}}}];function Oa(t,e,n){if(t){if(U(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,xt(n));return t}}function Ea(t){var e=E(t);return A(e)?-1:e}t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load AngularJS more than once."):(function(){var e;if(!Pt){var n=ut();(l=G(n)?i:n?t[n]:void 0)&&l.fn.on?(s=l,D(l.fn,{scope:Oe.scope,isolateScope:Oe.isolateScope,controller:Oe.controller,injector:Oe.injector,inheritedData:Oe.inheritedData})):s=pe,e=s.cleanData,s.cleanData=function(t){for(var n,i,o=0;null!=(i=t[o]);o++)(n=(s._data(i)||{}).events)&&n.$destroy&&s(i).triggerHandler("$destroy");e(t)},y.element=s,Pt=!0}}(),function(e){D(e,{errorHandlingConfig:n,bootstrap:Tt,copy:at,extend:D,merge:O,equals:lt,element:s,forEach:k,injector:Je,noop:L,bind:ht,toJson:gt,fromJson:mt,identity:I,isUndefined:G,isDefined:R,isString:U,isFunction:W,isObject:z,isNumber:F,isElement:nt,isArray:H,version:Vt,isDate:V,callbacks:{$$counter:0},getTestability:Ot,reloadWithDebugInfo:Dt,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Lt,$$minErr:r,$$csp:dt,$$encodeUriSegment:_t,$$encodeUriQuery:Ct,$$lowercase:p,$$stringify:zt,$$uppercase:h}),d=function(t){var e=r("$injector"),n=r("ng");function i(t,e,n){return t[e]||(t[e]=n())}var o=i(t,"angular",Object);return o.$$minErr=o.$$minErr||r,i(o,"module",(function(){var t={};return function(o,r,a){var s={};return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(o),r&&t.hasOwnProperty(o)&&(t[o]=null),i(t,o,(function(){if(!r)throw e("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.",o);var t=[],i=[],l=[],d=c("$injector","invoke","push",i),u={_invokeQueue:t,_configBlocks:i,_runBlocks:l,info:function(t){if(R(t)){if(!z(t))throw n("aobj","Argument '{0}' must be an object","value");return s=t,this}return s},requires:r,name:o,provider:p("$provide","provider"),factory:p("$provide","factory"),service:p("$provide","service"),value:c("$provide","value"),constant:c("$provide","constant","unshift"),decorator:p("$provide","decorator",i),animation:p("$animateProvider","register"),filter:p("$filterProvider","register"),controller:p("$controllerProvider","register"),directive:p("$compileProvider","directive"),component:p("$compileProvider","component"),config:d,run:function(t){return l.push(t),this}};return a&&d(a),u;function c(e,n,i,o){return o||(o=t),function(){return o[i||"push"]([e,n,arguments]),u}}function p(e,n,i){return i||(i=t),function(t,r){return r&&W(r)&&(r.$$moduleName=o),i.push([e,n,arguments]),u}}}))}}))}(t),d("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Ui}),t.provider("$compile",mn).directive({a:Go,input:vr,textarea:vr,form:Ho,script:ya,select:_a,option:Ca,ngBind:wr,ngBindHtml:_r,ngBindTemplate:kr,ngClass:Sr,ngClassEven:Dr,ngClassOdd:Tr,ngCloak:Or,ngController:Er,ngForm:qo,ngHide:ha,ngIf:Ir,ngInclude:Nr,ngInit:Gr,ngNonBindable:na,ngPluralize:aa,ngRef:la,ngRepeat:da,ngShow:pa,ngStyle:fa,ngSwitch:ga,ngSwitchWhen:ma,ngSwitchDefault:ba,ngOptions:ra,ngTransclude:$a,ngModel:Jr,ngList:Rr,ngChange:Cr,pattern:Sa,ngPattern:Sa,required:Ma,ngRequired:Ma,minlength:Da,ngMinlength:Da,maxlength:Ta,ngMaxlength:Ta,ngValue:xr,ngModelOptions:ta}).directive({ngInclude:jr,input:$r}).directive(Ro).directive(Ar),t.provider({$anchorScroll:Xe,$animate:an,$animateCss:dn,$$animateJs:on,$$animateQueue:rn,$$AnimateRunner:ln,$$animateAsyncRun:sn,$browser:cn,$cacheFactory:pn,$controller:Mn,$document:Sn,$$isDocumentHidden:Tn,$exceptionHandler:Dn,$filter:fo,$$forceReflow:On,$interpolate:Kn,$interval:Yn,$$intervalFactory:Jn,$http:Vn,$httpParamSerializer:jn,$httpParamSerializerJQLike:Gn,$httpBackend:qn,$xhrFactory:Hn,$jsonpCallbacks:Xn,$location:fi,$log:gi,$parse:Pi,$rootScope:Bi,$q:Li,$$q:Ii,$sce:Zi,$sceDelegate:Ki,$sniffer:Yi,$$taskTrackerFactory:Ji,$templateCache:hn,$templateRequest:to,$$testability:eo,$timeout:io,$window:co,$$rAF:zi,$$jqLite:je,$$Map:Ue,$$cookieReader:ho})}]).info({angularVersion:"1.8.2"})}(y),y.module("ngLocale",[],["$provide",function(t){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:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,i=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var i=Math.pow(10,n);return{v:n,f:(t*i|0)%i}}(t,e);return 1==n&&0==i.v?"one":"other"}})}]),s((function(){!function(e,n){var i,o,r={};if(k(Mt,(function(t){var n=t+"app";!i&&e.hasAttribute&&e.hasAttribute(n)&&(i=e,o=e.getAttribute(n))})),k(Mt,(function(t){var n,r=t+"app";!i&&(n=e.querySelector("["+r.replace(":","\\:")+"]"))&&(i=n,o=n.getAttribute(r))})),i){if(!St)return void t.console.error("AngularJS: disabling automatic bootstrap.