PageSourceSearch

https://www.visit-tel-aviv.com/bundles/site.js?v=45d0af3f-a260-4d29-902e-38cbdff17068

js visit-tel-aviv.com collected 2026-10-02 12:11:08 UTC 489,969 bytes, 1,842 lines download raw bytes

1/*!
2 * Bootstrap v3.3.7 (http://getbootstrap.com)
3 * Copyright 2011-2016 Twitter, Inc.
4 * Licensed under the MIT license
5 */�
vendor: 32,034 bytes, lines 5-6
5
6if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){
vendor: 2,604 bytes, lines 6-7
6
7this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;
7e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
8!function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else if("object"==typeof exports)module.exports=a(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";a(jQuery,moment)}}(function(a,b){"use strict";if(!b)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var c=function(c,d){var e,f,g,h,i,j,k,l={},m=!0,n=!1,o=!1,p=0,q=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],r=["days","months","years","decades"],s=["top","bottom","auto"],t=["left","right","auto"],u=["default","top","bottom"],v={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},w={},x=function(){return void 0!==b.tz&&void 0!==d.timeZone&&null!==d.timeZone&&""!==d.timeZone},y=function(a){var c;return c=void 0===a||null===a?b():b.isDate(a)||b.isMoment(a)?b(a):x()?b.tz(a,j,d.useStrict,d.timeZone):b(a,j,d.useStrict),x()&&c.tz(d.timeZone),c},z=function(a){if("string"!=typeof a||a.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(a){case"y":return i.indexOf("Y")!==-1;case"M":return i.indexOf("M")!==-1;case"d":return i.toLowerCase().indexOf("d")!==-1;case"h":case"H":return i.toLowerCase().indexOf("h")!==-1;case"m":return i.indexOf("m")!==-1;case"s":return i.indexOf("s")!==-1;default:return!1}},A=function(){return z("h")||z("m")||z("s")},B=function(){return z("y")||z("M")||z("d")},C=function(){var b=a("<thead>").append(a("<tr>").append(a("<th>").addClass("prev").attr("data-action","previous").append(a("<span>").addClass(d.icons.previous))).append(a("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",d.calendarWeeks?"6":"5")).append(a("<th>").addClass("next").attr("data-action","next").append(a("<span>").addClass(d.icons.next)))),c=a("<tbody>").append(a("<tr>").append(a("<td>").attr("colspan",d.calendarWeeks?"8":"7")));return[a("<div>").addClass("datepicker-days").append(a("<table>").addClass("table-condensed").append(b).append(a("<tbody>"))),a("<div>").addClass("datepicker-months").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-years").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-decades").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone()))]},D=function(){var b=a("<tr>"),c=a("<tr>"),e=a("<tr>");return z("h")&&(b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:d.tooltips.pickHour}
vendor: 31,378 bytes, lines 8-9
8).attr("data-action","showHours"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(a("<span>").addClass(d.icons.down))))),z("m")&&(z("h")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:d.tooltips.pickMinute}).attr("data-action","showMinutes"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(a("<span>").addClass(d.icons.down))))),z("s")&&(z("m")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:d.tooltips.pickSecond}).attr("data-action","showSeconds"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(a("<span>").addClass(d.icons.down))))),h||(b.append(a("<td>").addClass("separator")),c.append(a("<td>").append(a("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:d.tooltips.togglePeriod}))),e.append(a("<td>").addClass("separator"))),a("<div>").addClass("timepicker-picker").append(a("<table>").addClass("table-condensed").append([b,c,e]))},E=function(){var b=a("<div>").addClass("timepicker-hours").append(a("<table>").addClass("table-condensed")),c=a("<div>").addClass("timepicker-minutes").append(a("<table>").addClass("table-condensed")),d=a("<div>").addClass("timepicker-seconds").append(a("<table>").addClass("table-condensed")),e=[D()];return z("h")&&e.push(b),z("m")&&e.push(c),z("s")&&e.push(d),e},F=function(){var b=[];return d.showTodayButton&&b.push(a("<td>").append(a("<a>").attr({"data-action":"today",title:d.tooltips.today}).append(a("<span>").addClass(d.icons.today)))),!d.sideBySide&&B()&&A()&&b.push(a("<td>").append(a("<a>").attr({"data-action":"togglePicker",title:d.tooltips.selectTime}).append(a("<span>").addClass(d.icons.time)))),d.showClear&&b.push(a("<td>").append(a("<a>").attr({"data-action":"clear",title:d.tooltips.clear}).append(a("<span>").addClass(d.icons.clear)))),d.showClose&&b.push(a("<td>").append(a("<a>").attr({"data-action":"close",title:d.tooltips.close}).append(a("<span>").addClass(d.icons.close)))),a("<table>").addClass("table-condensed").append(a("<tbody>").append(a("<tr>").append(b)))},G=function(){var b=a("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),c=a("<div>").addClass("datepicker").append(C()),e=a("<div>").addClass("timepicker").append(E()),f=a("<ul>").addClass("list-unstyled"),g=a("<li>").addClass("picker-switch"+(d.collapse?" accordion-toggle":"")).append(F());return d.inline&&b.removeClass("dropdown-menu"),h&&b.addClass("usetwentyfour"),z("s")&&!h&&b.addClass("wider"),d.sideBySide&&B()&&A()?(b.addClass("timepicker-sbs"),"top"===d.toolbarPlacement&&b.append(g),b.append(a("<div>").addClass("row").append(c.addClass("col-md-6")).append(e.addClass("col-md-6"))),"bottom"===d.toolbarPlacement&&b.append(g),b):("top"===d.toolbarPlacement&&f.append(g),B()&&f.append(a("<li>").addClass(d.collapse&&A()?"collapse in":"").append(c)),"default"===d.toolbarPlacement&&f.append(g),A()&&f.append(a("<li>").addClass(d.collapse&&B()?"collapse":"").append(e)),"bottom"===d.toolbarPlacement&&f.append(g),b.append(f))},H=function(){var b,e={};return b=c.is("input")||d.inline?c.data():c.find("input").data(),b.dateOptions&&b.dateOptions instanceof Object&&(e=a.extend(!0,e,b.dateOptions)),a.each(d,function(a){var c="date"+a.charAt(0).toUpperCase()+a.slice(1);void 0!==b[c]&&(e[a]=b[c])}),e},I=function(){var b,e=(n||c).position(),f=(n||c).offset(),g=d.widgetPositioning.vertical,h=d.widgetPositioning.horizontal;if(d.widgetParent)b=d.widgetParent.append(o);else if(c.is("input"))b=c.after(o).parent();else{if(d.inline)return void(b=c.append(o));b=c,c.children().first().after(o)}if("auto"===g&&(g=f.top+1.5*o.height()>=a(window).height()+a(window).scrollTop()&&o.height()+c.outerHeight()<f.top?"top":"bottom"),"auto"===h&&(h=b.width()<f.left+o.outerWidth()/2&&f.left+o.outerWidth()>a(window).width()?"right":"left"),"top"===g?o.addClass("top").removeClass("bottom"):o.addClass("bottom").removeClass("top"),"right"===h?o.addClass("pull-right"):o.removeClass("pull-right"),"static"===b.css("position")&&(b=b.parents().filter(function(){return"static"!==a(this).css("position")}).first()),0===b.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");o.css({top:"top"===g?"auto":e.top+c.outerHeight(),bottom:"top"===g?b.outerHeight()-(b===c?0:e.top):"auto",left:"left"===h?b===c?0:e.left:"auto",right:"left"===h?"auto":b.outerWidth()-c.outerWidth()-(b===c?0:e.left)})},J=function(a){"dp.change"===a.type&&(a.date&&a.date.isSame(a.oldDate)||!a.date&&!a.oldDate)||c.trigger(a)},K=function(a){"y"===a&&(a="YYYY"),J({type:"dp.update",change:a,viewDate:f.clone()})},L=function(a){o&&(a&&(k=Math.max(p,Math.min(3,k+a))),o.find(".datepicker > div").hide().filter(".datepicker-"+q[k].clsName).show())},M=function(){var b=a("<tr>"),c=f.clone().startOf("w").startOf("d");for(d.calendarWeeks===!0&&b.append(a("<th>").addClass("cw").text("#"));c.isBefore(f.clone().endOf("w"));)b.append(a("<th>").addClass("dow").text(c.format("dd"))),c.add(1,"d");o.find(".datepicker-days thead").append(b)},N=function(a){return d.disabledDates[a.format("YYYY-MM-DD")]===!0},O=function(a){return d.enabledDates[a.format("YYYY-MM-DD")]===!0},P=function(a){return d.disabledHours[a.format("H")]===!0},Q=function(a){return d.enabledHours[a.format("H")]===!0},R=function(b,c){if(!b.isValid())return!1;if(d.disabledDates&&"d"===c&&N(b))return!1;if(d.enabledDates&&"d"===c&&!O(b))return!1;if(d.minDate&&b.isBefore(d.minDate,c))return!1;if(d.maxDate&&b.isAfter(d.maxDate,c))return!1;if(d.daysOfWeekDisabled&&"d"===c&&d.daysOfWeekDisabled.indexOf(b.day())!==-1)return!1;if(d.disabledHours&&("h"===c||"m"===c||"s"===c)&&P(b))return!1;if(d.enabledHours&&("h"===c||"m"===c||"s"===c)&&!Q(b))return!1;if(d.disabledTimeIntervals&&("h"===c||"m"===c||"s"===c)){var e=!1;if(a.each(d.disabledTimeIntervals,function(){if(b.isBetween(this[0],this[1]))return e=!0,!1}),e)return!1}return!0},S=function(){for(var b=[],c=f.clone().startOf("y").startOf("d");c.isSame(f,"y");)b.push(a("<span>").attr("data-action","selectMonth").addClass("month").text(c.format("MMM"))),c.add(1,"M");o.find(".datepicker-months td").empty().append(b)},T=function(){var b=o.find(".datepicker-months"),c=b.find("th"),g=b.find("tbody").find("span");c.eq(0).find("span").attr("title",d.tooltips.prevYear),c.eq(1).attr("title",d.tooltips.selectYear),c.eq(2).find("span").attr("title",d.tooltips.nextYear),b.find(".disabled").removeClass("disabled"),R(f.clone().subtract(1,"y"),"y")||c.eq(0).addClass("disabled"),c.eq(1).text(f.year()),R(f.clone().add(1,"y"),"y")||c.eq(2).addClass("disabled"),g.removeClass("active"),e.isSame(f,"y")&&!m&&g.eq(e.month()).addClass("active"),g.each(function(b){R(f.clone().month(b),"M")||a(this).addClass("disabled")})},U=function(){var a=o.find(".datepicker-years"),b=a.find("th"),c=f.clone().subtract(5,"y"),g=f.clone().add(6,"y"),h="";for(b.eq(0).find("span").attr("title",d.tooltips.prevDecade),b.eq(1).attr("title",d.tooltips.selectDecade),b.eq(2).find("span").attr("title",d.tooltips.nextDecade),a.find(".disabled").removeClass("disabled"),d.minDate&&d.minDate.isAfter(c,"y")&&b.eq(0).addClass("disabled"),b.eq(1).text(c.year()+"-"+g.year()),d.maxDate&&d.maxDate.isBefore(g,"y")&&b.eq(2).addClass("disabled");!c.isAfter(g,"y");)h+='<span data-action="selectYear" class="year'+(c.isSame(e,"y")&&!m?" active":"")+(R(c,"y")?"":" disabled")+'">'+c.year()+"</span>",c.add(1,"y");a.find("td").html(h)},V=function(){var a,c=o.find(".datepicker-decades"),g=c.find("th"),h=b({y:f.year()-f.year()%100-1}),i=h.clone().add(100,"y"),j=h.clone(),k=!1,l=!1,m="";for(g.eq(0).find("span").attr("title",d.tooltips.prevCentury),g.eq(2).find("span").attr("title",d.tooltips.nextCentury),c.find(".disabled").removeClass("disabled"),(h.isSame(b({y:1900}))||d.minDate&&d.minDate.isAfter(h,"y"))&&g.eq(0).addClass("disabled"),g.eq(1).text(h.year()+"-"+i.year()),(h.isSame(b({y:2e3}))||d.maxDate&&d.maxDate.isBefore(i,"y"))&&g.eq(2).addClass("disabled");!h.isAfter(i,"y");)a=h.year()+12,k=d.minDate&&d.minDate.isAfter(h,"y")&&d.minDate.year()<=a,l=d.maxDate&&d.maxDate.isAfter(h,"y")&&d.maxDate.year()<=a,m+='<span data-action="selectDecade" class="decade'+(e.isAfter(h)&&e.year()<=a?" active":"")+(R(h,"y")||k||l?"":" disabled")+'" data-selection="'+(h.year()+6)+'">'+(h.year()+1)+" - "+(h.year()+12)+"</span>",h.add(12,"y");m+="<span></span><span></span><span></span>",c.find("td").html(m),g.eq(1).text(j.year()+1+"-"+h.year())},W=function(){var b,c,g,h=o.find(".datepicker-days"),i=h.find("th"),j=[],k=[];if(B()){for(i.eq(0).find("span").attr("title",d.tooltips.prevMonth),i.eq(1).attr("title",d.tooltips.selectMonth),i.eq(2).find("span").attr("title",d.tooltips.nextMonth),h.find(".disabled").removeClass("disabled"),i.eq(1).text(f.format(d.dayViewHeaderFormat)),R(f.clone().subtract(1,"M"),"M")||i.eq(0).addClass("disabled"),R(f.clone().add(1,"M"),"M")||i.eq(2).addClass("disabled"),b=f.clone().startOf("M").startOf("w").startOf("d"),g=0;g<42;g++)0===b.weekday()&&(c=a("<tr>"),d.calendarWeeks&&c.append('<td class="cw">'+b.week()+"</td>"),j.push(c)),k=["day"],b.isBefore(f,"M")&&k.push("old"),b.isAfter(f,"M")&&k.push("new"),b.isSame(e,"d")&&!m&&k.push("active"),R(b,"d")||k.push("disabled"),b.isSame(y(),"d")&&k.push("today"),0!==b.day()&&6!==b.day()||k.push("weekend"),J({type:"dp.classify",date:b,classNames:k}),c.append('<td data-action="selectDay" data-day="'+b.format("L")+'" class="'+k.join(" ")+'">'+b.date()+"</td>"),b.add(1,"d");h.find("tbody").empty().append(j),T(),U(),V()}},X=function(){var b=o.find(".timepicker-hours table"),c=f.clone().startOf("d"),d=[],e=a("<tr>");for(f.hour()>11&&!h&&c.hour(12);c.isSame(f,"d")&&(h||f.hour()<12&&c.hour()<12||f.hour()>11);)c.hour()%4===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectHour" class="hour'+(R(c,"h")?"":" disabled")+'">'+c.format(h?"HH":"hh")+"</td>"),c.add(1,"h");b.empty().append(d)},Y=function(){for(var b=o.find(".timepicker-minutes table"),c=f.clone().startOf("h"),e=[],g=a("<tr>"),h=1===d.stepping?5:d.stepping;f.isSame(c,"h");)c.minute()%(4*h)===0&&(g=a("<tr>"),e.push(g)),g.append('<td data-action="selectMinute" class="minute'+(R(c,"m")?"":" disabled")+'">'+c.format("mm")+"</td>"),c.add(h,"m");b.empty().append(e)},Z=function(){for(var b=o.find(".timepicker-seconds table"),c=f.clone().startOf("m"),d=[],e=a("<tr>");f.isSame(c,"m");)c.second()%20===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectSecond" class="second'+(R(c,"s")?"":" disabled")+'">'+c.format("ss")+"</td>"),c.add(5,"s");b.empty().append(d)},$=function(){var a,b,c=o.find(".timepicker span[data-time-component]");h||(a=o.find(".timepicker [data-action=togglePeriod]"),b=e.clone().add(e.hours()>=12?-12:12,"h"),a.text(e.format("A")),R(b,"h")?a.removeClass("disabled"):a.addClass("disabled")),c.filter("[data-time-component=hours]").text(e.format(h?"HH":"hh")),c.filter("[data-time-component=minutes]").text(e.format("mm")),c.filter("[data-time-component=seconds]").text(e.format("ss")),X(),Y(),Z()},_=function(){o&&(W(),$())},aa=function(a){var b=m?null:e;if(!a)return m=!0,g.val(""),c.data("date",""),J({type:"dp.change",date:!1,oldDate:b}),void _();if(a=a.clone().locale(d.locale),x()&&a.tz(d.timeZone),1!==d.stepping)for(a.minutes(Math.round(a.minutes()/d.stepping)*d.stepping).seconds(0);d.minDate&&a.isBefore(d.minDate);)a.add(d.stepping,"minutes");R(a)?(e=a,f=e.clone(),g.val(e.format(i)),c.data("date",e.format(i)),m=!1,_(),J({type:"dp.change",date:e.clone(),oldDate:b})):(d.keepInvalid?J({type:"dp.change",date:a,oldDate:b}):g.val(m?"":e.format(i)),J({type:"dp.error",date:a,oldDate:b}))},ba=function(){var b=!1;return o?(o.find(".collapse").each(function(){var c=a(this).data("collapse");return!c||!c.transitioning||(b=!0,!1)}),b?l:(n&&n.hasClass("btn")&&n.toggleClass("active"),o.hide(),a(window).off("resize",I),o.off("click","[data-action]"),o.off("mousedown",!1),o.remove(),o=!1,J({type:"dp.hide",date:e.clone()}),g.blur(),f=e.clone(),l)):l},ca=function(){aa(null)},da=function(a){return void 0===d.parseInputDate?(!b.isMoment(a)||a instanceof Date)&&(a=y(a)):a=d.parseInputDate(a),a},ea={next:function(){var a=q[k].navFnc;f.add(q[k].navStep,a),W(),K(a)},previous:function(){var a=q[k].navFnc;f.subtract(q[k].navStep,a),W(),K(a)},pickerSwitch:function(){L(1)},selectMonth:function(b){var c=a(b.target).closest("tbody").find("span").index(a(b.target));f.month(c),k===p?(aa(e.clone().year(f.year()).month(f.month())),d.inline||ba()):(L(-1),W()),K("M")},selectYear:function(b){var c=parseInt(a(b.target).text(),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDecade:function(b){var c=parseInt(a(b.target).data("selection"),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDay:function(b){var c=f.clone();a(b.target).is(".old")&&c.subtract(1,"M"),a(b.target).is(".new")&&c.add(1,"M"),aa(c.date(parseInt(a(b.target).text(),10))),A()||d.keepOpen||d.inline||ba()},incrementHours:function(){var a=e.clone().add(1,"h");R(a,"h")&&aa(a)},incrementMinutes:function(){var a=e.clone().add(d.stepping,"m");R(a,"m")&&aa(a)},incrementSeconds:function(){var a=e.clone().add(1,"s");R(a,"s")&&aa(a)},decrementHours:function(){var a=e.clone().subtract(1,"h");R(a,"h")&&aa(a)},decrementMinutes:function(){var a=e.clone().subtract(d.stepping,"m");R(a,"m")&&aa(a)},decrementSeconds:function(){var a=e.clone().subtract(1,"s");R(a,"s")&&aa(a)},togglePeriod:function(){aa(e.clone().add(e.hours()>=12?-12:12,"h"))},togglePicker:function(b){var c,e=a(b.target),f=e.closest("ul"),g=f.find(".in"),h=f.find(".collapse:not(.in)");if(g&&g.length){if(c=g.data("collapse"),c&&c.transitioning)return;g.collapse?(g.collapse("hide"),h.collapse("show")):(g.removeClass("in"),h.addClass("in")),e.is("span")?e.toggleClass(d.icons.time+" "+d.icons.date):e.find("span").toggleClass(d.icons.time+" "+d.icons.date)}},showPicker:function(){o.find(".timepicker > div:not(.timepicker-picker)").hide(),o.find(".timepicker .timepicker-picker").show()},showHours:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-hours").show()},showMinutes:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);h||(e.hours()>=12?12!==c&&(c+=12):12===c&&(c=0)),aa(e.clone().hours(c)),ea.showPicker.call(l)},selectMinute:function(b){aa(e.clone().minutes(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},selectSecond:function(b){aa(e.clone().seconds(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},clear:ca,today:function(){var a=y();R(a,"d")&&aa(a)},close:ba},fa=function(b){return!a(b.currentTarget).is(".disabled")&&(ea[a(b.currentTarget).data("action")].apply(l,arguments),!1)},ga=function(){var b,c={year:function(a){return a.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(a){return a.date(1).hours(0).seconds(0).minutes(0)},day:function(a){return a.hours(0).seconds(0).minutes(0)},hour:function(a){return a.seconds(0).minutes(0)},minute:function(a){return a.seconds(0)}};return g.prop("disabled")||!d.ignoreReadonly&&g.prop("readonly")||o?l:(void 0!==g.val()&&0!==g.val().trim().length?aa(da(g.val().trim())):m&&d.useCurrent&&(d.inline||g.is("input")&&0===g.val().trim().length)&&(b=y(),"string"==typeof d.useCurrent&&(b=c[d.useCurrent](b)),aa(b)),o=G(),M(),S(),o.find(".timepicker-hours").hide(),o.find(".timepicker-minutes").hide(),o.find(".timepicker-seconds").hide(),_(),L(),a(window).on("resize",I),o.on("click","[data-action]",fa),o.on("mousedown",!1),n&&n.hasClass("btn")&&n.toggleClass("active"),I(),o.show(),d.focusOnShow&&!g.is(":focus")&&g.focus(),J({type:"dp.show"}),l)},ha=function(){return o?ba():ga()},ia=function(a){var b,c,e,f,g=null,h=[],i={},j=a.which,k="p";w[j]=k;for(b in w)w.hasOwnProperty(b)&&w[b]===k&&(h.push(b),parseInt(b,10)!==j&&(i[b]=!0));for(b in d.keyBinds)if(d.keyBinds.hasOwnProperty(b)&&"function"==typeof d.keyBinds[b]&&(e=b.split(" "),e.length===h.length&&v[j]===e[e.length-1])){for(f=!0,c=e.length-2;c>=0;c--)if(!(v[e[c]]in i)){f=!1;break}if(f){g=d.keyBinds[b];break}}g&&(g.call(l,o),a.stopPropagation(),a.preventDefault())},ja=function(a){w[a.which]="r",a.stopPropagation(),a.preventDefault()},ka=function(b){var c=a(b.target).val().trim(),d=c?da(c):null;return aa(d),b.stopImmediatePropagation(),!1},la=function(){g.on({change:ka,blur:d.debug?"":ba,keydown:ia,keyup:ja,focus:d.allowInputToggle?ga:""}),c.is("input")?g.on({focus:ga}):n&&(n.on("click",ha),n.on("mousedown",!1))},ma=function(){g.off({change:ka,blur:blur,keydown:ia,keyup:ja,focus:d.allowInputToggle?ba:""}),c.is("input")?g.off({focus:ga}):n&&(n.off("click",ha),n.off("mousedown",!1))},na=function(b){var c={};return a.each(b,function(){var a=da(this);a.isValid()&&(c[a.format("YYYY-MM-DD")]=!0)}),!!Object.keys(c).length&&c},oa=function(b){var c={};return a.each(b,function(){c[this]=!0}),!!Object.keys(c).length&&c},pa=function(){var a=d.format||"L LT";i=a.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){var b=e.localeData().longDateFormat(a)||a;return b.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){return e.localeData().longDateFormat(a)||a})}),j=d.extraFormats?d.extraFormats.slice():[],j.indexOf(a)<0&&j.indexOf(i)<0&&j.push(i),h=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,z("y")&&(p=2),z("M")&&(p=1),z("d")&&(p=0),k=Math.max(p,k),m||aa(e)};if(l.destroy=function(){ba(),ma(),c.removeData("DateTimePicker"),c.removeData("date")},l.toggle=ha,l.show=ga,l.hide=ba,l.disable=function(){return ba(),n&&n.hasClass("btn")&&n.addClass("disabled"),g.prop("disabled",!0),l},l.enable=function(){return n&&n.hasClass("btn")&&n.removeClass("disabled"),g.prop("disabled",!1),l},l.ignoreReadonly=function(a){if(0===arguments.length)return d.ignoreReadonly;if("boolean"!=typeof a)throw new TypeError("ignoreReadonly () expects a boolean parameter");return d.ignoreReadonly=a,l},l.options=function(b){if(0===arguments.length)return a.extend(!0,{},d);if(!(b instanceof Object))throw new TypeError("options() options parameter should be an object");return a.extend(!0,d,b),a.each(d,function(a,b){if(void 0===l[a])throw new TypeError("option "+a+" is not recognized!");l[a](b)}),l},l.date=function(a){if(0===arguments.length)return m?null:e.clone();if(!(null===a||"string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return aa(null===a?null:da(a)),l},l.format=function(a){if(0===arguments.length)return d.format;if("string"!=typeof a&&("boolean"!=typeof a||a!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+a);return d.format=a,i&&pa(),l},l.timeZone=function(a){if(0===arguments.length)return d.timeZone;if("string"!=typeof a)throw new TypeError("newZone() expects a string parameter");return d.timeZone=a,l},l.dayViewHeaderFormat=function(a){if(0===arguments.length)return d.dayViewHeaderFormat;if("string"!=typeof a)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return d.dayViewHeaderFormat=a,l},l.extraFormats=function(a){if(0===arguments.length)return d.extraFormats;if(a!==!1&&!(a instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return d.extraFormats=a,j&&pa(),l},l.disabledDates=function(b){if(0===arguments.length)return d.disabledDates?a.extend({},d.disabledDates):d.disabledDates;if(!b)return d.disabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return d.disabledDates=na(b),d.enabledDates=!1,_(),l},l.enabledDates=function(b){if(0===arguments.length)return d.enabledDates?a.extend({},d.enabledDates):d.enabledDates;if(!b)return d.enabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return d.enabledDates=na(b),d.disabledDates=!1,_(),l},l.daysOfWeekDisabled=function(a){if(0===arguments.length)return d.daysOfWeekDisabled.splice(0);if("boolean"==typeof a&&!a)return d.daysOfWeekDisabled=!1,_(),l;if(!(a instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(d.daysOfWeekDisabled=a.reduce(function(a,b){return b=parseInt(b,10),b>6||b<0||isNaN(b)?a:(a.indexOf(b)===-1&&a.push(b),a)},[]).sort(),d.useCurrent&&!d.keepInvalid){for(var b=0;!R(e,"d");){if(e.add(1,"d"),31===b)throw"Tried 31 times to find a valid date";b++}aa(e)}return _(),l},l.maxDate=function(a){if(0===arguments.length)return d.maxDate?d.maxDate.clone():d.maxDate;if("boolean"==typeof a&&a===!1)return d.maxDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+a);if(d.minDate&&b.isBefore(d.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+b.format(i));return d.maxDate=b,d.useCurrent&&!d.keepInvalid&&e.isAfter(a)&&aa(d.maxDate),f.isAfter(b)&&(f=b.clone().subtract(d.stepping,"m")),_(),l},l.minDate=function(a){if(0===arguments.length)return d.minDate?d.minDate.clone():d.minDate;if("boolean"==typeof a&&a===!1)return d.minDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("minDate() Could not parse date parameter: "+a);if(d.maxDate&&b.isAfter(d.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+b.format(i));return d.minDate=b,d.useCurrent&&!d.keepInvalid&&e.isBefore(a)&&aa(d.minDate),f.isBefore(b)&&(f=b.clone().add(d.stepping,"m")),_(),l},l.defaultDate=function(a){if(0===arguments.length)return d.defaultDate?d.defaultDate.clone():d.defaultDate;if(!a)return d.defaultDate=!1,l;"string"==typeof a&&(a="now"===a||"moment"===a?y():y(a));var b=da(a);if(!b.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+a);if(!R(b))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return d.defaultDate=b,(d.defaultDate&&d.inline||""===g.val().trim())&&aa(d.defaultDate),l},l.locale=function(a){if(0===arguments.length)return d.locale;if(!b.localeData(a))throw new TypeError("locale() locale "+a+" is not loaded from moment locales!");return d.locale=a,e.locale(d.locale),f.locale(d.locale),i&&pa(),o&&(ba(),ga()),l},l.stepping=function(a){return 0===arguments.length?d.stepping:(a=parseInt(a,10),(isNaN(a)||a<1)&&(a=1),d.stepping=a,l)},l.useCurrent=function(a){var b=["year","month","day","hour","minute"];if(0===arguments.length)return d.useCurrent;if("boolean"!=typeof a&&"string"!=typeof a)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof a&&b.indexOf(a.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+b.join(", "));return d.useCurrent=a,l},l.collapse=function(a){if(0===arguments.length)return d.collapse;if("boolean"!=typeof a)throw new TypeError("collapse() expects a boolean parameter");return d.collapse===a?l:(d.collapse=a,o&&(ba(),ga()),l)},l.icons=function(b){if(0===arguments.length)return a.extend({},d.icons);if(!(b instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return a.extend(d.icons,b),o&&(ba(),ga()),l},l.tooltips=function(b){if(0===arguments.length)return a.extend({},d.tooltips);if(!(b instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return a.extend(d.tooltips,b),o&&(ba(),ga()),l},l.useStrict=function(a){if(0===arguments.length)return d.useStrict;if("boolean"!=typeof a)throw new TypeError("useStrict() expects a boolean parameter");return d.useStrict=a,l},l.sideBySide=function(a){if(0===arguments.length)return d.sideBySide;if("boolean"!=typeof a)throw new TypeError("sideBySide() expects a boolean parameter");return d.sideBySide=a,o&&(ba(),ga()),l},l.viewMode=function(a){if(0===arguments.length)return d.viewMode;if("string"!=typeof a)throw new TypeError("viewMode() expects a string parameter");if(r.indexOf(a)===-1)throw new TypeError("viewMode() parameter must be one of ("+r.join(", ")+") value");return d.viewMode=a,k=Math.max(r.indexOf(a),p),L(),l},l.toolbarPlacement=function(a){if(0===arguments.length)return d.toolbarPlacement;if("string"!=typeof a)throw new TypeError("toolbarPlacement() expects a string parameter");if(u.indexOf(a)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+u.join(", ")+") value");return d.toolbarPlacement=a,o&&(ba(),ga()),l},l.widgetPositioning=function(b){if(0===arguments.length)return a.extend({},d.widgetPositioning);if("[object Object]"!=={}.toString.call(b))throw new TypeError("widgetPositioning() expects an object variable");if(b.horizontal){if("string"!=typeof b.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(b.horizontal=b.horizontal.toLowerCase(),t.indexOf(b.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+t.join(", ")+")");d.widgetPositioning.horizontal=b.horizontal}if(b.vertical){if("string"!=typeof b.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(b.vertical=b.vertical.toLowerCase(),s.indexOf(b.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+s.join(", ")+")");d.widgetPositioning.vertical=b.vertical}return _(),l},l.calendarWeeks=function(a){if(0===arguments.length)return d.calendarWeeks;if("boolean"!=typeof a)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return d.calendarWeeks=a,_(),l},l.showTodayButton=function(a){if(0===arguments.length)return d.showTodayButton;if("boolean"!=typeof a)throw new TypeError("showTodayButton() expects a boolean parameter");return d.showTodayButton=a,o&&(ba(),ga()),l},l.showClear=function(a){if(0===arguments.length)return d.showClear;if("boolean"!=typeof a)throw new TypeError("showClear() expects a boolean parameter");return d.showClear=a,o&&(ba(),ga()),l},l.widgetParent=function(b){if(0===arguments.length)return d.widgetParent;if("string"==typeof b&&(b=a(b)),null!==b&&"string"!=typeof b&&!(b instanceof a))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return d.widgetParent=b,o&&(ba(),ga()),l},l.keepOpen=function(a){if(0===arguments.length)return d.keepOpen;if("boolean"!=typeof a)throw new TypeError("keepOpen() expects a boolean parameter");return d.keepOpen=a,l},l.focusOnShow=function(a){if(0===arguments.length)return d.focusOnShow;if("boolean"!=typeof a)throw new TypeError("focusOnShow() expects a boolean parameter");return d.focusOnShow=a,l},l.inline=function(a){if(0===arguments.length)return d.inline;if("boolean"!=typeof a)throw new TypeError("inline() expects a boolean parameter");return d.inline=a,l},l.clear=function(){return ca(),l},l.keyBinds=function(a){return 0===arguments.length?d.keyBinds:(d.keyBinds=a,l)},l.getMoment=function(a){return y(a)},l.debug=function(a){if("boolean"!=typeof a)throw new TypeError("debug() expects a boolean parameter");return d.debug=a,l},l.allowInputToggle=function(a){if(0===arguments.length)return d.allowInputToggle;if("boolean"!=typeof a)throw new TypeError("allowInputToggle() expects a boolean parameter");return d.allowInputToggle=a,l},l.showClose=function(a){if(0===arguments.length)return d.showClose;if("boolean"!=typeof a)throw new TypeError("showClose() expects a boolean parameter");return d.showClose=a,l},l.keepInvalid=function(a){if(0===arguments.length)return d.keepInvalid;if("boolean"!=typeof a)throw new TypeError("keepInvalid() expects a boolean parameter");
9return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)return d.datepickerInput;if("string"!=typeof a)throw new TypeError("datepickerInput() expects a string parameter");return d.datepickerInput=a,l},l.parseInputDate=function(a){if(0===arguments.length)return d.parseInputDate;if("function"!=typeof a)throw new TypeError("parseInputDate() sholud be as function");return d.parseInputDate=a,l},l.disabledTimeIntervals=function(b){if(0===arguments.length)return d.disabledTimeIntervals?a.extend({},d.disabledTimeIntervals):d.disabledTimeIntervals;if(!b)return d.disabledTimeIntervals=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return d.disabledTimeIntervals=b,_(),l},l.disabledHours=function(b){if(0===arguments.length)return d.disabledHours?a.extend({},d.disabledHours):d.disabledHours;if(!b)return d.disabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(d.disabledHours=oa(b),d.enabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.enabledHours=function(b){if(0===arguments.length)return d.enabledHours?a.extend({},d.enabledHours):d.enabledHours;if(!b)return d.enabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(d.enabledHours=oa(b),d.disabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.viewDate=function(a){if(0===arguments.length)return f.clone();if(!a)return f=e.clone(),l;if(!("string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return f=da(a),K(),l},c.is("input"))g=c;else if(g=c.find(d.datepickerInput),0===g.length)g=c.find("input");else if(!g.is("input"))throw new Error('CSS class "'+d.datepickerInput+'" cannot be applied to non input element');if(c.hasClass("input-group")&&(n=0===c.find(".datepickerbutton").length?c.find(".input-group-addon"):c.find(".datepickerbutton")),!d.inline&&!g.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e=y(),f=e.clone(),a.extend(!0,d,H()),l.options(d),pa(),la(),g.prop("disabled")&&l.disable(),g.is("input")&&0!==g.val().trim().length?aa(da(g.val().trim())):d.defaultDate&&void 0===g.attr("placeholder")&&aa(d.defaultDate),d.inline&&ga(),l};return a.fn.datetimepicker=function(b){b=b||{};
9var d,e=Array.prototype.slice.call(arguments,1),f=!0,g=["destroy","hide","show","toggle"];if("object"==typeof b)return this.each(function(){var d,e=a(this);e.data("DateTimePicker")||(d=a.extend(!0,{},a.fn.datetimepicker.defaults,b),e.data("DateTimePicker",c(e,d)))});if("string"==typeof b)return this.each(function(){var c=a(this),g=c.data("DateTimePicker");if(!g)throw new Error('bootstrap-datetimepicker("'+b+'") method was called on an element that is not using DateTimePicker');d=g[b].apply(g,e),f=d===g}),f||a.inArray(b,g)>-1?this:d;throw new TypeError("Invalid arguments for DateTimePicker: "+b)},a.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:b.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(7,"d")):this.date(b.clone().add(this.stepping(),"m"))}},down:function(a){if(!a)return void this.show();var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(7,"d")):this.date(b.clone().subtract(this.stepping(),"m"))},"control up":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(1,"y")):this.date(b.clone().add(1,"h"))}},"control down":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(1,"y")):this.date(b.clone().subtract(1,"h"))}},left:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"d"))}},right:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"d"))}},pageUp:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"M"))}},pageDown:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(a){a&&a.find(".timepicker").is(":visible")&&a.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},a.fn.datetimepicker});
10!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 10
10sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 10
10ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
10slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
10parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
10,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 10
10,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
10!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
10):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
10o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
10,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
11/*!
12 * parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/)
13 * @copyright 2016 PixelCog, Inc.
14 * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
15 */
16!function(t,i,e,s){function o(i,e){var h=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var r=(this.position+"").toLowerCase().match(/\S+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),("top"==r[0]||"bottom"==r[0]||"left"==r[1]||"right"==r[1])&&(r=[r[1],r[0]]),this.positionX!=s&&(r[0]=this.positionX.toLowerCase()),this.positionY!=s&&(r[1]=this.positionY.toLowerCase()),h.positionX=r[0],h.positionY=r[1],"left"!=this.positionX&&"right"!=this.positionX&&(this.positionX=isNaN(parseInt(this.positionX))?"center":parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(this.positionY=isNaN(parseInt(this.positionY))?"center":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("<div />").prependTo("body");var a=this.$element.find(">.parallax-slider"),n=!1;0==a.length?this.$slider=t("<img />").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),n=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){h.naturalHeight&&h.naturalWidth||(h.naturalHeight=this.naturalHeight||this.height||1,h.naturalWidth=this.naturalWidth||this.width||1),h.aspectRatio=h.naturalWidth/h.naturalHeight,o.isSetup||o.setup(),o.sliders.push(h),o.isFresh=!1,o.requestRender()}),n||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}function h(s){return this.each(function(){var h=t(this),r="object"==typeof s&&s;this==i||this==e||h.is("body")?o.configure(r):h.data("px.parallax")?"object"==typeof s&&t.extend(h.data("px.parallax"),r):(r=t.extend({},h.data(),r),h.data("px.parallax",new o(this,r))),"string"==typeof s&&("destroy"==s?o.destroy(this):o[s]())})}
16!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s<e.length&&!i.requestAnimationFrame;++s)i.requestAnimationFrame=i[e[s]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[e[s]+"CancelAnimationFrame"]||i[e[s]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(e){var s=(new Date).getTime(),o=Math.max(0,16-(s-t)),h=i.setTimeout(function(){e(s+o)},o);return t=s+o,h}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(t){clearTimeout(t)})}(),t.extend(o.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var t=o.winHeight,i=o.docHeight,e=Math.min(this.boxOffsetTop,i-t),s=Math.max(this.boxOffsetTop+this.boxHeight-t,0),h=this.boxHeight+(e-s)*(1-this.speed)|0,r=(this.boxOffsetTop-e)*(1-this.speed)|0;if(h*this.aspectRatio>=this.boxWidth){this.imageWidth=h*this.aspectRatio|0,this.imageHeight=h,this.offsetBaseTop=r;var a=this.imageWidth-this.boxWidth;this.offsetLeft="left"==this.positionX?0:"right"==this.positionX?-a:isNaN(this.positionX)?-a/2|0:Math.max(this.positionX,-a)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var a=this.imageHeight-h;this.offsetBaseTop="top"==this.positionY?r:"bottom"==this.positionY?r-a:isNaN(this.positionY)?r-a/2|0:r+Math.max(this.positionY,-a)}},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=this.overScrollFix?o.overScroll:0,s=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d(0px, 0px, 0px)",visibility:this.visibility,top:this.mirrorTop-e,left:this.mirrorLeft,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var s=t(e),h=t(i),r=function(){o.winHeight=h.height(),o.winWidth=h.width(),o.docHeight=s.height(),o.docWidth=s.width()},a=function(){var t=h.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,h.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};h.on("resize.px.parallax load.px.parallax",function(){r(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){a(),o.requestRender()}),r(),a(),this.isReady=!0}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;this.isBusy||(this.isBusy=!0,i.requestAnimationFrame(function(){t.render(),t.isBusy=!1}))},destroy:function(e){var s,h=t(e).data("px.parallax");for(h.$mirror.remove(),s=0;s<this.sliders.length;s+=1)this.sliders[s]==h&&this.sliders.splice(s,1);t(e).data("px.parallax",!1),0===this.sliders.length&&(t(i).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,o.isSetup=!1)}});var r=t.fn.parallax;t.fn.parallax=h,t.fn.parallax.Constructor=o,t.fn.parallax.noConflict=function(){return t.fn.parallax=r,this},t(e).on("ready.px.parallax.data-api",function(){t('[data-parallax="scroll"]').parallax()})}(jQuery,window,document);
17!function(){"use strict";if("objectFit"in document.documentElement.style!=!1)return void(window.objectFitPolyfill=function(){return!1});var t=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),o=e.getPropertyValue("display");
17i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),o&&"inline"!==o||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")},e=function(t){var e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px"};for(var n in i){e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])}},i=function(i){var n=i.parentNode;t(n),e(i),i.style.position="absolute",i.style.height="100%",i.style.width="auto",i.clientWidth>n.clientWidth?(i.style.top="0",i.style.marginTop="0",i.style.left="50%",i.style.marginLeft=i.clientWidth/-2+"px"):(i.style.width="100%",i.style.height="auto",i.style.left="0",i.style.marginLeft="0",i.style.top="50%",i.style.marginTop=i.clientHeight/-2+"px")},n=function(){for(var t=document.querySelectorAll("[data-object-fit]"),e=0;e<t.length;e++){var n=t[e].nodeName.toLowerCase();"img"===n?t[e].complete?i(t[e]):t[e].addEventListener("load",function(){i(this)}):"video"===n&&(t[e].readyState>0?i(t[e]):t[e].addEventListener("loadedmetadata",function(){i(this)}))}return!0};document.addEventListener("DOMContentLoaded",function(){n()}),window.addEventListener("resize",function(){n()}),window.objectFitPolyfill=n}();
18String.prototype.replaceAll = function (search, replacement) {
19    var target = this;
20    return target.replace(new RegExp(search, 'g'), replacement);
21};
22
23//fix angular accessibility
24
25//focus on day:
26angular.module("uib/template/datepicker/day.html").run(["$templateCache", function (a) {
27    var template = a.get("uib/template/datepicker/day.html");
28    template = template.replace(" role=\"grid\"", " role=\"dialog\"");
29    template = template.replaceAll("tabindex=\"-1\"", "");
30    if (window.lang == "he") {
31        template = template.replace(">previous<", ">הקודם<");
32        template = template.replace(">next<", ">הבא<");
33    }
34    //;
35    template = template.replace('ng-click="select(dt.date)"', 'ng-click="select(dt.date)" aria-label="{{getLabel(dt.date)}}"')
36    a.put("uib/template/datepicker/day.html", template);
37}]);
38
39angular.module('ui.bootstrap').config(function ($provide) {
40    $provide.decorator('uibDaypickerDirective', function ($delegate) {
41        var directive = $delegate[0];
42        var link = directive.link;
43        directive.compile = function () {
44            return function Link(scope, element, attrs, ctrls) {
45                scope.getLabel = function (date) {
46                    return moment(date).format('MMMM Do YYYY, dddd');
47                };
48                return link.apply(this, arguments);
49            };
50        };
51        return $delegate;
52    });
53});
54
55//add combobox role
56angular.module('ui.bootstrap').config(function ($provide) {
57    $provide.decorator('uibTypeaheadDirective', function ($delegate) {
58        var directive = $delegate[0];
59        var link = directive.link;
60        directive.compile = function () {
61            return function Link(scope, element, attrs, ctrls) {
62                $(element).attr('role', 'combobox');
63                return link.apply(this, arguments);
64            };
65        };
66        return $delegate;
67    });
68});
69
70//accessibility end
71
72var app = angular.module('hotelAssociations', ['ngSanitize', 'uiGmapgoogle-maps', 'ui.bootstrap']);
73
74app.directive('ngEnter', function () {
75    return function (scope, element, attrs) {
76        element.bind("keydown keypress", function (event) {
77            if (event.which === 13) {
78                scope.$apply(function () {
79                    scope.$eval(attrs.ngEnter);
80                });
81                event.preventDefault();
82            }
83        });
84    };
85});
86
87app.config(function ($sceDelegateProvider) {
88    $sceDelegateProvider.resourceUrlWhitelist(['**']);
89});
90
91app.service('Services', ['$http', function ($http) {
92
93    var apiUrl = '/umbraco/api/';
94
95    this.AutoCompleteHotels = function (lang, query) {
96        return $http({ url: apiUrl + 'Hotel/GetAutoCompleteHotels', method: "GET", params: { lang: lang, value: query } });
97    };
98
99    this.FilterHotels = function (request) {
100        return $http.post(apiUrl + 'Hotel/FilterHotels', request);
101    };
102
103
104    this.GotoPaymentPage = function (request) {
105        return $http.post(apiUrl + 'Hotel/GetPaymentPage', request);
106    };
107
108    //if true retun pelecard Url.
109    this.CheckAvailability = function (request) {
110        return $http.post(apiUrl + 'Hotel/CheckAvailability', request);
111    };
112
113    this.ContactUs = function (request) {
114        return $http.post(apiUrl + 'ContactUs/ContactUsSendMail', request);
115    }
116
117}]);
118
119var googleMapsAPIKey = 'AIzaSyBsvJVBaQd-sKrCbBPw_1pyTpQdxbrPuQk';
120
121app.service('Geocode', function ($http) {
122
123    this.geocode = function (address) {
124        return $http({
125            method: 'GET',
126            url: 'https://maps.googleapis.com/maps/api/geocode/json',
127            params: {
128                address: address,
129                key: googleMapsAPIKey
130            }
131        }).then(function (res) {
132            if (res.data.results[0] != null) {
133
134                var lat = res.data.results[0].geometry.location.lat;
135                var lng = res.data.results[0].geometry.location.lng;
136
137                return {
138                    // format the object the way that $scope.map expects it
139                    map: {
140                        center: {
141                            latitude: lat,
142                            longitude: lng
143                        },
144                        zoom: 16,
145                        options: {
146                            styles: [
147                                {
148                                    featureType: "poi",
149                                    stylers: [
150                                        { visibility: "off" }
151                                    ]
152                                },
153                                {
154                                    featureType: "transit",
155                                    stylers: [
156                                        { visibility: "off" }
157                                    ]
158                                }
159                            ],
160                            gestureHandling: 'greedy'
161                        }
162                    },
163
164                    marker: {
165                        id: 0,
166                        coords: {
167                            latitude: lat,
168                            longitude: lng
169                        }
170                    }
171                };
172            }
173        });
174    };
175
176    this.lstgeocode = function (address) {
177
178        return $http({
179            method: 'GET',
180            url: 'https://maps.googleapis.com/maps/api/geocode/json',
181            params: {
182                address: address,
183                key: googleMapsAPIKey
184            }
185        }).then(function (res) {
186            if (res.data.results[0] != null) {
187                var lat = res.data.results[0].geometry.location.lat;
188                var lng = res.data.results[0].geometry.location.lng;
189
190                return {
191
192                    marker: {
193                        id: 0,
194                        coords: {
195                            latitude: lat,
196                            longitude: lng
197                        }
198
199                    }
200                };
201            }
202        });
203    };
204});
205
206app.service('PagerService', function () {
207
208    PagerService.Pager = function () {
209        // service definition
210        var service = {};
211
212        service.GetPager = GetPager;
213
214        return service;
215
216        // service implementation
217        function GetPager(totalItems, currentPage, pageSize) {
218            // default to first page
219            currentPage = currentPage || 1;
220
221            // default page size is 10
222            pageSize = pageSize || 10;
223
224            // calculate total pages
225            var totalPages = Math.ceil(totalItems / pageSize);
226
227            var startPage, endPage;
228            if (totalPages <= 10) {
229                // less than 10 total pages so show all
230                startPage = 1;
231                endPage = totalPages;
232            } else {
233                // more than 10 total pages so calculate start and end pages
234                if (currentPage <= 6) {
235                    startPage = 1;
236                    endPage = 10;
237                } else if (currentPage + 4 >= totalPages) {
238                    startPage = totalPages - 9;
239                    endPage = totalPages;
240                } else {
241                    startPage = currentPage - 5;
242                    endPage = currentPage + 4;
243                }
244            }
245
246            // calculate start and end item indexes
247            var startIndex = (currentPage - 1) * pageSize;
248            var endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1);
249
250            // create an array of pages to ng-repeat in the pager control
251            var pages = _.range(startPage, endPage + 1);
252
253            // return object with all pager properties required by the view
254            return {
255                totalItems: totalItems,
256                currentPage: currentPage,
257                pageSize: pageSize,
258                totalPages: totalPages,
259                startPage: startPage,
260                endPage: endPage,
261                startIndex: startIndex,
262                endIndex: endIndex,
263                pages: pages
264            };
265        }
266    }
267});
268
269app.directive('haLoader', function () {
270    return {
271        restrict: 'E',
272        scope: {
273            showLoader: '=loaderShow',
274            message: '@loaderMessage'
275        },
276        link: function (scope, element, attrs) {
277            $(element).parent().addClass('loader-container');
278        },
279        template: '<div class="loader-background" ng-class="{\'show-loader\': showLoader}"><div class="page-preloader__content"><div class="spinner"></div><p ng-bind="message"></p></div></div>'
280    };
281});
282
283app.directive('requiredInvalidText', function () {
284    return {
285        restrict: 'A',
286        link: function (scope, element, attrs) {
287            element = element[0];
288            element.setCustomValidity(attrs.requiredInvalidText);
289            $(element).on("input keypress change", function (event) {
290                if (element.validity.typeMismatch || element.validity.valueMissing || $(element).hasClass('ng-invalid')) {
291                    element.setCustomValidity(attrs.requiredInvalidText);
292                } else {
293                    element.setCustomValidity("");
294                }
295            });
296        }
297    };
298});
299
300app.filter('range', function () {
301    return function (n) {
302        var res = [];
303        n = parseInt(n);
304        for (var i = 0; i < n; i++) {
305            res.push(i);
306        }
307        return res;
308    };
309});
310
311app.filter('price', function () {
312    return function (x) {
313        return x == null ? null : x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
314    };
315});
316
317String.prototype.format = function () {
318    var args = [].slice.call(arguments);
319    return this.replace(/(\{\d+\})/g, function (a) {
320        return args[+(a.substr(1, a.length - 2)) || 0];
321    });
322};
323
324String.format = function () {
325    var s = arguments[0];
326    for (var i = 0; i < arguments.length - 1; i += 1) {
327        var reg = new RegExp('\\{' + i + '\\}', 'gm');
328        s = s.replace(reg, arguments[i + 1]);
329    }
330    return s;
331};
332
333var QueryString = unescape(decodeURI(window.location.search))
334    .split(/[&||?]/)
335    .filter(function (x) { return x.indexOf("=") > -1; })
336    .map(function (x) { return x.split(/=/); })
337    .map(function (x) {
338        x[1] = x[1].replace(/\+/g, " ");
339        return x;
340    })
341    .reduce(function (acc, current) {
342        acc[current[0]] = current[1];
343        return acc;
344    }, {});
345
346// https://tc39.github.io/ecma262/#sec-array.prototype.find
347if (!Array.prototype.find) {
348    Object.defineProperty(Array.prototype, 'find', {
349        value: function (predicate) {
350            // 1. Let O be ? ToObject(this value).
351            if (this == null) {
352                throw new TypeError('"this" is null or not defined');
353            }
354
355            var o = Object(this);
356
357            // 2. Let len be ? ToLength(? Get(O, "length")).
358            var len = o.length >>> 0;
359
360            // 3. If IsCallable(predicate) is false, throw a TypeError exception.
361            if (typeof predicate !== 'function') {
362                throw new TypeError('predicate must be a function');
363            }
364
365            // 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
366            var thisArg = arguments[1];
367
368            // 5. Let k be 0.
369            var k = 0;
370
371            // 6. Repeat, while k < len
372            while (k < len) {
373                // a. Let Pk be ! ToString(k).
374                // b. Let kValue be ? Get(O, Pk).
375                // c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
376                // d. If testResult is true, return kValue.
377                var kValue = o[k];
378                if (predicate.call(thisArg, kValue, k, o)) {
379                    return kValue;
380                }
381                // e. Increase k by 1.
382                k++;
383            }
384
385            // 7. Return undefined.
386            return undefined;
387        }
388    });
389}
390
391jQuery('img.svg').each(function () {
392    var $img = jQuery(this);
393    var imgID = $img.attr('id');
394    var imgClass = $img.attr('class');
395    var imgURL = $img.attr('src');
396
397    jQuery.get(imgURL, function (data) {
398        // Get the SVG tag, ignore the rest
399        var $svg = jQuery(data).find('svg');
400
401        // Add replaced image's ID to the new SVG
402        if (typeof imgID !== 'undefined') {
403            $svg = $svg.attr('id', imgID);
404        }
405        // Add replaced image's classes to the new SVG
406        if (typeof imgClass !== 'undefined') {
407            $svg = $svg.attr('class', imgClass + ' replaced-svg');
408        }
409
410        // Remove any invalid XML tags as per http://validator.w3.org
411        $svg = $svg.removeAttr('xmlns:a');
412
413        // Check if the viewport is set, if the viewport is not set the SVG wont't scale.
414        if (!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
415            $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
416        }
417
418        // Replace image with new SVG
419        $img.replaceWith($svg);
420
421    }, 'xml');
422
423});
424$(window).trigger('resize.px.parallax');
425
426$('#page-preloader').prependTo('body');
427
428// BS Scrollspy
429$('body').scrollspy({ target: '#page-goto', offset: 95 });
430$(window).on('resize', function () {
431    $('body').scrollspy('refresh');
432});
433
434// Language selector
435$('.language-select-block li a').click(function () {
436    $(this).parent().siblings().removeClass('active');
437    $(this).parent().addClass('active');
438    $('#lang-selector').text($(this).text());
439});
440
441$("#lang-selector").click(function (event) {
442    $('.book-online-panel .btn-close').click();
443});
444
445// Menu dropdowns on hover
446$('.main-nav > .dropdown').not('.dropdown-search').hover(
447    function (e) {
448        if ($(window).width() >= 768) {
449            if (!($(this).hasClass('open'))) {
450                $(this).children('.dropdown-toggle').dropdown('toggle');
451            }
452        }
453    },
454    function (e) {
455        if ($(this).hasClass('open')) {
456            $(this).children('.dropdown-toggle').dropdown('toggle');
457        }
458    }
459);
460
461// 3rd tier menu toggle
462// $(document).ready(function(){
463//   $('.dropdown-submenu .submenu-toggle').on("click", function(e){
464//     $(this).next('.submenu').toggle();
465//     e.stopPropagation();
466//     e.preventDefault();
467//   });
468// });
469
470$(document).ready(function () {
471    $('.dropdown-submenu .submenu-toggle').on("click", function (e) {
472        e.preventDefault();
473        e.stopPropagation();
474        // $(this).closest('.mega-menu').find('.dropdown-submenu').removeClass('open');
475        $(this).closest('.dropdown-submenu').toggleClass('open');
476    });
477    $('.dropdown-submenu').on('mouseenter', function () {
478        $(this).addClass('open');
479    });
480    $('.dropdown-submenu').on('mouseleave', function () {
481        $(this).removeClass('open');
482    })
483});
484
485// Fixing document scroll when mobile menu is open
486$('#navbar-collapse-1').on('show.bs.collapse', function () {
487    $('body').addClass('fixed-content');
488    if ($(window).width() < 768 && $('.book-online-panel').hasClass('open')) {
489        $('.book-online-panel').removeClass('open');
490    }
491});
492
493$('#navbar-collapse-1').on('hide.bs.collapse', function () {
494    $('body').removeClass('fixed-content')
495});
496
497
498// Show hotel search panel
499$('.btn-book-online').on('click', function (event) {
500    event.preventDefault();
501    $('.book-online-panel').toggleClass('open');
502    if ($(window).width() < 768) {
503        if ($('.book-online-panel').hasClass('open')) {
504            $('body').addClass('fixed-content');
505        } else {
506            $('body').removeClass('fixed-content');
507        }
508    };
509    if ($('#navbar-collapse-1').hasClass('in')) {
510        $('#navbar-collapse-1').collapse('hide');
511    }
512});
513
514// Close button for hotel search panel
515$('.book-online-panel .btn-close').on('click', function () {
516    $('.book-online-panel').removeClass('open');
517    if ($(window).width() < 768) {
518        $('body').removeClass('fixed-content');
519    }
520});
521
522// Show extra rows in choose section
523var chooseItems = $('.choose-group .choose-item');
524$('.choose-block .load-more').on('click', function (event) {
525    event.preventDefault();
526    if (chooseItems.filter('.hidden').length) {
527        chooseItems.filter('.hidden').slice(0, 3).removeClass('hidden').addClass('slideInDown');
528        if (!chooseItems.filter('.hidden').length) {
529            $(this).remove();
530        }
531    };
532    $(window).trigger('resize.px.parallax');
533});
534
535// Neighborhood carousel
536
537var currentHood;
538var hoodSlides = $('.discover-carousel .slide');
539var hoodLinks = $('.hood-list a');
540var svgLinks = $('.hood-link');
541
542$('.hood-list a').on('mouseenter focus', function (event) {
543    currentHood = $(this).data('hood');
544    $(this).addClass('active');
545    hoodSlides.removeClass('active')
546        .filter("[data-hood='" + currentHood + "']").addClass('active');
547    svgLinks.filter("#" + currentHood).addClass('active');
548});
549
550$('.hood-list a').on('mouseleave blur', function (event) {
551    $(this).removeClass('active');
552    svgLinks.filter("#" + currentHood).removeClass('active');
553});
554
555$('.hood-link').on('mouseenter focus', function () {
556    currentHood = $(this).attr('id');
557    $(this).addClass('active');
558    hoodSlides.removeClass('active')
559        .filter("[data-hood='" + currentHood + "']").addClass('active');
560    hoodLinks.filter("[data-hood='" + currentHood + "']").addClass('active');
561});
562
563$('.hood-link').on('mouseleave blur', function () {
564    $(this).removeClass('active');
565    hoodLinks.filter("[data-hood='" + currentHood + "']").removeClass('active');
566});
567
568
569// smoothscroll
570$('#page-goto a').bind('click', function (event) {
571    var $anchor = $(this).attr('href');
572    var $realAnchor = $anchor.slice($anchor.indexOf('#'));
573    if ($realAnchor.length) {
574        $('html, body').stop().animate({
575            scrollTop: ($($realAnchor).offset().top - 55) // 55px is header height
576        }, 1250, 'swing');
577        event.preventDefault();
578    }
579});
580
581// Slick slider - hotels
582$(window).on('load resize', function () {
583    var $windowWidth = $(window).width();
584    if ($windowWidth < 768 && !$('.hotels-carousel').hasClass('slick-initialized')) {
585        $('.hotels-carousel').slick({
586            dots: false,
587            infinite: false,
588            speed: 300,
589            slide: '.hotels-list__item',
590            prevArrow: $('.hotels-carousel-controls .slide-prev'),
591            nextArrow: $('.hotels-carousel-controls .slide-next'),
592            slidesToShow: 1,
593            slidesToScroll: 1,
594            mobileFirst: true
595        });
596    } else if ($windowWidth >= 768 && $('.hotels-carousel').hasClass('slick-initialized'))
597    { $('.hotels-carousel').slick('unslick') }
598});
599
600
601$(function () {
602
603
604    // coupons banner slider
605    if ($(".coupons-banner-slider-container").length) {
606        $('.coupons-banner-slider-container').slick({
607            arrows: false,
608            dots: true,
609            infinite: true,
610            autoplay: true,
611            speed: 500,
612            slide: 'div',
613            //prevArrow: $('.banner-carousel .slide-prev'),
614            //nextArrow: $('.banner-carousel .slide-next'),
615            slidesToShow: 1,
616            slidesToScroll: 1
617        });
618    }
619
620    // Slick slider - top banner
621    if ($(".banner-carousel").length) {
622        $('.banner-carousel').slick({
623            dots: false,
624            infinite: true,
625            autoplay: true,
626            speed: 300,
627            slide: '.banner-slide',
628            prevArrow: $('.banner-carousel .slide-prev'),
629            nextArrow: $('.banner-carousel .slide-next'),
630            slidesToShow: 1,
631            slidesToScroll: 1,
632            responsive: [
633                {
634                    breakpoint: 767,
635                    settings: {
636                        arrows: false
637                    }
638                }
639            ]
640        });
641    }
642
643    // Slick slider - agents
644    if (false && $(".agents-section__list").length) {
645
646        var agentsList = $('.agents-section__list');
647        enquire.register('screen and (max-width: 768px)', {
648            match: function () {
649                if (!agentsList.hasClass('slick-initialized')) {
650                    agentsList.slick({
651                        dots: false,
652                        infinite: false,
653                        autoplay: true,
654                        speed: 300,
655                        // slide: '.agents-section__item',
656                        prevArrow: $('.agents-section__controls .arrow-prev'),
657                        nextArrow: $('.agents-section__controls .arrow-next'),
658                        slidesToShow: 1,
659                        slidesToScroll: 1,
660                        mobileFirst: true,
661                        responsive: [
662                            {
663                                breakpoint: 600,
664                                settings: {
665                                    slidesToShow: 2,
666                                    slidesToScroll: 1
667                                }
668                            }
669                        ]
670                    });
671                }
672            },
673            unmatch: function () {
674                if (agentsList.hasClass('slick-initialized')) {
675                    agentsList.slick('unslick');
676                }
677            }
678        });
679    }
680
681    // Hotel page - image gallery
682
683    if ($(".hotel-article__carousel").length) {
684        $('.hotel-article__carousel').slick({
685            dots: false,
686            infinite: true,
687            autoplay: true,
688            speed: 300,
689            slide: 'img',
690            prevArrow: $('.hotel-article__carousel .slide-prev'),
691            nextArrow: $('.hotel-article__carousel .slide-next'),
692            slidesToShow: 1,
693            slidesToScroll: 1
694        });
695    }
696
697    // Adding-removing rooms in the form
698
699    var $searchForm = $('#hotel-search-form');
700    var $oneRoomParams = $searchForm.find('.one-room-params:first').clone();
701    $oneRoomParams.find('.form-group-wrapper:first').remove();
702    $oneRoomParams.addClass('quad-form-extra-row');
703    var roomsQty = +$('#search_rooms').val();
704    var $roomsBlock = $searchForm.find('.rooms-block');
705
706    // Parallax
707
708    if ($('.homepage-todo-heading').length) {
709        $('.homepage-todo-heading').parallax({
710            imageSrc: MainArticleMainPic != '' ? MainArticleMainPic : "../img/things-to-do-bg.jpg"
711        });
712    }
713    if ($('.homepage-ourhotels-heading').length) {
714        $('.homepage-ourhotels-heading').parallax({
715            imageSrc: OurHotelimage
716        });
717    }
718});
719
720$(window).on('resize', function () {
721    $(window).trigger('resize.px.parallax');
722});
723
724// Show extra rows hotles section on the lobby page
725var hotelItems = $('.hotels-nearby .hotels-list__item');
726$('.hotels-nearby .load-more').on('click', function (event) {
727    event.preventDefault();
728    if (hotelItems.filter('.hidden').length) {
729        hotelItems.filter('.hidden').slice(0, 3).removeClass('hidden').addClass('slideInDown');
730        if (!hotelItems.filter('.hidden').length) {
731            $(this).remove();
732        }
733    };
734});
735
736// Reveal hidden paragraphs on lobby page
737$('.lobby-description').on('click', '.btn-main', function (e) {
738    e.preventDefault();
739    $(this).closest('.lobby-description').find('p').removeClass('hidden');
740    $(this).closest('.lobby-description').find('div').removeClass('hidden');
741    $(this).remove();
742})
743
744// Toggle filter panel on mobile
745
746// double check and refactor
747$('.filter-block-toggle').on('click', function () {
748    $('.search-filter-block').toggleClass('open');
749    if ($(window).width() < 768) {
750        if ($('.search-filter-block').hasClass('open')) {
751            $('body').addClass('fixed-content');
752        }
753    };
754    if ($('#navbar-collapse-1').hasClass('in')) {
755        $('#navbar-collapse-1').collapse('hide');
756    }
757});
758
759// Close button for hotel search panel
760$('.filter-close').on('click', function () {
761    $(this).parent().removeClass('open');
762    if ($(window).width() < 768) {
763        $('body').removeClass('fixed-content');
764    }
765});
766
767// Sort blocks: mobile and desktop + syncing active 
768var sortDir = ['js-sort-asc', 'js-sort-desc'];
769var sortParam = ['js-sort-price', 'js-sort-size', 'js-sort-alphabet', 'js-sort-stars'];
770
771
772// Sort buttons switches
773$('.sort-group button').on('click', function () {
774    var activeControl = $(this);
775    // retrieve text to apply on mobile sort toggle later.
776    var shortButtonText = activeControl.text();
777    shortButtonText = shortButtonText.slice(0, shortButtonText.indexOf("(")).trim();
778    // remove active states from both sort control blocks
779    activeControl.siblings('button').removeClass(sortDir[0]).removeClass(sortDir[1]);
780    $('.sort-dropdown').find('li').removeClass('active');
781
782    var activeSortDir, activeSortParam;
783
784    for (var i = 0; i < sortParam.length; i++) {
785        if (activeControl.hasClass(sortParam[i])) {
786            activeSortParam = sortParam[i];
787            if (activeControl.hasClass(sortDir[0])) {
788                activeControl.removeClass(sortDir[0]).addClass(sortDir[1]);
789                activeSortDir = sortDir[1];
790                activeControl.children('.dir-text').text(sortMsg[i][1]);
791            } else {
792                activeControl.removeClass(sortDir[1]).addClass(sortDir[0]);
793                activeSortDir = sortDir[0];
794                activeControl.children('.dir-text').text(sortMsg[i][0]);
795            }
796            break;
797        }
798    }
799    $('.sort-dropdown').find('.' + activeSortParam + '.' + activeSortDir).addClass('active');
800    $('.sort-block-toggle .sort-param').text(shortButtonText);
801
802});
803
804$('.btn-print').on('click', function () {
805    window.print();
806});
807
808// Filter input data for payment form
809window.currenLangRegex = new RegExp("^[" + ($('html').attr('lang') == 'he-IL' ? "א-ת" : "a-zA-Z") + " .]+$");
810$('#pay-first_name, #pay-last_name, #pay-nationality').bind('keypress', function (event) {
811    var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
812    if (!window.currenLangRegex.test(key)) {
813        event.preventDefault();
814        return false;
815    }
816});
817
818window.phoneRegex = new RegExp("^[0-9\-\+\(\) ]+$");
819$('#pay-country, #pay-area, #pay-phone').bind('keypress', function (event) {
820    var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
821    if (!window.phoneRegex.test(key)) {
822        event.preventDefault();
823        return false;
824    }
825});
826
827window.emailRegex = new RegExp("^[a-z0-9.@_\-]+$");
828$('#pay-email').bind('keypress', function (event) {
829    var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
830    if (!window.emailRegex.test(key)) {
831        event.preventDefault();
832        return false;
833    }
834});
835
836window.codeRegex = new RegExp("^[0-9]+$");
837$('#pay-cnumber, #pay-code').bind('keypress', function (event) {
838    var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
839    if (!window.codeRegex.test(key)) {
840        event.preventDefault();
841        return false;
842    }
843});
844
845$(document).ready(function () {
846
847    //aria-label
848
849    $('[dp-aria-label-expanded]').parent('.dropdown').on('show.bs.dropdown', function () {
850        var ele = $(this).find('[dp-aria-label-expanded]');
851        ele.data('aria-label-original', ele.attr('aria-label'));
852        ele.attr('aria-label', ele.attr('dp-aria-label-expanded'));
853    }).on('hide.bs.dropdown', function () {
854        var ele = $(this).find('[dp-aria-label-expanded]');
855        ele.attr('aria-label', ele.data('aria-label-original'));
856    });
857
858    $('[aria-label-click]').click(function () {
859        var ele = $(this);
860        if (!ele.hasClass('label-expended')) {
861            ele.addClass('label-expended');
862            ele.data('aria-label-original', ele.attr('aria-label'));
863            ele.attr('aria-label', ele.attr('aria-label-click'))
864        } else {
865            ele.removeClass('label-expended');
866            ele.attr('aria-label', ele.data('aria-label-original'));
867        }
868    });
869
870
871    // Hotel search panel open on desktop and tablet on page load
872
873    $('.site-header').affix({
874        offset: {
875            top: 95
876        }
877    });
878
879    //address
880    var splitedAddress = window.location.pathname.split("/");
881    if (splitedAddress.length < 3 || (splitedAddress.length == 3 && splitedAddress[2] == '')) {
882        //is home page and desktop
883        $('.btn-book-online').first().click();
884    }
885
886    // If form input gets focus - show the form
887    $('#hotel-search-form :input').on('focus', function () {
888        if (!$('.book-online-panel').hasClass('open')) {
889            $('.book-online-panel').addClass('open');
890        }
891    });
892
893    $('.img-alt-to-title img').each(function (i, img) {
894        $(img).attr('title', $(img).attr('alt'));
895    });
896
897    $('.img-auto-height img').each(function (i, img) {
898        $(img).css('height', 'auto');
899    });
900
901    // on mobile, hide nav when search is open 
902    if ($(window).width() < 768) {
903        $(".dropdown.dropdown-search").on("shown.bs.dropdown", function () {
904            $("#nav-search").focus();
905            $(".main-nav li:not(.dropdown-search)").hide();
906        });
907        // show nav when closing nav
908        $(".dropdown.dropdown-search").on("hidden.bs.dropdown", function () {
909            $(".main-nav li").attr("style", "");
910        });
911    };
912
913});
914app.controller('SearchHotelsCtrl', ['$scope', 'Services', '$window', function ($scope, Services, $window) {
915
916    $scope.Rooms = [1, 2, 3];
917    $scope.Passengers = [0, 1, 2, 3];
918    $scope.PassengersAdults = [1, 2, 3];
919    $scope.PassengersInfants = [0, 1, 2];
920
921    $scope.search = {
922        name: '',
923        totalRooms: 1,
924        rooms: [{
925            infants: 0,
926            children: 0,
927            adults: 2
928        }, {
929            infants: 0,
930            children: 0,
931            adults: 2
932        }, {
933            infants: 0,
934            children: 0,
935            adults: 2
936        }],
937        hotelId: null,
938        type: null
939    };
940
941    $scope.checkInOptions = {
942        showWeeks: false,
943        minDate: new Date(),
944        maxDate: moment().add(8, "months").toDate()
945    };
946
947    $scope.checkOutOptions = {
948        showWeeks: false,
949        minDate: new Date(),
950        maxDate: moment().add(8, "months").toDate()
951    };
952
953    $scope.invalidCheckIn = false;
954    $scope.invalidCheckOut = false;
955    $scope.showLoader = false;
956
957    $scope.OnLoad = function () {
958        $scope.ParseQueryString();
959    };
960
961    $scope.DoSearch = function (query) {
962        return Services.AutoCompleteHotels(window.lang, query).then(function (res) {
963            return res.data.Content;
964        });
965    };
966
967    $scope.ClickDataResult = function (obj) {
968        $scope.search.name = obj.dataResult;
969        $scope.search.hotelName = obj.hotelName;
970        $scope.search.hotelId = obj.HotelId;
971        $scope.search.hotelNameUrlEncoded = obj.HotelNameUrlEncoded;
972        $scope.search.type = obj.searchType;
973    };
974
975    $scope.StartSearch = function () {
976
977        
978
979        
980
981        $scope.showLoader = true;
982
983        var url;
984        var qs = '?Room=' + $scope.search.totalRooms +
985            '&Adult=' + $scope.search.rooms[0].adults + "," + $scope.search.rooms[1].adults + "," + $scope.search.rooms[2].adults +
986            '&Child=' + $scope.search.rooms[0].children + "," + ($scope.search.totalRooms < 2 ? 0 : $scope.search.rooms[1].children) + "," + ($scope.search.totalRooms < 3 ? 0 : $scope.search.rooms[2].children) +
987            '&Infant=' + $scope.search.rooms[0].infants + "," + ($scope.search.totalRooms < 2 ? 0 : $scope.search.rooms[1].infants) + "," + ($scope.search.totalRooms < 3 ? 0 : $scope.search.rooms[2].infants) +
988            '&checkIn=' + moment($scope.search.checkInDate).format('DD/MM/YYYY') +
989            '&checkOut=' + moment($scope.search.checkOutDate).format('DD/MM/YYYY');
990
991        if ($scope.search.type == "hotelName") {
992            url = urlHotelPage + $scope.search.hotelNameUrlEncoded + '/';
993        }
994        else {
995            url = urlHotelPageResult;
996            qs += '&Destination=' + ($scope.search.hotelName == null || $scope.search.hotelName.length == 0 ? '' : $scope.search.hotelName);
997        }
998
999        $scope.addGTag();
1000
1001        document.location.href = url + qs;
1002    };
1003
1004    $scope.ParseQueryString = function () {
1005
1006        if (window.hotel != null) {
1007            $scope.search.hotelId = window.hotel.HotelId;
1008            $scope.search.name = window.hotel.HotelName;
1009            $scope.search.hotelName = window.hotel.HotelName;
1010            $scope.search.hotelNameUrlEncoded = window.hotel.HotelNameUrlEncoded;
1011            $scope.search.type = "hotelName";
1012        } else {
1013            $scope.search.name = QueryString.Destination;
1014            $scope.search.hotelName = QueryString.Destination;
1015        }
1016
1017        if (QueryString.Room)
1018            $scope.search.totalRooms = parseInt(QueryString.Room);
1019
1020        var adults = QueryString.Adult ? QueryString.Adult.split(',') : [$scope.search.rooms[0].adults, $scope.search.rooms[
10201].adults, $scope.search.rooms[2].adults];
1021        var children = QueryString.Child ? QueryString.Child.split(',') : [$scope.search.rooms[0].children, $scope.search.rooms[1].children, $scope.search.rooms[2].children];
1022        var infants = QueryString.Infant ? QueryString.Infant.split(',') : [$scope.search.rooms[0].infants, $scope.search.rooms[1].infants, $scope.search.rooms[2].infants];
1023
1024        for (var i = 0; i < $scope.Rooms.length; i++) {
1025            $scope.search.rooms[i].adults = parseInt(adults[i]);
1026            $scope.search.rooms[i].children = parseInt(children[i]);
1027            $scope.search.rooms[i].infants = parseInt(infants[i]);
1028        }
1029
1030        if (QueryString.checkIn != null && QueryString.checkOut != null) {
1031            $scope.search.checkInDate = moment(QueryString.checkIn, 'DD/MM/YYYY').toDate();
1032            $scope.checkOutOptions.maxDate = moment($scope.search.checkInDate).add(14, "days").toDate();
1033            $scope.checkOutOptions.minDate = moment($scope.search.checkInDate).add(1, "days").toDate();
1034            $scope.search.checkOutDate = moment(QueryString.checkOut, 'DD/MM/YYYY').toDate();
1035        }
1036    };
1037
1038    $scope.checkInChanged = function () {
1039        $scope.search.checkOutDate = null;
1040        $scope.checkOutOptions.maxDate = moment($scope.search.checkInDate).add(14, "days").toDate();
1041        $scope.checkOutOptions.minDate = moment($scope.search.checkInDate).add(1, "days").toDate();
1042        $scope.search.checkOutDate = moment($scope.search.checkInDate).add(1, "days").toDate();
1043    };
1044
1045    $scope.scrollToOurHotels = function () {
1046        var $realAnchor = $('.ourhotels-flag').first();
1047        if ($realAnchor.length) {
1048            if ($(window).width() < 768) {
1049                $('.book-online-panel .btn-close').click();
1050            }
1051            $('html, body').stop().animate({
1052                scrollTop: ($($realAnchor).offset().top - 55) // 55px is header height
1053            }, 1250, 'swing');
1054            event.preventDefault();
1055        }
1056    };
1057    $scope.isOutHotelsButtonVisible = function () {
1058        return $('.ourhotels-flag').length;
1059    };
1060
1061    $scope.addGTag = function () {
1062        var adults = $scope.search.rooms[0].adults;
1063        if ($scope.search.totalRooms > 1)
1064            adults += $scope.search.rooms[1].adults;
1065        if ($scope.search.totalRooms > 2)
1066            adults += $scope.search.rooms[2].adults;
1067
1068        var children = $scope.search.rooms[0].children;
1069        if ($scope.search.totalRooms > 1)
1070            children += $scope.search.rooms[1].children;
1071        if ($scope.search.totalRooms > 2)
1072            children += $scope.search.rooms[2].children;
1073
1074        var infants = $scope.search.rooms[0].infants;
1075        if ($scope.search.totalRooms > 1)
1076            infants += $scope.search.rooms[1].infants;
1077        if ($scope.search.totalRooms > 2)
1078            infants += $scope.search.rooms[2].infants;
1079
1080        var toPush = {
1081            'event': 'searchBox',
1082            'searchBox_hotelOrCityName': $scope.search.name,                                        // Name of Hotel or City
1083            'searchBox_checkIn': moment($scope.search.checkInDate).format('DD/MM/YYYY'),            // Check-In date
1084            'searchBox_checkOut': moment($scope.search.checkOutDate).format('DD/MM/YYYY'),          // Check-Out date
1085            'searchBox_rooms': $scope.search.totalRooms,                                            // Number of rooms
1086            'searchBox_adults': adults,                                                             // Number of adults
1087            'searchBox_children': children,                                                         // Number of children
1088            'searchBox_infants': infants                                                            // Number of infants
1089        };
1090
1091        dataLayer.push(toPush);
1092    };
1093
1094    $scope.OnLoad();
1095
1096}]);
1097
1098$(function () {
1099
1100    //bring to front
1101    $('#page-preloader').prependTo('body');
1102
1103});
1104app.controller('ContactUs', ['$scope', 'Services', function ($scope, Services) {
1105
1106    $scope.invliadData = false;
1107    $scope.sent = false;
1108    $scope.beforeSend = true;
1109    $scope.submitted = false;
1110    $scope.isSending = false;
1111    $scope.sentFailed = false;
1112
1113    $scope.data = {
1114        FullName: null,
1115        Email: null,
1116        CompanyEmail: null,
1117        SubJect: null,
1118        Message: null,
1119    };
1120
1121    $scope.messageValid = function () {
1122        return isEnglishOnly($scope.data.Message);
1123    };
1124
1125    $scope.onSubmit = function () {
1126        $scope.submitted = true;
1127        if ($scope.contactForm.$valid) {
1128            $scope.isSending = true;
1129            $scope.invliadData = false;
1130            Services.ContactUs($scope.data).then(function (res) {
1131                $scope.sent = true;
1132                $scope.submitted = false;
1133                $scope.isSending = false;
1134            }, function () {
1135                $scope.sent = false;
1136                $scope.submitted = false;
1137                $scope.isSending = false;
1138                $scope.sentFailed = true;
1139            });
1140        }
1141        else {
1142            $scope.invliadData = true;
1143            setTimeout(function () {
1144                $($('.error-validation:visible:first > a').attr('href')).focus();
1145            }, 0);
1146        }
1147    };
1148
1149}]);
1150app.controller('googleMapCtrl', ['$scope', 'Geocode', function ($scope, Geocode) {
1151
1152    var address = gMapAddress == '' || gMapAddress == null ? 'Tel Aviv' : gMapAddress;
1153
1154    $scope.markers = [];
1155
1156    Geocode.geocode(address).then(function (data) {
1157        if (data) {
1158            data.map.zoom = window.zoom || 16;
1159            $scope.map = data.map;
1160            $scope.map.options = {
1161                scrollwheel: false,
1162                styles: [
1163                    {
1164                        featureType: "poi",
1165                        elementType: "labels",
1166                        stylers: [
1167                            { visibility: "off" }
1168                        ]
1169                    }
1170                ]
1171            };
1172            data.marker.options = {
1173                title: address
1174            };
1175            $scope.marker = data.marker;
1176            $scope.markers.push(data.marker);
1177        }
1178    });
1179
1180    var markersList = [];
1181
1182    if (window.gMapAttractionMarkers != null) {
1183        markersList = markersList.concat(gMapAttractionMarkers);
1184    }
1185    if (window.gMapMarkers != null) {
1186        markersList = markersList.concat(gMapMarkers);
1187    }
1188    if (window.gMapCustomMarkers != null) {
1189        markersList = markersList.concat(gMapCustomMarkers);
1190    }
1191
1192    if (markersList.length > 0) {
1193        angular.forEach(markersList, function (marker, i) {
1194            Geocode.lstgeocode(marker.GoogleMapAddress).then(function (data) {
1195                if (data != null) {
1196                    if (marker.Name != null) {
1197                        data.marker.options = { title: marker.Name };
1198                        data.marker.window = {
1199                            visible: false,
1200                            closeClick: function () {
1201                                this.visible = false;
1202                            }
1203                        };
1204                    }
1205                    if (marker.Category != null && marker.Category.Icon != null) {
1206                        data.marker.icon = marker.Category.Icon;
1207                        data.marker.options.icon = marker.Category.Icon;
1208                    }
1209                    $scope.markers.push(data.marker);
1210                }
1211            });
1212        });
1213    }
1214
1215
1216}]);
1217app.controller('hotelPage', ['$scope', 'Services', '$window', function ($scope, Services, $window) {
1218
1219    var self = $scope;
1220    self.AddRoomsLock = false;
1221    self.NoResult = false;
1222    self.hotel = hotel;
1223    self.canGoNext = true;
1224
1225    self.totalPrice = 0;
1226
1227    self.OrderDetails = {
1228        Hotel: hotel,
1229        CheckIn: QueryString.checkIn == null ? moment().format('DD/MM/YYYY') : QueryString.checkIn,
1230        CheckOut: QueryString.checkOut == null ? moment().add(1, 'days').format('DD/MM/YYYY') : QueryString.checkOut,
1231        SelectedRooms: []
1232    };
1233
1234    self.arrayPrice = [];
1235
1236    self.Rooms = [];
1237
1238    self.SetHtypeAndRoomType = function (room, selectedHtype) {
1239        self.totalPrice = 0;
1240
1241        room.roomId = selectedHtype.RoomId;
1242        room.BoardTypeId = selectedHtype.BoardType.Id;
1243        room.Price = selectedHtype.Price;
1244        room.capacityCode = selectedHtype.capacityCode;
1245        room.providerRef = selectedHtype.ProviderRef;
1246        room.ServiceProviderRefType = selectedHtype.ServiceProviderRefType;
1247
1248        SetTotalPrice(self.OrderDetails.SelectedRooms);
1249    };
1250
1251    self.initRooms = [];
1252    self.Init = function () {
1253
1254        if (hotel.AvailableRooms != null) {
1255            var rooms = QueryString.Room != null ? parseInt(QueryString.Room) : 1;
1256            for (var i = 0; i < rooms; i++) {
1257                self.initRooms.push({
1258                    Adults: QueryString.Adult == null ? 2 : QueryString.Adult.split(",")[i],
1259                    Childs: QueryString.Child == null ? 0 : QueryString.Child.split(",")[i],
1260                    Infants: QueryString.Infant == null ? 0 : QueryString.Infant.split(",")[i]
1261                });
1262                self.AddRoom(QueryString.Adult == null ? 2 : QueryString.Adult.split(",")[i],
1263                    QueryString.Child == null ? 0 : QueryString.Child.split(",")[i],
1264                    QueryString.Infant == null ? 0 : QueryString.Infant.split(",")[i]);
1265            }
1266        }
1267
1268    };
1269
1270    self.AddRoom = function (adults, children, infants) {
1271        if (self.AddRoomsLock || self.Rooms.length == 3)
1272            return;
1273
1274        var selectedRoom = self.hotel.AvailableRooms.find(function (hType) {
1275            return hType.Capacity.Adults == adults && hType.Capacity.Children == children;
1276        });
1277
1278        if (selectedRoom == null) {
1279            self.Rooms = [];
1280            self.AddRoomsLock = true;
1281            return;
1282        }
1283
1284        var room = angular.copy(selectedRoom);
1285        room.roomNumber = self.Rooms.length + 1;
1286        room.adults = adults == null ? '2' : adults;
1287        room.children = children == null ? '0' : children;
1288        room.infants = infants == null ? '0' : infants;
1289
1290        var selectedRooms = {
1291            ServiceProviderRefType: room.ServiceProviderRefType,
1292            roomNumber: room.roomNumber,
1293            providerRef: room.ProviderRef,
1294            roomId: room.RoomId,
1295            adults: room.adults,
1296            children: room.children,
1297            infants: room.infants,
1298            BoardTypeId: room.BoardType.Id,
1299            CapacityCode: room.CapacityCode,
1300            Price: room.Price
1301        };
1302
1303        self.Rooms.push(selectedRooms);
1304        self.OrderDetails.SelectedRooms.push(selectedRooms);
1305        SetTotalPrice(self.OrderDetails.SelectedRooms);
1306    };
1307
1308    function SetTotalPrice(obj) {
1309        self.totalPrice = 0;
1310        angular.forEach(obj, function (hostingType, i) {
1311            self.totalPrice += hostingType.Price;
1312        });
1313    };
1314
1315    self.GotoPaymentPage = function () {
1316        self.OrderDetails.Price = self.totalPrice;
1317        Services.GotoPaymentPage(self.OrderDetails).then(function (res) {
1318            if (res) {
1319                self.AddGTag();
1320            }
1321            else {
1322                alert(res);
1323            }
1324        });
1325        return false;
1326    };
1327
1328    self.AddGTag = function () {
1329        //fallback incase google tags dosen't work
1330        setTimeout(function () {
1331            document.location = paymentPage;
1332        }, 3500);
1333
1334        dataLayer.push({
1335            'event': 'checkout',
1336            'ecommerce': {
1337                'currencyCode': currencyType == '$' ? 'USD' : 'ILS',                    // currency – EUR, ILS, USD etc.
1338                'checkout': {
1339                    'actionField': { 'step': 1 },
1340                    'products': [{
1341                        'name': self.OrderDetails.Hotel.HotelName,                       // Name of Hotel
1342                        'id': self.OrderDetails.Hotel.HotelId,                                  // Unique ID per Hotel
1343                        'price': self.OrderDetails.Price,                                 // Price “From” displayed
1344                        'category': self.OrderDetails.Hotel.HotelCity,                   // City of Hotel clicked 
1345                        'quantity': 1                                   // W
1345ill always be 1 here
1346                    }]
1347                }
1348            },
1349            'eventCallback': function () {
1350                document.location = paymentPage;
1351            }
1352        });
1353    };
1354
1355    self.isEmpty = function (obj) {
1356        for (var i in obj) if (obj.hasOwnProperty(i)) return false;
1357        return true;
1358    };
1359
1360    self.canGoNext = function () {
1361        if (self.Rooms.length != self.initRooms.length) {
1362            return false;
1363        }
1364
1365        if (JSON.stringify(self.Rooms.map(function (room) {
1366            return {
1367                Adults: room.adults,
1368                Childs: room.children,
1369                Infants: room.infants
1370            };
1371        })) != JSON.stringify(self.initRooms)) {
1372            return false;
1373        }
1374
1375        return true;
1376    };
1377
1378    self.NewSearch = function () {
1379        var adult = [];
1380        var Child = [];
1381        var Infant = [];
1382
1383        for (var i = 0; i < 3; i++) {
1384            if (self.Rooms[i] == null) {
1385                adult.push("0");
1386                Child.push("0");
1387                Infant.push("0");
1388            }
1389            else {
1390                adult.push(self.Rooms[i].adults);
1391                Child.push(self.Rooms[i].children);
1392                Infant.push(self.Rooms[i].infants);
1393            }
1394        }
1395
1396        $window.location.href = urlHotelPage +
1397            String.format("?HotelId={0}&Room={1}&Adult={2}&Child={3}&Infant={4}&checkIn={5}&checkOut={6}",
1398                hotel.HotelId,
1399                self.Rooms.length,
1400                adult[0] + "," + adult[1] + "," + adult[2],
1401                Child[0] + "," + Child[1] + "," + Child[2],
1402                Infant[0] + "," + Infant[1] + "," + Infant[2],
1403                QueryString.checkIn,
1404                QueryString.checkOut);
1405
1406
1407    };
1408
1409    self.Init();
1410
1411}]);
1412app.controller('search-result', ['$scope', 'Services', '$window', function ($scope, Services, $window) {
1413
1414    var self = $scope;
1415    self.orderParam = null;
1416    self.txtHotelNameFilter = '';
1417    self.lstHotels = hotelsResult.Hotels;
1418    self.lstFilterByHotelName = self.lstHotels;
1419    self.lstFacilities = hotelsResult.FacilitiesFilter;
1420    self.lstAccessToSea = hotelsResult.AccessToSeaFilter;
1421    self.lstRaitingFilter = hotelsResult.RaitingFilter;
1422    self.lstHotelAreas = hotelsResult.HotelAreasFilter;
1423    self.lstBoards = hotelsResult.HotelBoardsFilter;
1424    self.lstHotelChains = hotelsResult.HotelChainFilter;
1425    self.countResult = self.lstHotels.length;
1426    self.priceFilter = hotelsResult.PriceFilter;
1427    self.lstFiltersHotel = self.lstHotels;
1428
1429    self.HotelsFiltered = {
1430        HotelResult: hotelsResult,
1431        FilteredFacilities: [],
1432        FilteredAccessToSea: [],
1433        FilteredFunToDo: [],
1434        FilteredRoomFacilities: [],
1435        FilteredHotelChain: [],
1436        FilteredHotelAreas: [],
1437        FilteredRaiting: [],
1438        FilteredBoards: [],
1439        FilteredPrice: [],
1440    };
1441
1442    self.init = function () {
1443        self.SetOrderParam('Price');
1444    };
1445
1446    self.GetRaitningStarts = function (rait) {
1447        var max = parseInt(rait);
1448        var list = [];
1449        for (var i = 0; i < max; i++) {
1450            list.push(i);
1451        }
1452        return list;
1453    };
1454
1455
1456    self.FacilitiesFilter = function (event, facility) {
1457
1458        var item = { key: facility.key, value: facility.value }
1459
1460        if (event.target.checked) {
1461            self.HotelsFiltered.FilteredFacilities.push(item)
1462        }
1463        else {
1464            self.HotelsFiltered.FilteredFacilities = self.HotelsFiltered.FilteredFacilities.filter(function (filterItem) {
1465                return item.key !== filterItem.key;
1466            });
1467        }
1468
1469        self.refreshFilters();
1470
1471    };
1472
1473    self.HotelNameFilter = function () {
1474        if (self.txtHotelNameFilter != '') {
1475            self.lstHotels = self.lstHotels.filter(function (hotel) {
1476                if (hotel.HotelName.toLowerCase().indexOf(self.txtHotelNameFilter.toLowerCase()) != -1)
1477                    return hotel;
1478            })
1479            self.countResult = self.lstHotels.length;
1480        }
1481        else {
1482            self.lstHotels = self.lstFilterByHotelName;
1483            self.countResult = self.lstHotels.length;
1484        }
1485    };
1486
1487    self.HotelAreasFilter = function (event, item) {
1488        if (event.target.checked) {
1489            self.HotelsFiltered.FilteredHotelAreas.push(item);
1490        }
1491        else {
1492            self.HotelsFiltered.FilteredHotelAreas = self.HotelsFiltered.FilteredHotelAreas.filter(function (filterItem) {
1493                return item !== filterItem;
1494            });
1495        }
1496
1497        self.refreshFilters();
1498    };
1499
1500    self.HotelAccessToSeaFilter = function (event, item) {
1501
1502        if (event.target.checked) {
1503            self.HotelsFiltered.FilteredAccessToSea.push(item);
1504        }
1505        else {
1506            self.HotelsFiltered.FilteredAccessToSea = self.HotelsFiltered.FilteredAccessToSea.filter(function (filterItem) {
1507                return item !== filterItem;
1508            });
1509        }
1510
1511        self.refreshFilters();
1512    };
1513
1514
1515    self.FilterByPrice = function (item) {
1516
1517        if (event.target.checked) {
1518            self.HotelsFiltered.FilteredPrice.push(item);
1519        }
1520        else {
1521            self.HotelsFiltered.FilteredPrice = self.HotelsFiltered.FilteredPrice.filter(function (filterItem) {
1522                return item !== filterItem;
1523            });
1524        }
1525
1526        self.refreshFilters();
1527
1528    }
1529
1530    self.HotelBoardsFilter = function (event, item) {
1531
1532        if (event.target.checked) {
1533            self.HotelsFiltered.FilteredBoards.push(item);
1534        }
1535        else {
1536            self.HotelsFiltered.FilteredBoards = self.HotelsFiltered.FilteredBoards.filter(function (filterItem) {
1537                return item !== filterItem;
1538            });
1539        }
1540
1541        self.refreshFilters();
1542    }
1543
1544    self.HotelChainsFilter = function (event, item) {
1545
1546        if (event.target.checked) {
1547            self.HotelsFiltered.FilteredHotelChain.push(item);
1548        }
1549        else {
1550            self.HotelsFiltered.FilteredHotelChain = self.HotelsFiltered.FilteredHotelChain.filter(function (filterItem) {
1551                return item !== filterItem;
1552            });
1553        }
1554
1555        self.refreshFilters();
1556    }
1557
1558
1559    self.HotelRaitingFilter = function (event, item) {
1560
1561        if (event.target.checked) {
1562            self.HotelsFiltered.FilteredRaiting.push(item);
1563        }
1564        else {
1565            self.HotelsFiltered.FilteredRaiting = self.HotelsFiltered.FilteredRaiting.filter(function (filterItem) {
1566                return item !== filterItem;
1567            });
1568        }
1569
1570        self.refreshFilters();
1571    };
1572
1573    self.refreshFilters = function () {
1574        Services.FilterHotels(self.HotelsFiltered).then(function (res) {
1575            self.lstHotels = res.data.Content.Hotels;
1576            self.countResult = self.lstHotels.length;
1577            self.lstFilterByHotelName = self.lstHotels;
1578        });
1579    };
1580
1581    self.GetStriponStyle = function () {
1582        return { backgroundcolor: "#ffff" };
1583    };
1584
1585
1586    self.SetOrderParam = function (param) {
1587        if (param == self.orderParam && param[0] == '-') return;
1588        self.orderParam = param == self.orderParam ? "-" + param : param;
1589        setTimeout(function () {
1590            self.setOrderParamName();
1591        }, 0);
1592    };
1593
1594    self.orderParamName = '';
1595    self.setOrderParamName = function () {
1596        var name = self.orderParam;
1597        if (name[0] == '-') name = name.substr(1);
1598        self.orderParamName = $(".dropdown.sort-dropdown li[data-param-name='" + name + "']").attr('data-text');
1599        self.$evalAsync();
1600    };
1601
1602    self.GotoHotelPage = function (hotel) {
1603        var params = [];
1604
1605        function addParam(name) {
1606            if (QueryString[name] != null)
1607                params.push(name + "=" + QueryString[name]);
1608        }
1609
1610        addParam('Room');
1611        addParam('Adult');
1612        addParam('Child');
1613        addParam('Infant');
1614        addParam('checkIn');
1615        addParam('checkOut');
1616        return urlHotelPage + hotel.HotelNameUrlEncoded + '/' + (params.length > 0 ? ("?" + params.join("&")) : "");;
1617    };
1618
1619    self.GetShortDescription = function (desc) {
1620        desc = desc.replace(/<(?:.|\n)*?>/gm, '');
1621        return desc == '' || desc == null ? '' : (desc.length > 190 ? (desc.substring(0, 190) + "...") : desc);
1622    };
1623
1624    self.ShowStripon = function (desc) {
1625        return desc != null && desc != '';
1626    };
1627
1628    self.isEmptyObject = function (obj) {
1629        return obj == null || Object.keys(obj).length == 0;
1630    };
1631
1632    self.addGTag = function (hotel) {
1633
1634        var locationUrl = self.GotoHotelPage(hotel);
1635
1636        //fallback incase google tags dosen't work
1637        setTimeout(function () {
1638            document.location = locationUrl;
1639        }, 3500);
1640
1641        dataLayer.push({
1642            'event': 'productClick',
1643            'ecommerce': {
1644                'currencyCode': currencyType == '$' ? 'USD' : 'ILS',                    // currency – EUR, ILS, USD etc.
1645                'click': {
1646                    'products': [{
1647                        'name': hotel.HotelName,                       // Name of Hotel
1648                        'id': hotel.HotelId,                                  // Unique ID per Hotel
1649                        'price': hotel.Price,                                 // Price “From” displayed
1650                        'category': hotel.HotelCity,                   // City of Hotel clicked 
1651                        'quantity': 1                                   // W
1651ill always be 1 here
1652                    }]
1653                }
1654            },
1655            'eventCallback': function () {
1656                document.location = locationUrl;
1657            }
1658        });
1659
1660        return false;
1661
1662    };
1663
1664    self.init();
1665
1666}]);
1667app.controller('mainNavigation', ['$scope', '$window', function ($scope, $window) {
1668
1669    $scope.showInputValidation = false;
1670
1671    $scope.Init = function () {
1672
1673    };
1674
1675    $scope.searchQuery = null;
1676
1677    $scope.doSearch = function () {
1678        if ($scope.searchQuery != null && $scope.searchQuery.length > 0) {
1679            $window.location.href = articlePageResults + '?filter=' + encodeURI($scope.searchQuery);
1680        } else {
1681            $scope.showInputValidation = true;
1682        }
1683    };
1684    
1685    $scope.addGTag = function (menuHeader, linkTitle) {
1686        dataLayer.push({
1687            'event': 'menuBar',
1688            'menuBar_Primary': menuHeader,
1689            'menuBar_Secondary': linkTitle
1690        });
1691    };
1692
1693    $scope.getCulture = window.getCulture;
1694
1695    $scope.Init();
1696
1697}]);
1698
1699app.controller('paymentPage', ['$scope', 'Services', function ($scope, Services) {
1700    
1701    $scope.init = function () {
1702        $scope.pelecardUrl = null;
1703        $scope.showLoader = false;
1704        $scope.Order = {
1705            Mobile: window.orderMobile || {},
1706            Customer: window.orderCustomer || {
1707                title: '',
1708                firstName: '',
1709                lastName: '',
1710                email: '',
1711                nationality: '',
1712                specialRequests: '',
1713                phoneNumber: '',
1714                termsAgree: false
1715            },
1716            OrderDetails: orderDetails
1717        };
1718    };
1719
1720    $scope.emailPattern = '\\S+@\\S+\\.\\S+';
1721    $scope.sumbitClicked = false;
1722    $scope.notAvaibleLabel = false;
1723
1724    $scope.addGTag = function () {
1725        dataLayer.push({
1726            'event': 'checkout',
1727            'ecommerce': {
1728                'currencyCode': currencyType == '$' ? 'USD' : 'ILS',                    // currency – EUR, ILS, USD etc.
1729                'checkout': {
1730                    'actionField': { 'step': 2 },
1731                    'products': [{
1732                        'name': $scope.Order.OrderDetails.Hotel.HotelName,                       // Name of Hotel
1733                        'id': $scope.Order.OrderDetails.Hotel.HotelId,                                  // Unique ID per Hotel
1734                        'price': $scope.Order.OrderDetails.Price,                                 // Price “From” displayed
1735                        'category': $scope.Order.OrderDetails.Hotel.HotelCity,                   // City of Hotel clicked 
1736                        'quantity': 1                                   // W
1736ill always be 1 here
1737                    }]
1738                }
1739            }
1740        });   
1741    };
1742
1743    $scope.CheckAvailability = function () {
1744
1745        if (!$scope.Order.Customer.termsAgree) {
1746            $scope.showTermsChecked = true;
1747            return;
1748        }
1749
1750        $scope.notAvaibleLabel = false;
1751        $scope.showLoader = true;
1752        $scope.showTermsChecked = false;
1753
1754        $scope.Order.Customer.phoneNumber = $scope.Order.Mobile.area + "-" + $scope.Order.Mobile.phoneNumber;
1755
1756        Services.CheckAvailability($scope.Order).then(function (res) {
1757
1758            $scope.showLoader = false;
1759
1760            if (res.data.Content) {
1761                $scope.addGTag();
1762                $scope.pelecardUrl = res.data.Content.URL;
1763            }
1764            else {
1765                $scope.notAvaibleLabel = true;
1766            }
1767        });
1768
1769        return false;
1770    };
1771
1772    $scope.init();
1773}]);
1774/**
1775 * @license
1776 * Lodash <https://lodash.com/>
1777 * Copyright JS Foundation and other contributors <https://js.foundation/>
1778 * Released under MIT license <https://lodash.com/license>
1779 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1780 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1781 */
1782(function(){function ph(n,t){return n.set(t[0],t[1]),n}function wh(n,t){return n.add(t),n}function f(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}function bh(n,t,i,r){for(var f=-1,e=n==null?0:n.length,u;++f<e;)u=n[f],t(r,u,i(u),n);return r}function c(n,t){for(var i=-1,r=n==null?0:n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}function kh(n,t){for(var i=n==null?0:n.length;i--;)if(t(n[i],i,n)===!1)break;return n}function ie(n,t){for(var i=-1,r=n==null?0:n.length;++i<r;)if(!t(n[i],i,n))return!1;return!0}function tt(n,t){for(var i=-1,f=n==null?0:n.length,e=0,u=[],r;++i<f;)r=n[i],t(r,i,n)&&(u[e++]=r);return u}function ki(n,t){var i=n==null?0:n.length;return!!i&&vt(n,t,0)>-1}function dr(n,t,i){for(var r=-1,u=n==null?0:n.length;++r<u;)if(i(t,n[r]))return!0;return!1}function r(n,t){for(var i=-1,r=n==null?0:n.length,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}function it(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}function ui(n,t,i,r){var u=-1,f=n==null?0:n.length;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}function dh(n,t,i,r){var u=n==null?0:n.length;for(r&&u&&(i=n[--u]);u--;)i=t(i,n[u],u,n);return i}function gr(n,t){for(var i=-1,r=n==null?0:n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}function gh(n){return n.split("")}function nc(n){return n.match(ss)||[]}function ue(n,t,i){var r;return i(n,function(n,i,u){if(t(n,i,u))return r=i,!1}),r}function di(n,t,i,r){for(var f=n.length,u=i+(r?1:-1);r?u--:++u<f;)if(t(n[u],u,n))return u;return-1}function vt(n,t,i){return t===t?cc(n,t,i):di(n,fe,i)}function tc(n,t,i,r){for(var u=i-1,f=n.length;++u<f;)if(r(n[u],t))return u;return-1}function fe(n){return n!==n}function ee(n,t){var i=n==null?0:n.length;return i?iu(n,t)/i:hi}function nu(t){return function(i){return i==null?n:i[t]}}function tu(t){return function(i){return t==null?n:t[i]}}function oe(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}function ic(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}function iu(t,i){for(var r,f=-1,e=t.length,u;++f<e;)u=i(t[f]),u!==n&&(r=r===n?u:r+u);return r}function ru(n,t){for(var i=-1,r=Array(n);++i<n;)r[i]=t(i);return r}function rc(n,t){return r(t,function(t){return[t,n[t]]})}function e(n){return function(t){return n(t)}}function uu(n,t){return r(t,function(t){return n[t]})}function fi(n,t){return n.has(t)}function se(n,t){for(var i=-1,r=n.length;++i<r&&vt(t,n[i],0)>-1;);return i}function he(n,t){for(var i=n.length;i--&&vt(t,n[i],0)>-1;);return i}function uc(n,t){for(var i=n.length,r=0;i--;)n[i]===t&&++r;return r}function fc(n){return"\\"+lh[n]}function ec(t,i){return t==null?n:t[i]}function yt(n){return oh.test(n)}function oc(n){return sh.test(n)}function sc(n){for(var t,i=[];!(t=n.next()).done;)i.push(t.value);return i}function ei(n){var i=-1,t=Array(n.size);
1782return n.forEach(function(n,r){t[++i]=[r,n]}),t}function ae(n,t){return function(i){return n(t(i))}}function rt(n,t){for(var i=-1,f=n.length,e=0,u=[],r;++i<f;)r=n[i],(r===t||r===oi)&&(n[i]=oi,u[e++]=i);return u}function pt(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=n}),t}function hc(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=[n,n]}),t}function cc(n,t,i){for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function lc(n,t,i){for(var r=i+1;r--;)if(n[r]===t)return r;return r}function wt(n){return yt(n)?ac(n):re(n)}function v(n){return yt(n)?vc(n):gh(n)}function ac(n){for(var t=wr.lastIndex=0;wr.test(n);)++t;return t}function vc(n){return n.match(wr)||[]}function yc(n){return n.match(eh)||[]}var n,ye="4.17.4",gi=200,pe="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",nr="__lodash_hash_undefined__",we=500,oi="__lodash_placeholder__",y=1,eu=2,et=4,ot=1,si=2,s=1,ut=2,ou=4,p=8,st=16,w=32,ht=64,k=128,bt=256,tr=512,be=30,ke="...",de=800,ge=16,su=1,no=2,to=3,ft=1/0,nt=9007199254740991,io=17976931348623157e292,hi=NaN,b=4294967295,ro=b-1,uo=b>>>1,fo=[["ary",k],["bind",s],["bindKey",ut],["curry",p],["curryRight",st],["flip",tr],["partial",w],["partialRight",ht],["rearg",bt]],ct="[object Arguments]",ci="[object Array]",eo="[object AsyncFunction]",kt="[object Boolean]",dt="[object Date]",oo="[object DOMException]",li="[object Error]",ai="[object Function]",hu="[object GeneratorFunction]",l="[object Map]",gt="[object Number]",so="[object Null]",d="[object Object]",cu="[object Promise]",ho="[object Proxy]",ni="[object RegExp]",a="[object Set]",ti="[object String]",vi="[object Symbol]",co="[object Undefined]",ii="[object WeakMap]",lo="[object WeakSet]",ri="[object ArrayBuffer]",lt="[object DataView]",ir="[object Float32Array]",rr="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",er="[object Int32Array]",or="[object Uint8Array]",sr="[object Uint8ClampedArray]",hr="[object Uint16Array]",cr="[object Uint32Array]",ao=/\b__p \+= '';/g,vo=/\b(__p \+=) '' \+/g,yo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lu=/&(?:amp|lt|gt|quot|#39);/g,au=/[&<>"']/g,po=RegExp(lu.source),wo=RegExp(au.source),bo=/<%-([\s\S]+?)%>/g,ko=/<%([\s\S]+?)%>/g,vu=/<%=([\s\S]+?)%>/g,go=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/,ts=/^\./,is=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lr=/[\\^$.*+?()[\]{}|]/g,rs=RegExp(lr.source),yu=/^\s+|\s+$/g,pu=/^\s+/,us=/\s+$/,fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,es=/\{\n\/\* \[wrapped with (.+)\] \*/,os=/,? & /,ss=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hs=/\\(\\)?/g,cs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wu=/\w*$/,ls=/^[-+]0x[0-9a-f]+$/i,as=/^0b[01]+$/i,vs=/^\[object .+?Constructor\]$/,ys=/^0o[0-7]+$/i,ps=/^(?:0|[1-9]\d*)$/,ws=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17827f]/g,yi=/($^)/,bs=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",bu="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ku="\\u2700-\\u27bf",du="a-z\\xdf-\\xf6\\xf8-\\xff",gu="A-Z\\xc0-\\xd6\\xd8-\\xde",nf="\\ufe0e\\ufe0f",tf="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ar="['’]",ks="["+pi+"]",rf="["+tf+"]",wi="["+bu+"]",uf="\\d+",ds="["+ku+"]",ff="["+du+"]",ef="[^"+pi+tf+uf+ku+du+gu+"]",vr="\\ud83c[\\udffb-\\udfff]",gs="(?:"+wi+"|"+vr+")",of="[^"+pi+"]",yr="(?:\\ud83c[\\udde6-\\uddff]){2}",pr="[\\ud800-\\udbff][\\udc00-\\udfff]",at="["+gu+"]",sf="\\u200d",hf="(?:"+ff+"|"+ef+")",nh="(?:"+at+"|"+ef+")",cf="(?:"+ar+"(?:d|ll|m|re|s|t|ve))?",lf="(?:"+ar+"(?:D|LL|M|RE|S|T|VE))?",af=gs+"?",vf="["+nf+"]?",th="(?:"+sf+"(?:"+[of,yr,pr].join("|")+")"+vf+af+")*",yf=vf+af+th,ih="(?:"+[ds,yr,pr].join("|")+")"+yf,rh="(?:"+[of+wi+"?",wi,yr,pr,ks].join("|")+")",uh=RegExp(ar,"g"),fh=RegExp(wi,"g"),wr=RegExp(vr+"(?="+vr+")|"+rh+yf,"g"),eh=RegExp([at+"?"+ff+"+"+cf+"(?="+[rf,at,"$"].join("|")+")",nh+"+"+lf+"(?="+[rf,at+hf,"$"].join("|")+")",at+"?"+hf+"+"+cf,at+"+"+lf,"\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",uf,ih].join("|"),"g"),oh=RegExp("["+sf+pi+bu+nf+"]"),sh=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ch=-1,i={},t,re,ce,le,ve,fu,g;i[ir]=i[rr]=i[ur]=i[fr]=i[er]=i[or]=i[sr]=i[hr]=i[cr]=!0;i[ct]=i[ci]=i[ri]=i[kt]=i[lt]=i[dt]=i[li]=i[ai]=i[l]=i[gt]=i[d]=i[ni]=i[a]=i[ti]=i[ii]=!1;t={};t[ct]=t[ci]=t[ri]=t[lt]=t[kt]=t[dt]=t[ir]=t[rr]=t[ur]=t[fr]=t[er]=t[l]=t[gt]=t[d]=t[ni]=t[a]=t[ti]=t[vi]=t[or]=t[sr]=t[hr]=t[cr]=!0;t[li]=t[ai]=t[ii]=!1;var lh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ah=parseFloat,vh=parseInt,pf=typeof global=="object"&&global&&global.Object===Object&&global,yh=typeof self=="object"&&self&&self.Object===Object&&self,u=pf||yh||Function("return this")(),br=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bi=br&&typeof module=="object"&&module&&!module.nodeType&&module,wf=bi&&bi.exports===br,kr=wf&&pf.process,h=function(){try{return kr&&kr.binding&&kr.binding("util")}catch(n){}}(),bf=h&&h.isArrayBuffer,kf=h&&h.isDate,df=h&&h.isMap,gf=h&&h.isRegExp,ne=h&&h.isSet,te=h&&h.isTypedArray;re=nu("length");ce=tu({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});le=tu({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});ve=tu({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});fu=function fu(h){function at(n){if(kr(n)&&!wi(n)&&!(n instanceof vr)){if(n instanceof af)return n;if(pr.call(n,"__wrapped__"))return pd(n)}return new af(n)}function tv(){}function af(t,i){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!i;this.__index__=0;this.__values__=n}function vr(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=b;this.__views__=[]}function yit(){var n=new vr(this.__wrapped__);return n.__actions__=uf(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=uf(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=uf(this.__views__),n}function pit(){if(this.__filtered__){var n=new vr(this);n.__dir__=-1;n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function wit(){var n=this.__wrapped__.value(),f=this.__dir__,e=wi(n),o=f<0,s=e?n.length:0,h=kft(0,s,this.__views__),c=h.start,l=h.end,t=l-c,a=o?l:c-1,v=this.__iteratees__,d=v.length,y=0,p=nf(t,this.__takeCount__),r,u,i;if(!e||!o&&s==t&&p==t)return uk(n,this.__actions__);r=[];n:while(t--&&y<p){for(a+=f,u=-1,i=n[a];++u<d;){var w=v[u],g=w.iteratee,b=w.type,k=g(i);if(b==no)i=k;else if(!k)if(b==su)continue n;else break n}r[y++]=i}return r}function dc(n){var i=-1,r=n==null?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function bit(){this.__data__=wl?wl(null):{};this.size=0}function kit(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function dit(t){var i=this.__data__,r;return wl?(r=i[t],r===nr?n:r):pr.call(i,t)?i[t]:n}function git(t){var i=this.__data__;return wl?i[t]!==n:pr.call(i,t)}function nrt(t,i){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wl&&i===n?nr:i,this}function th(n){var i=-1,r=n==null?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function trt(){this.__data__=[];this.size=0}function irt(n){var t=this.__data__,i=iv(t,n),r;return i<0?!1:(r=t.length-1,i==r?t.pop():wa.call(t,i,1),--this.size,!0)}function rrt(t){var i=this.__data__,r=iv(i,t);return r<0?n:i[r][1]}function urt(n){return iv(this.__data__,n)>-1}function frt(n,t){var i=this.__data__,r=iv(i,n);return r<0?(++this.size,i.push([n,t])):i[r][1]=t,this}function ih(n){var i=-1,r=n==null?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function ert(){this.size=0;this.__data__={hash:new dc,map:new(yl||th),string:new dc}}function ort(n){var t=wv(this,n)["delete"](n);return this.size-=t?1:0,t}function srt(n){return wv(this,n).get(n)}function hrt(n){return wv(this,n).has(n)}function crt(n,t){var i=wv(this,n),r=i.size;return i.set(n,t),this.size+=i.size==r?0:1,this}function gc(n){var t=-1,i=n==null?0:n.length;for(this.__data__=new ih;++t<i;)this.add(n[t])}function lrt(n){return this.__data__.set(n,nr),this}function art(n){return this.__data__.has(n)}function re(n){var t=this.__data__=new th(n);this.size=t.size}function vrt(){this.__data__=new th;this.size=0}function yrt(n){var t=this.__data__,i=t["delete"](n);return this.size=t.size,i}function prt(n){return this.__data__.get(n)}function wrt(n){return this.__data__.has(n)}function brt(n,t){var i=this.__data__,r;if(i instanceof th){if(r=i.__data__,!yl||r.length<gi-1)return r.push([n,t]),this.size=++i.size,this;i=this.__data__=new ih(r)}return i.set(n,t),this.size=i.size,this}function ub(n,t){var r=wi(n),u=!r&&rl(n),f=!r&&!u&&yh(n),o=!r&&!u&&!f&&ul(n),s=r||u||f||o,e=s?ru(n.length,ytt):[],h=e.length;for(var i in n)!(t||pr.call(n,i))||s&&(i=="length"||f&&(i=="offset"||i=="parent")||o&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||lh(i,h))||e.push(i);return e}function fb(t){var i=t.length;return i?t[np(0,i-1)]:n}function krt(n,t){return bv(uf(n),nl(t,0,n.length))}function drt(n){return bv(uf(n))}function cy(t,i,r){(r===n||nh(t[i],r))&&(r!==n||i in t)||rh(t,i,r)}function dl(t,i,r){var u=t[i];pr.call(t,i)&&nh(u,r)&&(r!==n||i in t)||rh(t,i,r)}function iv(n,t){for(var i=n.length;i--;)if(nh(n[i][0],t))return i;return-1}function grt(n,t,i,r){return eh(n,function(n,u,f){t(r,n,i(n),f)}),r}function eb(n,t){return n&&ds(t,du(t),n)}function nut(n,t){return n&&ds(t,cf(t),n)}function rh(n,t,i){t=="__proto__"&&ba?ba(n,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[t]=i}function ly(t,i){for(var r=-1,u=i.length,f=bu(u),e=t==null;++r<u;)f[r]=e?n:uw(t,i[r]);return f}function nl(t,i,r){return t===t&&(r!==n&&(t=t<=r?t:r),i!==n&&(t=t>=i?t:i)),t}function ss(i,r,u,f,e,o){var s,l=r&y,a=r&eu,g=r&et,v,h,p,w,k,b;if(u&&(s=e?u(i,f,e,o):u(i)),s!==n)return s;if(!br(i))return i;if(v=wi(i),v){if(s=gft(i),!l)return uf(i,s)}else{if(h=tf(i),p=h==ai||h==hu,yh(i))return sk(i,l);if(h==d||h==ct||p&&!e){if(s=a||p?{}:ed(i),!l)return a?cft(i,nut(s,i)):hft(i,eb(s,i))}else{if(!t[h])return e?i:{};s=net(i,h,ss,l)}}return(o||(o=new re),w=o.get(i),w)?w:(o.set(i,s),k=g?a?vp:ap:a?cf:du,b=v?n:k(i),c(b||i,function(n,t){b&&(t=n,n=i[t]);dl(s,t,ss(n,r,u,t,i,o))}),s)}function tut(n){var t=du(n);return function(i){return ob(i,n,t)}}function ob(t,i,r){var u=r.length;if(t==null)return!u;for(t=wr(t);u--;){var f=r[u],o=i[f],e=t[f];if(e===n&&!(f in t)||!o(e))return!1}return!0}
1782function sb(t,i,r){if(typeof t!="function")throw new lf(o);return fa(function(){t.apply(n,r)},i)}function gl(n,t,i,u){var a=-1,h=ki,c=!0,v=n.length,s=[],y=t.length,f,o,l;if(!v)return s;i&&(t=r(t,e(i)));u?(h=dr,c=!1):t.length>=gi&&(h=fi,c=!1,t=new gc(t));n:while(++a<v)if(f=n[a],o=i==null?f:i(f),f=u||f!==0?f:0,c&&o===o){for(l=y;l--;)if(t[l]===o)continue n;s.push(f)}else h(t,o,u)||s.push(f);return s}function iut(n,t){var i=!0;return eh(n,function(n,r,u){return i=!!t(n,r,u)}),i}function rv(t,i,r){for(var o=-1,h=t.length,f,u,e,s;++o<h;)f=t[o],u=i(f),u!=null&&(e===n?u===u&&!hf(u):r(u,e))&&(e=u,s=f);return s}function rut(t,i,r,u){var f=t.length;for(r=bi(r),r<0&&(r=-r>f?0:f+r),u=u===n||u>f?f:bi(u),u<0&&(u+=f),u=r>u?0:an(u);r<u;)t[r++]=i;return t}function hb(n,t){var i=[];return eh(n,function(n,r,u){t(n,r,u)&&i.push(n)}),i}function gu(n,t,i,r,u){var e=-1,o=n.length,f;for(i||(i=iet),u||(u=[]);++e<o;)f=n[e],t>0&&i(f)?t>1?gu(f,t-1,i,r,u):it(u,f):r||(u[u.length]=f);return u}function ks(n,t){return n&&uv(n,t,du)}function yy(n,t){return n&&vy(n,t,du)}function fv(n,t){return tt(t,function(t){return gh(n[t])})}function ol(t,i){i=pc(i,t);for(var r=0,u=i.length;t!=null&&r<u;)t=t[gs(i[r++])];return r&&r==u?t:n}function cb(n,t,i){var r=t(n);return wi(n)?r:it(r,i(n))}function rf(t){return t==null?t===n?co:so:bc&&bc in wr(t)?bft(t):set(t)}function py(n,t){return n>t}function uut(n,t){return n!=null&&pr.call(n,t)}function fut(n,t){return n!=null&&t in wr(n)}function eut(n,t,i){return n>=nf(t,i)&&n<ku(t,i)}function wy(t,i,u){for(var b=u?dr:ki,k=t[0].length,a=t.length,f=a,v=bu(a),y=Infinity,l=[],o,p,c,s,h,w;f--;)o=t[f],f&&i&&(o=r(o,e(i))),y=nf(o.length,y),v[f]=!u&&(i||k>=120&&o.length>=120)?new gc(f&&o):n;o=t[0];p=-1;c=v[0];n:while(++p<k&&l.length<y)if(s=o[p],h=i?i(s):s,s=u||s!==0?s:0,!(c?fi(c,h):b(l,h,u))){for(f=a;--f;)if(w=v[f],!(w?fi(w,h):b(t[f],h,u)))continue n;c&&c.push(h);l.push(s)}return l}function out(n,t,i,r){return ks(n,function(n,u,f){t(r,i(n),u,f)}),r}function na(t,i,r){i=pc(i,t);t=ld(t,i);var u=t==null?t:t[gs(yf(i))];return u==null?n:f(u,t,r)}function lb(n){return kr(n)&&rf(n)==ct}function sut(n){return kr(n)&&rf(n)==ri}function hut(n){return kr(n)&&rf(n)==dt}function ta(n,t,i,r,u){return n===t?!0:n==null||t==null||!kr(n)&&!kr(t)?n!==n&&t!==t:cut(n,t,i,r,ta,u)}function cut(n,t,i,r,u,f){var s=wi(n),p=wi(t),e=s?ci:tf(n),o=p?ci:tf(t),l,a,v,y;e=e==ct?d:e;o=o==ct?d:o;var h=e==d,w=o==d,c=e==o;if(c&&yh(n)){if(!yh(t))return!1;s=!0;h=!1}return c&&!h?(f||(f=new re),s||ul(n)?rd(n,t,i,r,u,f):pft(n,t,e,i,r,u,f)):!(i&ot)&&(l=h&&pr.call(n,"__wrapped__"),a=w&&pr.call(t,"__wrapped__"),l||a)?(v=l?n.value():n,y=a?t.value():t,f||(f=new re),u(v,y,i,r,f)):c?(f||(f=new re),wft(n,t,i,r,u,f)):!1}function lut(n){return kr(n)&&tf(n)==l}function by(t,i,r,u){var e=r.length,l=e,a=!u,f,h,c;if(t==null)return!l;for(t=wr(t);e--;)if(f=r[e],a&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1;while(++e<l){f=r[e];var o=f[0],s=t[o],v=f[1];if(a&&f[2]){if(s===n&&!(o in t))return!1}else if(h=new re,u&&(c=u(s,v,o,t,i,h)),!(c===n?ta(v,s,ot|si,u,h):c))return!1}return!0}function ab(n){if(!br(n)||uet(n))return!1;var t=gh(n)?dtt:vs;return t.test(il(n))}function aut(n){return kr(n)&&rf(n)==ni}function vut(n){return kr(n)&&tf(n)==a}function yut(n){return kr(n)&&iy(n.length)&&!!i[rf(n)]}function vb(n){return typeof n=="function"?n:n==null?of:typeof n=="object"?wi(n)?wb(n[0],n[1]):pb(n):ltt(n)}function ky(n){var i,t;if(!ua(n))return fit(n);i=[];for(t in wr(n))pr.call(n,t)&&t!="constructor"&&i.push(t);return i}function put(n){var r,i,t;if(!br(n))return oet(n);r=ua(n);i=[];for(t in n)t=="constructor"&&(r||!pr.call(n,t))||i.push(t);return i}function dy(n,t){return n<t}function yb(n,t){var r=-1,i=ef(n)?bu(n.length):[];return eh(n,function(n,u,f){i[++r]=t(n,u,f)}),i}function pb(n){var t=yp(n);return t.length==1&&t[0][2]?hd(t[0][0],t[0][1]):function(i){return i===n||by(i,n,t)}}function wb(t,i){return wp(t)&&sd(i)?hd(gs(t),i):function(r){var u=uw(r,t);return u===n&&u===i?fw(r,t):ta(i,u,ot|si)}}function ev(t,i,r,u,f){t!==i&&uv(i,function(e,o){if(br(e))f||(f=new re),wut(t,i,o,r,ev,u,f);else{var s=u?u(t[o],e,o+"",t,i,f):n;s===n&&(s=e);cy(t,o,s)}},cf)}function wut(t,i,r,u,f,e,o){var c=t[r],s=i[r],y=o.get(s),h,l;if(y){cy(t,r,y);return}if(h=e?e(c,s,r+"",t,i,o):n,l=h===n,l){var a=wi(s),v=!a&&yh(s),p=!a&&!v&&ul(s);h=s;a||v||p?wi(c)?h=c:tu(c)?h=uf(c):v?(l=!1,h=sk(s,!0)):p?(l=!1,h=hk(s,!0)):h=[]:oa(s)||rl(s)?(h=c,rl(c)?h=vn(c):(!br(c)||u&&gh(c))&&(h=ed(s))):l=!1}l&&(o.set(s,h),f(h,s,u,e,o),o["delete"](s));cy(t,r,h)}function bb(t,i){var r=t.length;if(r)return i+=i<0?r:0,lh(i,r)?t[i]:n}function kb(n,t,i){var f=-1,u;return t=r(t.length?t:[of],e(pi())),u=yb(n,function(n){var i=r(t,function(t){return t(n)});return{criteria:i,index:++f,value:n}}
1782),ic(u,function(n,t){return sft(n,t,i)})}function but(n,t){return db(n,t,function(t,i){return fw(n,i)})}function db(n,t,i){for(var f=-1,o=t.length,e={},r,u;++f<o;)r=t[f],u=ol(n,r),i(u,r)&&ia(e,pc(r,n),u);return e}function kut(n){return function(t){return ol(t,n)}}function gy(n,t,i,u){var c=u?tc:vt,s=-1,l=t.length,f=n;for(n===t&&(t=uf(t)),i&&(f=r(n,e(i)));++s<l;)for(var o=0,h=t[s],a=i?i(h):h;(o=c(f,a,o,u))>-1;)f!==n&&wa.call(f,o,1),wa.call(n,o,1);return n}function gb(n,t){for(var r=n?t.length:0,f=r-1,i,u;r--;)i=t[r],(r==f||i!==u)&&(u=i,lh(i)?wa.call(n,i,1):up(n,i));return n}function np(n,t){return n+da(ib()*(t-n+1))}function dut(n,t,i,r){for(var e=-1,u=ku(ka((t-n)/(i||1)),0),f=bu(u);u--;)f[r?u:++e]=n,n+=i;return f}function tp(n,t){var i="";if(!n||t<1||t>nt)return i;do t%2&&(i+=n),t=da(t/2),t&&(n+=n);while(t);return i}function ar(n,t){return kp(cd(n,t,of),n+"")}function gut(n){return fb(ll(n))}function nft(n,t){var i=ll(n);return bv(i,nl(t,0,i.length))}function ia(t,i,r,u){var e,o,h;if(!br(t))return t;i=pc(i,t);for(var s=-1,c=i.length,l=c-1,f=t;f!=null&&++s<c;)e=gs(i[s]),o=r,s!=l&&(h=f[e],o=u?u(h,e,f):n,o===n&&(o=br(h)?h:lh(i[s+1])?[]:{})),dl(f,e,o),f=f[e];return t}function tft(n){return bv(ll(n))}function vf(n,t,i){var u=-1,r=n.length,f;for(t<0&&(t=-t>r?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0,f=bu(r);++u<r;)f[u]=n[u+t];return f}function ift(n,t){var i;return eh(n,function(n,r,u){return i=t(n,r,u),!i}),!!i}function ov(n,t,i){var f=0,r=n==null?f:n.length,e,u;if(typeof t=="number"&&t===t&&r<=uo){while(f<r)e=f+r>>>1,u=n[e],u!==null&&!hf(u)&&(i?u<=t:u<t)?f=e+1:r=e;return r}return rp(n,t,of,i)}function rp(t,i,r,u){var v;i=r(i);for(var s=0,e=t==null?0:t.length,y=i!==i,p=i===null,w=hf(i),b=i===n;s<e;){var h=da((s+e)/2),f=r(t[h]),c=f!==n,l=f===null,o=f===f,a=hf(f);v=y?u||o:b?o&&(u||c):p?o&&c&&(u||!l):w?o&&c&&!l&&(u||!a):l||a?!1:u?f<=i:f<i;v?s=h+1:e=h}return nf(e,ro)}function tk(n,t){for(var r=-1,o=n.length,s=0,f=[],i,u,e;++r<o;)i=n[r],u=t?t(i):i,r&&nh(u,e)||(e=u,f[s++]=i===0?0:i);return f}function ik(n){return typeof n=="number"?n:hf(n)?hi:+n}function sf(n){if(typeof n=="string")return n;if(wi(n))return r(n,sf)+"";if(hf(n))return rb?rb.call(n):"";var t=n+"";return t=="0"&&1/n==-ft?"-0":t}function vc(n,t,i){var l=-1,o=ki,a=n.length,s=!0,e=[],r=e,h,u,f,c;if(i)s=!1,o=dr;else if(a>=gi){if(h=t?null:nd(n),h)return pt(h);s=!1;o=fi;r=new gc}else r=t?[]:e;n:while(++l<a)if(u=n[l],f=t?t(u):u,u=i||u!==0?u:0,s&&f===f){for(c=r.length;c--;)if(r[c]===f)continue n;t&&r.push(f);e.push(u)}else o(r,f,i)||(r!==e&&r.push(f),e.push(u));return e}function up(n,t){return t=pc(t,n),n=ld(n,t),n==null||delete n[gs(yf(t))]}function rk(n,t,i,r){return ia(n,t,i(ol(n,t)),r)}function sv(n,t,i,r){for(var f=n.length,u=r?f:-1;(r?u--:++u<f)&&t(n[u],u,n););return i?vf(n,r?0:u,r?u+1:f):vf(n,r?u+1:0,r?f:u)}function uk(n,t){var i=n;return i instanceof vr&&(i=i.value()),ui(t,function(n,t){return t.func.apply(t.thisArg,it([n],t.args))},i)}function fp(n,t,i){var u=n.length,r,f,o,e;if(u<2)return u?vc(n[0]):[];for(r=-1,f=bu(u);++r<u;)for(o=n[r],e=-1;++e<u;)e!=r&&(f[r]=gl(f[r]||o,n[e],t,i));return vc(gu(f,1),t,i)}function fk(t,i,r){for(var u=-1,o=t.length,s=i.length,f={},e;++u<o;)e=u<s?i[u]:n,r(f,t[u],e);return f}function ep(n){return tu(n)?n:[]}function op(n){return typeof n=="function"?n:of}function pc(n,t){return wi(n)?n:wp(n,t)?[n]:dp(yr(n))}function wc(t,i,r){var u=t.length;return r=r===n?u:r,!i&&r>=u?t:vf(t,i,r)}function sk(n,t){if(t)return n.slice();var i=n.length,r=dw?dw(i):new n.constructor(i);return n.copy(r),r}function sp(n){var t=new n.constructor(n.byteLength);return new ya(t).set(new ya(n)),t}function rft(n,t){var i=t?sp(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}function uft(n,t,i){var r=t?i(ei(n),y):ei(n);return ui(r,ph,new n.constructor)}function fft(n){var t=new n.constructor(n.source,wu.exec(n));return t.lastIndex=n.lastIndex,t}function eft(n,t,i){var r=t?i(pt(n),y):pt(n);return ui(r,wh,new n.constructor)}function oft(n){return kl?wr(kl.call(n)):{}}function hk(n,t){var i=t?sp(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}function ck(t,i){if(t!==i){var o=t!==n,s=t===null,r=t===t,u=hf(t),h=i!==n,c=i===null,f=i===i,e=hf(i);if(!c&&!e&&!u&&t>i||u&&h&&f&&!c&&!e||s&&h&&f||!o&&f||!r)return 1;if(!s&&!u&&!e&&t<i||e&&o&&r&&!s&&!u||c&&o&&r||!h&&r||!f)return-1}return 0}
1782function sft(n,t,i){for(var r=-1,f=n.criteria,o=t.criteria,s=f.length,h=i.length,u,e;++r<s;)if(u=ck(f[r],o[r]),u)return r>=h?u:(e=i[r],u*(e=="desc"?-1:1));return n.index-t.index}function lk(n,t,i,r){for(var u=-1,o=n.length,s=i.length,f=-1,h=t.length,c=ku(o-s,0),e=bu(h+c),l=!r;++f<h;)e[f]=t[f];while(++u<s)(l||u<o)&&(e[i[u]]=n[u]);while(c--)e[f++]=n[u++];return e}function ak(n,t,i,r){for(var u=-1,s=n.length,h=-1,c=i.length,e=-1,l=t.length,a=ku(s-c,0),f=bu(a+l),v=!r,o;++u<a;)f[u]=n[u];for(o=u;++e<l;)f[o+e]=t[e];while(++h<c)(v||u<s)&&(f[o+i[h]]=n[u++]);return f}function uf(n,t){var i=-1,r=n.length;for(t||(t=bu(r));++i<r;)t[i]=n[i];return t}function ds(t,i,r,u){var h=!r,o,s,f,e;for(r||(r={}),o=-1,s=i.length;++o<s;)f=i[o],e=u?u(r[f],t[f],f,r,t):n,e===n&&(e=t[f]),h?rh(r,f,e):dl(r,f,e);return r}function hft(n,t){return ds(n,pp(n),t)}function cft(n,t){return ds(n,ud(n),t)}function hv(n,t){return function(i,r){var u=wi(i)?bh:grt,f=t?t():{};return u(i,n,pi(r,2),f)}}function sl(t){return ar(function(i,r){var e=-1,u=r.length,f=u>1?r[u-1]:n,s=u>2?r[2]:n,o;for(f=t.length>3&&typeof f=="function"?(u--,f):n,s&&ff(r[0],r[1],s)&&(f=u<3?n:f,u=1),i=wr(i);++e<u;)o=r[e],o&&t(i,o,e,f);return i})}function vk(n,t){return function(i,r){if(i==null)return i;if(!ef(i))return n(i,r);for(var f=i.length,u=t?f:-1,e=wr(i);t?u--:++u<f;)if(r(e[u],u,e)===!1)break;return i}}function yk(n){return function(t,i,r){for(var s=-1,f=wr(t),e=r(t),o=e.length,u;o--;)if(u=e[n?o:++s],i(f[u],u,f)===!1)break;return t}}function lft(n,t,i){function r(){var t=this&&this!==u&&this instanceof r?e:n;return t.apply(f?i:this,arguments)}var f=t&s,e=ra(n);return r}function pk(t){return function(i){i=yr(i);var r=yt(i)?v(i):n,u=r?r[0]:i.charAt(0),f=r?wc(r,1).join(""):i.slice(1);return u[t]()+f}}function hl(n){return function(t){return ui(ftt(ttt(t).replace(uh,"")),n,"")}}function ra(n){return function(){var t=arguments,i,r;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}return i=kc(n.prototype),r=n.apply(i,t),br(r)?r:i}}function aft(t,i,r){function e(){for(var s=arguments.length,h=bu(s),c=s,l=cl(e),a,v;c--;)h[c]=arguments[c];return(a=s<3&&h[0]!==l&&h[s-1]!==l?[]:rt(h,l),s-=a.length,s<r)?gk(t,i,cv,e.placeholder,n,h,a,n,n,r-s):(v=this&&this!==u&&this instanceof e?o:t,f(v,this,h))}var o=ra(t);return e}function wk(t){return function(i,r,u){var e=wr(i),o,f;return ef(i)||(o=pi(r,3),i=du(i),r=function(n){return o(e[n],n,e)}),f=t(i,r,u),f>-1?e[o?i[f]:f]:n}}function bk(t){return sh(function(i){var s=i.length,e=s,c=af.prototype.thru,u,r,h,f;for(t&&i.reverse();e--;){if(u=i[e],typeof u!="function")throw new lf(o);c&&!r&&pv(u)=="wrapper"&&(r=new af([],!0))}for(e=r?e:s;++e<s;)u=i[e],h=pv(u),f=h=="wrapper"?yv(u):n,r=f&&bp(f[0])&&f[1]==(k|p|w|bt)&&!f[4].length&&f[9]==1?r[pv(f[0])].apply(r,f[3]):u.length==1&&bp(u)?r[h]():r.thru(u);return function(){var u=arguments,f=u[0],n,t;if(r&&u.length==1&&wi(f))return r.plant(f).value();for(n=0,t=s?i[n].apply(this,u):f;++n<s;)t=i[n].call(this,t);return t}})}function cv(t,i,r,f,e,o,h,c,l,a){function y(){for(var s=arguments.length,n=bu(s),k=s,tt,ut,ft,it,p;k--;)n[k]=arguments[k];return(v&&(tt=cl(y),ut=uc(n,tt)),f&&(n=lk(n,f,e,v)),o&&(n=ak(n,o,h,v)),s-=ut,v&&s<a)?(ft=rt(n,tt),gk(t,i,cv,y.placeholder,r,n,ft,c,l,a-s)):(it=d?r:this,p=w?it[t]:t,s=n.length,c?n=het(n,c):g&&s>1&&n.reverse(),b&&l<s&&(n.length=l),this&&this!==u&&this instanceof y&&(p=nt||ra(p)),p.apply(it,n))}var b=i&k,d=i&s,w=i&ut,v=i&(p|st),g=i&tr,nt=w?n:ra(t);return y}function kk(n,t){return function(i,r){return out(i,n,t(r),{})}}function lv(t,i){return function(r,u){var f;if(r===n&&u===n)return i;if(r!==n&&(f=r),u!==n){if(f===n)return u;typeof r=="string"||typeof u=="string"?(r=sf(r),u=sf(u)):(r=ik(r),u=ik(u));f=t(r,u)}return f}}function hp(n){return sh(function(t){return t=r(t,e(pi())),ar(function(i){var r=this;return n(t,function(n){return f(n,r,i)})})})}function av(t,i){var r,u;return(i=i===n?" ":sf(i),r=i.length,r<2)?r?tp(i,t):i:(u=tp(i,ka(t/wt(i))),yt(i)?wc(v(u),0,t).join(""):u.slice(0,t))}function vft(n,t,i,r){function e(){for(var a=-1,c=arguments.length,t=-1,l=r.length,s=bu(l+c),v=this&&this!==u&&this instanceof e?h:n;++t<l;)s[t]=r[t];while(c--)s[t++]=arguments[++a];return f(v,o?i:this,s)}var o=t&s,h=ra(n);return e}function dk(t){return function(i,r,u){return u&&typeof u!="number"&&ff(i,r,u)&&(r=u=n),i=cc(i),r===n?(r=i,i=0):r=cc(r),u=u===n?i<r?1:-1:cc(u),dut(i,r,u,t)}}function vv(n){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=pf(t),i=pf(i)),n(t,i)}}function gk(t,i,r,u,f,e,o,h,c,l){var a=i&p,b=a?o:n,k=a?n:o,d=a?e:n,g=a?n:e,y,v;return i|=a?w:ht,i&=~(a?ht:w),i&ou||(i&=~(s|ut)),y=[t,i,f,d,b,g,k,h,c,l],v=r.apply(n,y),bp(t)&&ad(v,y),v.placeholder=u,vd(v,t,i)}function cp(n){var t=fl[n];
1782return function(n,i){if(n=pf(n),i=i==null?0:nf(bi(i),292),i){var r=(yr(n)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+i));return r=(yr(u)+"e").split("e"),+(r[0]+"e"+(+r[1]-i))}return t(n)}}function td(n){return function(t){var i=tf(t);return i==l?ei(t):i==a?hc(t):rc(t,n(t))}}function oh(t,i,r,u,f,e,h,c){var y=i&ut,a,b,k,v,l,d,g;if(!y&&typeof t!="function")throw new lf(o);return a=u?u.length:0,a||(i&=~(w|ht),u=f=n),h=h===n?h:ku(bi(h),0),c=c===n?c:bi(c),a-=f?f.length:0,i&ht&&(b=u,k=f,u=f=n),v=y?n:yv(t),l=[t,i,r,u,f,b,k,e,h,c],v&&eet(l,v),t=l[0],i=l[1],r=l[2],u=l[3],f=l[4],c=l[9]=l[9]===n?y?0:t.length:ku(l[9]-a,0),!c&&i&(p|st)&&(i&=~(p|st)),d=i&&i!=s?i==p||i==st?aft(t,i,c):i!=w&&i!=(s|w)||f.length?cv.apply(n,l):vft(t,i,r,u):lft(t,i,r),g=v?ip:ad,vd(g(d,l),t,i)}function lp(t,i,r,u){return t===n||nh(t,al[r])&&!pr.call(u,r)?i:t}function id(t,i,r,u,f,e){return br(t)&&br(i)&&(e.set(i,t),ev(t,i,n,id,e),e["delete"](i)),t}function yft(t){return oa(t)?n:t}function rd(t,i,r,u,f,e){var p=r&ot,l=t.length,w=i.length,a,o,h,y;if(l!=w&&!(p&&w>l))return!1;if(a=e.get(t),a&&e.get(i))return a==i;var s=-1,c=!0,v=r&si?new gc:n;for(e.set(t,i),e.set(i,t);++s<l;){if(o=t[s],h=i[s],u&&(y=p?u(h,o,s,i,t,e):u(o,h,s,t,i,e)),y!==n){if(y)continue;c=!1;break}if(v){if(!gr(i,function(n,t){if(!fi(v,t)&&(o===n||f(o,n,r,u,e)))return v.push(t)})){c=!1;break}}else if(!(o===h||f(o,h,r,u,e))){c=!1;break}}return e["delete"](t),e["delete"](i),c}function pft(n,t,i,r,u,f,e){var o,h,s,c;switch(i){case lt:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer;t=t.buffer;case ri:return n.byteLength!=t.byteLength||!f(new ya(n),new ya(t))?!1:!0;case kt:case dt:case gt:return nh(+n,+t);case li:return n.name==t.name&&n.message==t.message;case ni:case ti:return n==t+"";case l:o=ei;case a:return(h=r&ot,o||(o=pt),n.size!=t.size&&!h)?!1:(s=e.get(n),s)?s==t:(r|=si,e.set(n,t),c=rd(o(n),o(t),r,u,f,e),e["delete"](n),c);case vi:if(kl)return kl.call(n)==kl.call(t)}return!1}function wft(t,i,r,u,f,e){var y=r&ot,w=ap(t),b=w.length,g=ap(i),nt=g.length,s,o,k,h,p,c,l,d,a,v;if(b!=nt&&!y)return!1;for(s=b;s--;)if(o=w[s],!(y?o in i:pr.call(i,o)))return!1;if(k=e.get(t),k&&e.get(i))return k==i;for(h=!0,e.set(t,i),e.set(i,t),p=y;++s<b;){if(o=w[s],c=t[o],l=i[o],u&&(d=y?u(l,c,o,i,t,e):u(c,l,o,t,i,e)),!(d===n?c===l||f(c,l,r,u,e):d)){h=!1;break}p||(p=o=="constructor")}return h&&!p&&(a=t.constructor,v=i.constructor,a!=v&&"constructor"in t&&"constructor"in i&&!(typeof a=="function"&&a instanceof a&&typeof v=="function"&&v instanceof v)&&(h=!1)),e["delete"](t),e["delete"](i),h}function sh(t){return kp(cd(t,n,kd),t+"")}function ap(n){return cb(n,du,pp)}function vp(n){return cb(n,cf,ud)}function pv(n){for(var t=n.name+"",u=bl[t],f=pr.call(bl,t)?u.length:0,i,r;f--;)if(i=u[f],r=i.func,r==null||r==n)return i.name;return t}function cl(n){var t=pr.call(at,"placeholder")?at:n;return t.placeholder}function pi(){var n=at.iteratee||cw;return n=n===cw?vb:n,arguments.length?n(arguments[0],arguments[1]):n}function wv(n,t){var i=n.__data__;return ret(t)?i[typeof t=="string"?"string":"hash"]:i.map}function yp(n){for(var t=du(n),i=t.length,r,u;i--;)r=t[i],u=n[r],t[i]=[r,u,sd(u)];return t}function tl(t,i){var r=ec(t,i);return ab(r)?r:n}function bft(t){var u=pr.call(t,bc),f=t[bc],i,r;try{t[bc]=n;i=!0}catch(e){}return r=kw.call(t),i&&(u?t[bc]=f:delete t[bc]),r}function kft(n,t,i){for(var f=-1,e=i.length,u,r;++f<e;){u=i[f];r=u.size;switch(u.type){case"drop":n+=r;break;case"dropRight":t-=r;break;case"take":t=nf(t,n+r);break;case"takeRight":n=ku(n,t-r)}}return{start:n,end:t}}function dft(n){var t=n.match(es);return t?t[1].split(os):[]}function fd(n,t,i){var u;t=pc(t,n);for(var f=-1,r=t.length,e=!1;++f<r;){if(u=gs(t[f]),!(e=n!=null&&i(n,u)))break;n=n[u]}return e||++f!=r?e:(r=n==null?0:n.length,!!r&&iy(r)&&lh(u,r)&&(wi(n)||rl(n)))}function gft(n){var i=n.length,t=n.constructor(i);return i&&typeof n[0]=="string"&&pr.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function ed(n){return typeof n.constructor=="function"&&!ua(n)?kc(pa(n)):{}}function net(n,t,i,r){var u=n.constructor;switch(t){case ri:return sp(n);case kt:case dt:return new u(+n);case lt:return rft(n,r);case ir:case rr:case ur:case fr:case er:case or:case sr:case hr:case cr:return hk(n,r);case l:return uft(n,r,i);case gt:case ti:return new u(n);case ni:return fft(n);case a:return eft(n,r,i);case vi:return oft(n)}}function tet(n,t){var i=t.length,r;return i?(r=i-1,t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),n.replace(fs,"{\n/* [wrapped with "+t+"] */\n")):n}function iet(n){return wi(n)||rl(n)||!!(tb&&n&&n[tb])}function lh(n,t){return t=t==null?nt:t,!!t&&(typeof n=="number"||ps.test(n))&&n>-1&&n%1==0&&n<t}function ff(n,t,i){if(!br(i))return!1;var r=typeof t;return(r=="number"?ef(i)&&lh(t,i.length):r=="string"&&t in i)?nh(i[t],n):!1}function wp(n,t){if(wi(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||hf(n)?!0:ns.test(n)||!go.test(n)||t!=null&&n in wr(t)}function ret(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function bp(n){var r=pv(n),t=at[r],i;return typeof t!="function"||!(r in vr.prototype)?!1:n===t?!0:(i=yv(t),!!i&&n===i[0])}function uet(n){return!!bw&&bw in n}
1782function ua(n){var t=n&&n.constructor,i=typeof t=="function"&&t.prototype||al;return n===i}function sd(n){return n===n&&!br(n)}function hd(t,i){return function(r){return r==null?!1:r[t]===i&&(i!==n||t in wr(r))}}function fet(n){var t=ny(n,function(n){return i.size===we&&i.clear(),n}),i=t.cache;return t}function eet(n,t){var f=n[1],u=t[1],e=f|u,o=e<(s|ut|k),h=u==k&&f==p||u==k&&f==bt&&n[7].length<=t[8]||u==(k|bt)&&t[7].length<=t[8]&&f==p,i,r;return(o||h)?(u&s&&(n[2]=t[2],e|=f&s?0:ou),i=t[3],i&&(r=n[3],n[3]=r?lk(r,i,t[4]):i,n[4]=r?rt(n[3],oi):t[4]),i=t[5],i&&(r=n[5],n[5]=r?ak(r,i,t[6]):i,n[6]=r?rt(n[5],oi):t[6]),i=t[7],i&&(n[7]=i),u&k&&(n[8]=n[8]==null?t[8]:nf(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=e,n):n}function oet(n){var t=[],i;if(n!=null)for(i in wr(n))t.push(i);return t}function set(n){return kw.call(n)}function cd(t,i,r){return i=ku(i===n?t.length-1:i,0),function(){for(var e=arguments,n=-1,o=ku(e.length-i,0),s=bu(o),u;++n<o;)s[n]=e[i+n];for(n=-1,u=bu(i+1);++n<i;)u[n]=e[n];return u[i]=r(s),f(t,this,u)}}function ld(n,t){return t.length<2?n:ol(n,vf(t,0,-1))}function het(t,i){for(var f=t.length,r=nf(i.length,f),e=uf(t),u;r--;)u=i[r],t[r]=lh(u,f)?e[u]:n;return t}function vd(n,t,i){var r=t+"";return kp(n,tet(r,cet(dft(r),i)))}function yd(t){var i=0,r=0;return function(){var u=eit(),f=ge-(u-r);if(r=u,f>0){if(++i>=de)return arguments[0]}else i=0;return t.apply(n,arguments)}}function bv(t,i){var r=-1,f=t.length,o=f-1,u,e;for(i=i===n?f:i;++r<i;)u=np(r,o),e=t[u],t[u]=t[r],t[r]=e;return t.length=i,t}function gs(n){if(typeof n=="string"||hf(n))return n;var t=n+"";return t=="0"&&1/n==-ft?"-0":t}function il(n){if(n!=null){try{return aa.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function cet(n,t){return c(fo,function(i){var r="_."+i[0];t&i[1]&&!ki(n,r)&&n.push(r)}),n.sort()}function pd(n){if(n instanceof vr)return n.clone();var t=new af(n.__wrapped__,n.__chain__);return t.__actions__=uf(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function aet(t,i,r){var u;if(i=(r?ff(t,i,r):i===n)?1:ku(bi(i),0),u=t==null?0:t.length,!u||i<1)return[];for(var f=0,o=0,e=bu(ka(u/i));f<u;)e[o++]=vf(t,f,f+=i);return e}function vet(n){for(var i=-1,u=n==null?0:n.length,f=0,r=[],t;++i<u;)t=n[i],t&&(r[f++]=t);return r}function yet(){var n=arguments.length;if(!n)return[];for(var r=bu(n-1),t=arguments[0],i=n;i--;)r[i-1]=arguments[i];return it(wi(t)?uf(t):[t],gu(r,1))}function ket(t,i,r){var u=t==null?0:t.length;return u?(i=r||i===n?1:bi(i),vf(t,i<0?0:i,u)):[]}function det(t,i,r){var u=t==null?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,vf(t,0,i<0?0:i)):[]}function get(n,t){return n&&n.length?sv(n,pi(t,3),!0,!0):[]}function not(n,t){return n&&n.length?sv(n,pi(t,3),!0):[]}function tot(n,t,i,r){var u=n==null?0:n.length;return u?(i&&typeof i!="number"&&ff(n,t,i)&&(i=0,r=u),rut(n,t,i,r)):[]}function wd(n,t,i){var u=n==null?0:n.length,r;return u?(r=i==null?0:bi(i),r<0&&(r=ku(u+r,0)),di(n,pi(t,3),r)):-1}function bd(t,i,r){var f=t==null?0:t.length,u;return f?(u=f-1,r!==n&&(u=bi(r),u=r<0?ku(f+u,0):nf(u,f-1)),di(t,pi(i,3),u,!0)):-1}function kd(n){var t=n==null?0:n.length;return t?gu(n,1):[]}function iot(n){var t=n==null?0:n.length;return t?gu(n,ft):[]}function rot(t,i){var r=t==null?0:t.length;return r?(i=i===n?1:bi(i),gu(t,i)):[]}function uot(n){for(var i=-1,u=n==null?0:n.length,r={},t;++i<u;)t=n[i],r[t[0]]=t[1];return r}function dd(t){return t&&t.length?t[0]:n}function fot(n,t,i){var u=n==null?0:n.length,r;return u?(r=i==null?0:bi(i),r<0&&(r=ku(u+r,0)),vt(n,t,r)):-1}function eot(n){var t=n==null?0:n.length;return t?vf(n,0,-1):[]}function cot(n,t){return n==null?"":uit.call(n,t)}function yf(t){var i=t==null?0:t.length;return i?t[i-1]:n}function lot(t,i,r){var f=t==null?0:t.length,u;return f?(u=f,r!==n&&(u=bi(r),u=u<0?ku(f+u,0):nf(u,f-1)),i===i?lc(t,i,u):di(t,fe,u,!0)):-1}function aot(t,i){return t&&t.length?bb(t,bi(i)):n}function ng(n,t){return n&&n.length&&t&&t.length?gy(n,t):n}function vot(n,t,i){return n&&n.length&&t&&t.length?gy(n,t,pi(i,2)):n}function yot(t,i,r){return t&&t.length&&i&&i.length?gy(t,i,n,r):t}function pot(n,t){var r=[],u;if(!(n&&n.length))return r;var i=-1,f=[],e=n.length;for(t=pi(t,3);++i<e;)u=n[i],t(u,i,n)&&(r.push(u),f.push(i));return gb(n,f),r}function gp(n){return n==null?n:sit.call(n)}function wot(t,i,r){var u=t==null?0:t.length;return u?(r&&typeof r!="number"&&ff(t,i,r)?(i=0,r=u):(i=i==null?0:bi(i),r=r===n?u:bi(r)),vf(t,i,r)):[]}function bot(n,t){return ov(n,t)}function kot(n,t,i){return rp(n,t,pi(i,2))}function dot(n,t){var r=n==null?0:n.length,i;return r&&(i=ov(n,t),i<r&&nh(n[i],t))?i:-1}function got(n,t){return ov(n,t,!0)}function nst(n,t,i){return rp(n,t,pi(i,2),!0)}function tst(n,t){var r=n==null?0:n.length,i;return r&&(i=ov(n,t,!0)-1,nh(n[i],t))?i:-1}function ist(n){return n&&n.length?tk(n):[]}function rst(n,t){return n&&n.length?tk(n,pi(t,2)):[]}function ust(n){var t=n==null?0:n.length;return t?vf(n,1,t):[]}function fst(t,i,r){return(t&&t.length)?(i=r||i===n?1:bi(i),vf(t,0,i<0?0:i)):[]}function est(t,i,r){var u=t==null?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,vf(t,i<0?0:i,u)):[]}function ost(n,t){return n&&n.length?sv(n,pi(t,3),!1,!0):[]}function sst(n,t){return n&&n.length?sv(n,pi(t,3)):[]}function ast(n){return n&&n.length?vc(n):[]}function vst(n,t){return n&&n.length?vc(n,pi(t,2)):[]}function yst(t,i){return i=typeof i=="function"?i:n,t&&t.length?vc(t,n,i):[]}function nw(n){if(!(n&&n.length))return[];var t=0;return n=tt(n,function(n){if(tu(n))return t=ku(n.length,t),!0}),ru(t,function(t){return r(n,nu(t))})}function ig(t,i){if(!(t&&t.length))return[];var u=nw(t);return i==null?u:r(u,function(t){return f(i,n,t)})}function gst(n,t){return fk(n||[],t||[],dl)}function nht(n,t){return fk(n||[],t||[],ia)}function ug(n){var t=at(n);return t.__chain__=!0,t}function tht(n,t){return t(n),n}function kv(n,t){return t(n)}function iht(){return ug(this)}function rht(){return new af(this.value(),this.__chain__)}function uht(){this.__values__===n&&(this.__values__=ln(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function fht(){return this}function eht(t){for(var u,r=this,i,f;r instanceof tv;)i=pd(r),i.__index__=0,i.__values__=n,u?f.__wrapped__=i:u=i,f=i,r=r.__wrapped__;return f.__wrapped__=t,u}function oht(){var i=this.__wrapped__,t;return i instanceof vr?(t=i,this.__actions__.length&&(t=new vr(this)),t=t.reverse(),t.__actions__.push({func:kv,args:[gp],thisArg:n}),new af(t,this.__chain__)):this.thru(gp)}function sht(){return uk(this.__wrapped__,this.__actions__)}function hht(t,i,r){var u=wi(t)?ie:iut;return r&&ff(t,i,r)&&(i=n),u(t,pi(i,3))}function cht(n,t){var i=wi(n)?tt:hb;return i(n,pi(t,3))}function lht(n,t){return gu(dv(n,t),1)}function aht(n,t){return gu(dv(n,t),ft)}function vht(t,i,r){return r=r===n?1:bi(r),gu(dv(t,i),r)}function hg(n,t){var i=wi(n)?c:eh;return i(n,pi(t,3))}function cg(n,t){var i=wi(n)?kh:ay;return i(n,pi(t,3))}function yht(n,t,i,r){n=ef(n)?n:ll(n);i=i&&!r?bi(i):0;var u=n.length;return i<0&&(i=ku(u+i,0)),uy(n)?i<=u&&n.indexOf(t,i)>
vendor: 5,681 bytes, line 1782
1782-1:!!u&&vt(n,t,i)>-1}function dv(n,t){var i=wi(n)?r:yb;return i(n,pi(t,3))}function pht(t,i,r,u){return t==null?[]:(wi(i)||(i=i==null?[]:[i]),r=u?n:r,wi(r)||(r=r==null?[]:[r]),kb(t,i,r))}function wht(n,t,i){var r=wi(n)?ui:oe,u=arguments.length<3;return r(n,pi(t,4),i,u,eh)}function bht(n,t,i){var r=wi(n)?dh:oe,u=arguments.length<3;return r(n,pi(t,4),i,u,ay)}function kht(n,t){var i=wi(n)?tt:hb;return i(n,ty(pi(t,3)))}function dht(n){var t=wi(n)?fb:gut;return t(n)}function ght(t,i,r){i=(r?ff(t,i,r):i===n)?1:bi(i);var u=wi(t)?krt:nft;return u(t,i)}function nct(n){var t=wi(n)?drt:tft;return t(n)}function tct(n){if(n==null)return 0;if(ef(n))return uy(n)?wt(n):n.length;var t=tf(n);return t==l||t==a?n.size:ky(n).length}function ict(t,i,r){var u=wi(t)?gr:ift;return r&&ff(t,i,r)&&(i=n),u(t,pi(i,3))}function rct(n,t){if(typeof t!="function")throw new lf(o);return n=bi(n),function(){if(--n<1)return t.apply(this,arguments)}}function wg(t,i,r){return i=r?n:i,i=t&&i==null?t.length:i,oh(t,k,n,n,n,n,i)}function bg(t,i){var r;if(typeof i!="function")throw new lf(o);return t=bi(t),function(){return--t>0&&(r=i.apply(this,arguments)),t<=1&&(i=n),r}}function kg(t,i,r){i=r?n:i;var u=oh(t,p,n,n,n,n,n,i);return u.placeholder=kg.placeholder,u}function dg(t,i,r){i=r?n:i;var u=oh(t,st,n,n,n,n,n,i);return u.placeholder=dg.placeholder,u}function gg(t,i,r){function p(i){var r=e,u=h;return e=h=n,c=i,s=t.apply(u,r)}function g(n){return c=n,u=fa(v,i),b?p(n):s}function nt(n){var r=n-f,u=n-c,t=i-r;return l?nf(t,a-u):t}function k(t){var r=t-f,u=t-c;return f===n||r>=i||r<0||l&&u>=a}function v(){var n=ea();if(k(n))return d(n);u=fa(v,nt(n))}function d(t){return(u=n,y&&e)?p(t):(e=h=n,s)}function tt(){u!==n&&ok(u);c=0;e=f=h=u=n}function it(){return u===n?s:d(ea())}function w(){var t=ea(),r=k(t);if(e=arguments,h=this,f=t,r){if(u===n)return g(f);if(l)return u=fa(v,i),p(f)}return u===n&&(u=fa(v,i)),s}var e,h,a,s,u,f,c=0,b=!1,l=!1,y=!0;if(typeof t!="function")throw new lf(o);return i=pf(i)||0,br(r)&&(b=!!r.leading,l="maxWait"in r,a=l?ku(pf(r.maxWait)||0,i):a,y="trailing"in r?!!r.trailing:y),w.cancel=tt,w.flush=it,w}function uct(n){return oh(n,tr)}function ny(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new lf(o);var i=function(){var u=arguments,f=t?t.apply(this,u):u[0],r=i.cache,e;return r.has(f)?r.get(f):(e=n.apply(this,u),i.cache=r.set(f,e)||r,e)};return i.cache=new(ny.Cache||ih),i}function ty(n){if(typeof n!="function")throw new lf(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function fct(n){return bg(2,n)}function sct(t,i){if(typeof t!="function")throw new lf(o);return i=i===n?i:bi(i),ar(t,i)}function hct(n,t){if(typeof n!="function")throw new lf(o);return t=t==null?0:ku(bi(t),0),ar(function(i){var r=i[t],u=wc(i,0,t);return r&&it(u,r),f(n,this,u)})}function cct(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new lf(o);return br(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),gg(n,t,{leading:r,maxWait:t,trailing:u})}function lct(n){return wg(n,1)}function act(n,t){return iw(op(t),n)}function vct(){if(!arguments.length)return[];var n=arguments[0];return wi(n)?n:[n]}function yct(n){return ss(n,et)}function pct(t,i){return i=typeof i=="function"?i:n,ss(t,et,i)}function wct(n){return ss(n,y|et)}function bct(t,i){return i=typeof i=="function"?i:n,ss(t,y|et,i)}function kct(n,t){return t==null||ob(n,t,du(t))}function nh(n,t){return n===t||n!==n&&t!==t}function ef(n){return n!=null&&iy(n.length)&&!gh(n)}function tu(n){return kr(n)&&ef(n)}function tlt(n){return n===!0||n===!1||kr(n)&&rf(n)==kt}function ilt(n){return kr(n)&&n.nodeType===1&&!oa(n)}function rlt(n){var t,i;if(n==null)return!0;if(ef(n)&&(wi(n)||typeof n=="string"||typeof n.splice=="function"||yh(n)||ul(n)||rl(n)))return!n.length;if(t=tf(n),t==l||t==a)return!n.size;if(ua(n))return!ky(n).length;for(i in n)if(pr.call(n,i))return!1;return!0}function ult(n,t){return ta(n,t)}function flt(t,i,r){r=typeof r=="function"?r:n;var u=r?r(t,i):n;return u===n?ta(t,i,n,r):!!u}function rw(n){if(!kr(n))return!1;var t=rf(n);return t==li||t==oo||typeof n.message=="string"&&typeof n.name=="string"&&!oa(n)}function elt(n){return typeof n=="number"&&rit(n)}function gh(n){if(!br(n))return!1;var t=rf(n);return t==ai||t==hu||t==eo||t==ho}function fn(n){return typeof n=="number"&&n==bi(n)}function iy(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function br(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function kr(n){return n!=null&&typeof n=="object"}function olt(n,t){return n===t||by(n,t,yp(t))}function slt(t,i,r){return r=typeof r=="function"?r:n,by(t,i,yp(i),r)}function hlt(n){return on(n)&&n!=+n}function clt(n){if(od(n))throw new pw(pe);return ab(n)}function llt(n){return n===null}function alt(n){return n==null}function on(n){return typeof n=="number"||kr(n)&&rf(n)==gt}function oa(n){var i,t;return!kr(n)||rf(n)!=d?!1:(i=pa(n),i===null)?!0:(t=pr.call(i,"constructor")&&i.constructor,typeof t=="function"&&t instanceof t&&aa.call(t)==btt)}function vlt(n){return fn(n)&&n>=-nt&&n<=nt}function uy(n){return typeof n=="string"||!wi(n)&&kr(n)&&rf(n)==ti}function hf(n){return typeof n=="symbol"||kr(n)&&rf(n)==vi}function ylt(t){return t===n}function plt(n){return kr(n)&&tf(n)==ii}function wlt(n){return kr(n)&&rf(n)==lo}function ln(n){if(!n)return[];if(ef(n))return uy(n)?v(n):uf(n);if(vl&&n[vl])return sc(n[vl]());var t=tf(n),i=t==l?ei:t==a?pt:ll;return i(n)}function cc(n){if(!n)return n===0?n:0;if(n=pf(n),n===ft||n===-ft){var t=n<0?-1:1;return t*io}return n===n?n:0}
1782function bi(n){var t=cc(n),i=t%1;return t===t?i?t-i:t:0}function an(n){return n?nl(bi(n),0,b):0}function pf(n){var t,i;return typeof n=="number"?n:hf(n)?hi:(br(n)&&(t=typeof n.valueOf=="function"?n.valueOf():n,n=br(t)?t+"":t),typeof n!="string")?n===0?n:+n:(n=n.replace(yu,""),i=as.test(n),i||ys.test(n)?vh(n.slice(2),i?2:8):ls.test(n)?hi:+n)}function vn(n){return ds(n,cf(n))}function blt(n){return n?nl(bi(n),-nt,nt):n===0?n:0}function yr(n){return n==null?"":sf(n)}function nat(n,t){var i=kc(n);return t==null?i:eb(i,t)}function tat(n,t){return ue(n,pi(t,3),ks)}function iat(n,t){return ue(n,pi(t,3),yy)}function rat(n,t){return n==null?n:uv(n,pi(t,3),cf)}function uat(n,t){return n==null?n:vy(n,pi(t,3),cf)}function fat(n,t){return n&&ks(n,pi(t,3))}function eat(n,t){return n&&yy(n,pi(t,3))}function oat(n){return n==null?[]:fv(n,du(n))}function sat(n){return n==null?[]:fv(n,cf(n))}function uw(t,i,r){var u=t==null?n:ol(t,i);return u===n?r:u}function hat(n,t){return n!=null&&fd(n,t,uut)}function fw(n,t){return n!=null&&fd(n,t,fut)}function du(n){return ef(n)?ub(n):ky(n)}function cf(n){return ef(n)?ub(n,!0):put(n)}function vat(n,t){var i={};return t=pi(t,3),ks(n,function(n,r,u){rh(i,t(n,r,u),n)}),i}function yat(n,t){var i={};return t=pi(t,3),ks(n,function(n,r,u){rh(i,r,t(n,r,u))}),i}function bat(n,t){return dn(n,ty(pi(t)))}function dn(n,t){if(n==null)return{};var i=r(vp(n),function(n){return[n]});return t=pi(t),db(n,i,function(n,i){return t(n,i[0])})}function kat(t,i,r){var e,f,u;for(i=pc(i,t),e=-1,f=i.length,f||(f=1,t=n);++e<f;)u=t==null?n:t[gs(i[e])],u===n&&(e=f,u=r),t=gh(u)?u.call(t):u;return t}function dat(n,t,i){return n==null?n:ia(n,t,i)}function gat(t,i,r,u){return u=typeof u=="function"?u:n,t==null?t:ia(t,i,r,u)}function nvt(n,t,i){var u=wi(n),f=u||yh(n)||ul(n),r;return t=pi(t,4),i==null&&(r=n&&n.constructor,i=f?u?new r:[]:br(n)?gh(r)?kc(pa(n)):{}:{}),(f?c:ks)(n,function(n,r,u){return t(i,n,r,u)}),i}function tvt(n,t){return n==null?!0:up(n,t)}function ivt(n,t,i){return n==null?n:rk(n,t,op(i))}function rvt(t,i,r,u){return u=typeof u=="function"?u:n,t==null?t:rk(t,i,op(r),u)}function ll(n){return n==null?[]:uu(n,du(n))}function uvt(n){return n==null?[]:uu(n,cf(n))}function fvt(t,i,r){return r===n&&(r=i,i=n),r!==n&&(r=pf(r),r=r===r?r:0),i!==n&&(i=pf(i),i=i===i?i:0),nl(pf(t),i,r)}function evt(t,i,r){return i=cc(i),r===n?(r=i,i=0):r=cc(r),t=pf(t),eut(t,i,r)}function ovt(t,i,r){var f,u;return(r&&typeof r!="boolean"&&ff(t,i,r)&&(i=r=n),r===n&&(typeof i=="boolean"?(r=i,i=n):typeof t=="boolean"&&(r=t,t=n)),t===n&&i===n?(t=0,i=1):(t=cc(t),i===n?(i=t,t=0):i=cc(i)),t>i&&(f=t,t=i,i=f),r||t%1||i%1)?(u=ib(),nf(t+u*(i-t+ah("1e-"+((u+"").length-1))),i)):np(t,i)}function ntt(n){return fy(yr(n).toLowerCase())}function ttt(n){return n=yr(n),n&&n.replace(ws,ce).replace(fh,"")}function svt(t,i,r){var u,f;return t=yr(t),i=sf(i),u=t.length,r=r===n?u:nl(bi(r),0,u),f=r,r-=i.length,r>=0&&t.slice(r,f)==i}function hvt(n){return n=yr(n),n&&wo.test(n)?n.replace(au,le):n}function cvt(n){return n=yr(n),n&&rs.test(n)?n.replace(lr,"\\$&"):n}function yvt(n,t,i){var r,u;return(n=yr(n),t=bi(t),r=t?wt(n):0,!t||r>=t)?n:(u=(t-r)/2,av(da(u),i)+n+av(ka(u),i))}function pvt(n,t,i){n=yr(n);t=bi(t);var r=t?wt(n):0;return t&&r<t?n+av(t-r,i):n}function wvt(n,t,i){n=yr(n);t=bi(t);var r=t?wt(n):0;return t&&r<t?av(t-r,i)+n:n}function bvt(n,t,i){return i||t==null?t=0:t&&(t=+t),oit(yr(n).replace(pu,""),t||0)}function kvt(t,i,r){return i=(r?ff(t,i,r):i===n)?1:bi(i),tp(yr(t),i)}function dvt(){var n=arguments,t=yr(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function gvt(t,i,r){return(r&&typeof r!="number"&&ff(t,i,r)&&(i=r=n),r=r===n?b:r>>>0,!r)?[]:(t=yr(t),t&&(typeof i=="string"||i!=null&&!ry(i))&&(i=sf(i),!i&&yt(t)))?wc(v(t),0,r):t.split(i,r)}function nyt(n,t,i){return n=yr(n),i=i==null?0:nl(bi(i),0,n.length),t=sf(t),n.slice(i,i+t.length)==t}function tyt(t,i,r){var s=at.templateSettings,e,f;r&&ff(t,i,r)&&(i=n);t=yr(t);i=sa({},i,s,lp);var h=sa({},i.imports,s.imports,lp),c=du(h),y=uu(h,c),l,o,a=0,v=i.interpolate||yi,u="__p += '",p=ey((i.escape||yi).source+"|"+v.source+"|"+(v===vu?cs:yi).source+"|"+(i.evaluate||yi).source+"|$","g"),w="//# sourceURL="+("sourceURL"in i?i.sourceURL:"lodash.templateSources["+ ++ch+"]")+"\n";if(t.replace(p,function(n,i,r,f,e,s){return r||(r=f),u+=t.slice(a,s).replace(bs,fc),i&&(l=!0,u+="' +\n__e("+i+") +\n'"),e&&(o=!0,u+="';\n"+e+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),a=s+n.length,n}),u+="';\n",e=i.variable,e||(u="with (obj) {\n"+u+"\n}\n"),u=(o?u.replace(ao,""):u).replace(vo,"$1").replace(yo,"$1;"),u="function("+(e||"obj")+") {\n"+(e?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1782\n")+u+"return __p\n}",f=sw(function(){return ww(c,w+"return "+u).apply(n,y)}),f.source=u,rw(f))throw f;return f}function iyt(n){return yr(n).toLowerCase()}function ryt(n){return yr(n).toUpperCase()}function uyt(t,i,r){if(t=yr(t),t&&(r||i===n))return t.replace(yu,"");if(!t||!(i=sf(i)))return t;var u=v(t),f=v(i),e=se(u,f),o=he(u,f)+1;return wc(u,e,o).join("")}function fyt(t,i,r){if(t=yr(t),t&&(r||i===n))return t.replace(us,"");if(!t||!(i=sf(i)))return t;var u=v(t),f=he(u,v(i))+1;return wc(u,0,f).join("")}function eyt(t,i,r){if(t=yr(t),t&&(r||i===n))return t.replace(pu,"");if(!t||!(i=sf(i)))return t;var u=v(t),f=se(u,v(i));return wc(u,f).join("")}function oyt(t,i){var s=be,e=ke,r,h,o,u,f,a,y,c,l;if(br(i)&&(r="separator"in i?i.separator:r,s="length"in i?bi(i.length):s,e="omission"in i?sf(i.omission):e),t=yr(t),h=t.length,yt(t)&&(o=v(t),h=o.length),s>=h)return t;if(u=s-wt(e),u<1)return e;if(f=o?wc(o,0,u).join(""):t.slice(0,u),r===n)return f+e;if(o&&(u+=f.length-u),ry(r)){if(t.slice(u).search(r)){for(y=f,r.global||(r=ey(r.source,yr(wu.exec(r))+"g")),r.lastIndex=0;a=r.exec(y);)c=a.index;f=f.slice(0,c===n?u:c)}}else t.indexOf(sf(r),u)!=u&&(l=f.lastIndexOf(r),l>-1&&(f=f.slice(0,l)));return f+e}function syt(n){return n=yr(n),n&&po.test(n)?n.replace(lu,ve):n}function ftt(t,i,r){return(t=yr(t),i=r?n:i,i===n)?oc(t)?yc(t):nc(t):t.match(i)||[]}function hyt(n){var t=n==null?0:n.length,i=pi();return n=t?r(n,function(n){if(typeof n[1]!="function")throw new lf(o);return[i(n[0]),n[1]]}):[],ar(function(i){for(var u=-1,r;++u<t;)if(r=n[u],f(r[0],this,i))return f(r[1],this,i)})}function cyt(n){return tut(ss(n,y))}function hw(n){return function(){return n}}function lyt(n,t){return n==null||n!==n?t:n}function of(n){return n}function cw(n){return vb(typeof n=="function"?n:ss(n,y))}function ayt(n){return pb(ss(n,y))}function vyt(n,t){return wb(n,ss(t,y))}function lw(n,t,i){var u=du(t),r=fv(t,u),f,e;return i!=null||br(t)&&(r.length||!u.length)||(i=t,t=n,n=this,r=fv(t,du(t))),f=!(br(i)&&"chain"in i)||!!i.chain,e=gh(n),c(r,function(i){var r=t[i];n[i]=r;e&&(n.prototype[i]=function(){var i=this.__chain__,t,u;return f||i?(t=n(this.__wrapped__),u=t.__actions__=uf(this.__actions__),u.push({func:r,args:arguments,thisArg:n}),t.__chain__=i,t):r.apply(n,it([this.value()],arguments))})}),n}function yyt(){return u._===this&&(u._=ktt),this}function aw(){}function pyt(n){return n=bi(n),ar(function(t){return bb(t,n)})}function ltt(n){return wp(n)?nu(gs(n)):kut(n)}function dyt(t){return function(i){return t==null?n:ol(t,i)}}function vw(){return[]}function yw(){return!1}function gyt(){return{}}function npt(){return""}function tpt(){return!0}function ipt(n,t){var i,r,u;if(n=bi(n),n<1||n>nt)return[];for(i=b,r=nf(n,b),t=pi(t),n-=b,u=ru(r,t);++i<n;)t(i);return u}function rpt(n){return wi(n)?r(n,gs):hf(n)?[n]:uf(dp(yr(n)))}function upt(n){var t=++wtt;return yr(n)+t}function hpt(t){return t&&t.length?rv(t,of,py):n}function cpt(t,i){return t&&t.length?rv(t,pi(i,2),py):n}function lpt(n){return ee(n,of)}function apt(n,t){return ee(n,pi(t,2))}function vpt(t){return t&&t.length?rv(t,of,dy):n}function ypt(t,i){return t&&t.length?rv(t,pi(i,2),dy):n}function kpt(n){return n&&n.length?iu(n,of):0}function dpt(n,t){return n&&n.length?iu(n,pi(t,2)):0}var kc,eh,ay,uv,vy,ip,nk,ek,ok,nd,yv,od,dp,gd,tg,rg,fg,eg,og,sg,lg,ag,vg,yg,pg,ea,gv,tw,nn,tn,yh,un,en,ry,sn,ul,hn,cn,pn,wn,kn,ew,ow,gn,itt,rtt,utt,fy,sw,ett,ott,stt,htt,ctt,att,vtt;h=h==null?u:g.defaults(u.Object(),h,g.pick(u,hh));var bu=h.Array,ha=h.Date,pw=h.Error,ww=h.Function,fl=h.Math,wr=h.Object,ey=h.RegExp,ytt=h.String,lf=h.TypeError,ca=bu.prototype,ptt=ww.prototype,al=wr.prototype,la=h["__core-js_shared__"],aa=ptt.toString,pr=al.hasOwnProperty,wtt=0,bw=function(){var n=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),kw=al.toString,btt=aa.call(wr),ktt=u._,dtt=ey("^"+aa.call(pr).replace(lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=wf?h.Buffer:n,ac=h.Symbol,ya=h.Uint8Array,dw=va?va.allocUnsafe:n,pa=ae(wr.getPrototypeOf,wr),gw=wr.create,nb=al.propertyIsEnumerable,wa=ca.splice,tb=ac?ac.isConcatSpreadable:n,vl=ac?ac.iterator:n,bc=ac?ac.toStringTag:n,ba=function(){try{var n=tl(wr,"defineProperty");return n({},"",{}),n}catch(t){}}(),gtt=h.clearTimeout!==u.clearTimeout&&h.clearTimeout,nit=ha&&ha.now!==u.Date.now&&ha.now,tit=h.setTimeout!==u.setTimeout&&h.setTimeout,ka=fl.ceil,da=fl.floor,oy=wr.getOwnPropertySymbols,iit=va?va.isBuffer:n,rit=h.isFinite,uit=ca.join,fit=ae(wr.keys,wr),ku=fl.max,nf=fl.min,eit=ha.now,oit=h.parseInt,ib=fl.random,sit=ca.reverse,sy=tl(h,"DataView"),yl=tl(h,"Map"),hy=tl(h,"Promise"),el=tl(h,"Set"),pl=tl(h,"WeakMap"),wl=tl(wr,"create"),ga=pl&&new pl,bl={},hit=il(sy),cit=il(yl),lit=il(hy),ait=il(el),vit=il(pl),nv=ac?ac.prototype:n,kl=nv?nv.valueOf:n,rb=nv?nv.toString:n;kc=function(){function t(){}return function(i){if(!br(i))return{};if(gw)return gw(i);t.prototype=i;var r=new t;return t.prototype=n,r}}();at.templateSettings={escape:bo,evaluate:ko,interpolate:vu,variable:"",imports:{_:at}};at.prototype=tv.prototype;at.prototype.constructor=at;af.prototype=kc(tv.prototype);af.prototype.constructor=af;vr.prototype=kc(tv.prototype);vr.prototype.constructor=vr;dc.prototype.clear=bit;dc.prototype["delete"]=kit;dc.prototype.get=dit;dc.prototype.has=git;dc.prototype.set=nrt;th.prototype.clear=trt;th.prototype["delete"]=irt;th.prototype.get=rrt;th.prototype.has=urt;th.prototype.set=frt;ih.prototype.clear=ert;ih.prototype["delete"]=ort;ih.prototype.get=srt;ih.prototype.has=hrt;ih.prototype.set=crt;gc.prototype.add=gc.prototype.push=lrt;gc.prototype.has=art;re.prototype.clear=vrt;re.prototype["delete"]=yrt;re.prototype.get=prt;re.prototype.has=wrt;re.prototype.set=brt;eh=vk(ks);ay=vk(yy,!0);uv=yk();vy=yk(!0);ip=ga?function(n,t){return ga.set(n,t),n}:of;nk=ba?function(n,t){return ba(n,"toString",{configurable:!0,enumerable:!1,value:hw(t),writable:!0})}:of;ek=ar;ok=gtt||function(n){return u.clearTimeout(n)};nd=(el&&1/pt(new el([,-0]))[1]==ft)?function(n){return new el(n)}:aw;yv=ga?function(n){return ga.get(n)}:aw;var pp=oy?function(n){return n==null?[]:(n=wr(n),tt(oy(n),function(t){return nb.call(n,t)}))}
1782:vw,ud=oy?function(n){for(var t=[];n;)it(t,pp(n)),n=pa(n);return t}:vw,tf=rf;(sy&&tf(new sy(new ArrayBuffer(1)))!=lt||yl&&tf(new yl)!=l||hy&&tf(hy.resolve())!=cu||el&&tf(new el)!=a||pl&&tf(new pl)!=ii)&&(tf=function(t){var i=rf(t),r=i==d?t.constructor:n,u=r?il(r):"";if(u)switch(u){case hit:return lt;case cit:return l;case lit:return cu;case ait:return a;case vit:return ii}return i});od=la?gh:yw;var ad=yd(ip),fa=tit||function(n,t){return u.setTimeout(n,t)},kp=yd(nk);dp=fet(function(n){var t=[];return ts.test(n)&&t.push(""),n.replace(is,function(n,i,r,u){t.push(r?u.replace(hs,"$1"):i||n)}),t});var pet=ar(function(n,t){return tu(n)?gl(n,gu(t,1,tu,!0)):[]}),wet=ar(function(t,i){var r=yf(i);return tu(r)&&(r=n),tu(t)?gl(t,gu(i,1,tu,!0),pi(r,2)):[]}),bet=ar(function(t,i){var r=yf(i);return tu(r)&&(r=n),tu(t)?gl(t,gu(i,1,tu,!0),n,r):[]});var oot=ar(function(n){var t=r(n,ep);return t.length&&t[0]===n[0]?wy(t):[]}),sot=ar(function(t){var u=yf(t),i=r(t,ep);return u===yf(i)?u=n:i.pop(),i.length&&i[0]===t[0]?wy(i,pi(u,2)):[]}),hot=ar(function(t){var i=yf(t),u=r(t,ep);return i=typeof i=="function"?i:n,i&&u.pop(),u.length&&u[0]===t[0]?wy(u,n,i):[]});gd=ar(ng);tg=sh(function(n,t){var i=n==null?0:n.length,u=ly(n,t);return gb(n,r(t,function(n){return lh(n,i)?+n:n}).sort(ck)),u});var hst=ar(function(n){return vc(gu(n,1,tu,!0))}),cst=ar(function(t){var i=yf(t);return tu(i)&&(i=n),vc(gu(t,1,tu,!0),pi(i,2))}),lst=ar(function(t){var i=yf(t);return i=typeof i=="function"?i:n,vc(gu(t,1,tu,!0),n,i)});var pst=ar(function(n,t){return tu(n)?gl(n,t):[]}),wst=ar(function(n){return fp(tt(n,tu))}),bst=ar(function(t){var i=yf(t);return tu(i)&&(i=n),fp(tt(t,tu),pi(i,2))}),kst=ar(function(t){var i=yf(t);return i=typeof i=="function"?i:n,fp(tt(t,tu),n,i)}),dst=ar(nw);rg=ar(function(t){var r=t.length,i=r>1?t[r-1]:n;return i=typeof i=="function"?(t.pop(),i):n,ig(t,i)});fg=sh(function(t){var r=t.length,u=r?t[0]:0,i=this.__wrapped__,f=function(n){return ly(n,t)};return r>1||this.__actions__.length||!(i instanceof vr)||!lh(u)?this.thru(f):(i=i.slice(u,+u+(r?1:0)),i.__actions__.push({func:kv,args:[f],thisArg:n}),new af(i,this.__chain__).thru(function(t){return r&&!t.length&&t.push(n),t}))});eg=hv(function(n,t,i){pr.call(n,i)?++n[i]:rh(n,i,1)});og=wk(wd);sg=wk(bd);lg=hv(function(n,t,i){pr.call(n,i)?n[i].push(t):rh(n,i,[t])});ag=ar(function(n,t,i){var u=-1,e=typeof t=="function",r=ef(n)?bu(n.length):[];return eh(n,function(n){r[++u]=e?f(t,n,i):na(n,t,i)}),r});vg=hv(function(n,t,i){rh(n,i,t)});yg=hv(function(n,t,i){n[i?0:1].push(t)},function(){return[[],[]]});pg=ar(function(n,t){if(n==null)return[];var i=t.length;return i>1&&ff(n,t[0],t[1])?t=[]:i>2&&ff(t[0],t[1],t[2])&&(t=[t[0]]),kb(n,gu(t,1),[])});ea=nit||function(){return u.Date.now()};gv=ar(function(n,t,i){var r=s,u;return i.length&&(u=rt(i,cl(gv)),r|=w),oh(n,r,t,i,u)});tw=ar(function(n,t,i){var r=s|ut,u;return i.length&&(u=rt(i,cl(tw)),r|=w),oh(t,r,n,i,u)});nn=ar(function(n,t){return sb(n,1,t)});tn=ar(function(n,t,i){return sb(n,pf(t)||0,i)});ny.Cache=ih;var ect=ek(function(n,t){t=t.length==1&&wi(t[0])?r(t[0],e(pi())):r(gu(t,1),e(pi()));var i=t.length;return ar(function(r){for(var u=-1,e=nf(r.length,i);++u<e;)r[u]=t[u].call(this,r[u]);return f(n,this,r)})}),iw=ar(function(t,i){var r=rt(i,cl(iw));return oh(t,w,n,i,r)}),rn=ar(function(t,i){var r=rt(i,cl(rn));return oh(t,ht,n,i,r)}),oct=sh(function(t,i){return oh(t,bt,n,n,n,i)});var dct=vv(py),gct=vv(function(n,t){return n>=t}),rl=lb(function(){return arguments}())?lb:function(n){return kr(n)&&pr.call(n,"callee")&&!nb.call(n,"callee")},wi=bu.isArray,nlt=bf?e(bf):sut;yh=iit||yw;un=kf?e(kf):hut;en=df?e(df):lut;ry=gf?e(gf):aut;sn=ne?e(ne):vut;ul=te?e(te):yut;hn=vv(dy);cn=vv(function(n,t){return n<=t});var klt=sl(function(n,t){if(ua(t)||ef(t)){ds(t,du(t),n);return}for(var i in t)pr.call(t,i)&&dl(n,i,t[i])}),yn=sl(function(n,t){ds(t,cf(t),n)}),sa=sl(function(n,t,i,r){ds(t,cf(t),n,r)}),dlt=sl(function(n,t,i,r){ds(t,du(t),n,r)}),glt=sh(ly);pn=ar(function(t){return t.push(n,lp),f(sa,n,t)});wn=ar(function(t){return t.push(n,id),f(bn,n,t)});var cat=kk(function(n,t,i){n[t]=i},hw(of)),lat=kk(function(n,t,i){pr.call(n,t)?n[t].push(i):n[t]=[i]},pi),aat=ar(na);var pat=sl(function(n,t,i){ev(n,t,i)}),bn=sl(function(n,t,i,r){ev(n,t,i,r)}),wat=sh(function(n,t){var i={},u,f;if(n==null)return i;for(u=!1,t=r(t,function(t){return t=pc(t,n),u||(u=t.length>1),t}),ds(n,vp(n),i),u&&(i=ss(i,y|eu|et,yft)),f=t.length;f--;)up(i,t[f]);return i});kn=sh(function(n,t){return n==null?{}:but(n,t)});ew=td(du);ow=td(cf);gn=hl(function(n,t,i){return t=t.toLowerCase(),n+(i?ntt(t):t)});var lvt=hl(function(n,t,i){return n+(i?"-":"")+t.toLowerCase()}),avt=hl(function(n,t,i){return n+(i?" ":"")+t.toLowerCase()}),vvt=pk("toLowerCase");itt=hl(function(n,t,i){return n+(i?"_":"")+t.toLowerCase()});rtt=hl(function(n,t,i){return n+(i?" ":"")+fy(t)});utt=hl(function(n,t,i){return n+(i?" ":"")+t.toUpperCase()});fy=pk("toUpperCase");sw=ar(function(t,i){try{return f(t,n,i)}catch(r){return rw(r)?r:new pw(r)}});ett=sh(function(n,t){return c(t,function(t){t=gs(t);rh(n,t,gv(n[t],n))}),n});ott=bk();stt=bk(!0);htt=ar(function(n,t){return function(i){return na(i,n,t)}});ctt=ar(function(n,t){return function(i){return na(n,i,t)}});var wyt=hp(r),byt=hp(ie),kyt=hp(gr);att=dk();vtt=dk(!0);var fpt=lv(function(n,t){return n+t},0),ept=cp("ceil"),opt=lv(function(n,t){return n/t},1),spt=cp("floor");var ppt=lv(function(n,t){return n*t},1),wpt=cp("round"),bpt=lv(function(n,t){return n-t},0);return at.after=rct,at.ary=wg,at.assign=klt,at.assignIn=yn,at.assignInWith=sa,at.assignWith=dlt,at.at=glt,at.before=bg,at.bind=gv,at.bindAll=ett,at.bindKey=tw,at.castArray=vct,at.chain=ug,at.chunk=aet,at.compact=vet,at.concat=yet,at.cond=hyt,at.conforms=cyt,at.constant=hw,at.countBy=eg,at.create=nat,at.curry=kg,at.curryRight=dg,at.debounce=gg,at.defaults=pn,at.defaultsDeep=wn,at.defer=nn,at.delay=tn,at.difference=pet,at.differenceBy=wet,at.differenceWith=bet,at.drop=ket,at.dropRight=det,at.dropRightWhile=get,at.dropWhile=not,at.fill=tot,at.filter=cht,at.flatMap=lht,at.flatMapDeep=aht,at.flatMapDepth=vht,at.flatten=kd,at.flatten
vendor: 4,317 bytes, line 1782
1782Deep=iot,at.flattenDepth=rot,at.flip=uct,at.flow=ott,at.flowRight=stt,at.fromPairs=uot,at.functions=oat,at.functionsIn=sat,at.groupBy=lg,at.initial=eot,at.intersection=oot,at.intersectionBy=sot,at.intersectionWith=hot,at.invert=cat,at.invertBy=lat,at.invokeMap=ag,at.iteratee=cw,at.keyBy=vg,at.keys=du,at.keysIn=cf,at.map=dv,at.mapKeys=vat,at.mapValues=yat,at.matches=ayt,at.matchesProperty=vyt,at.memoize=ny,at.merge=pat,at.mergeWith=bn,at.method=htt,at.methodOf=ctt,at.mixin=lw,at.negate=ty,at.nthArg=pyt,at.omit=wat,at.omitBy=bat,at.once=fct,at.orderBy=pht,at.over=wyt,at.overArgs=ect,at.overEvery=byt,at.overSome=kyt,at.partial=iw,at.partialRight=rn,at.partition=yg,at.pick=kn,at.pickBy=dn,at.property=ltt,at.propertyOf=dyt,at.pull=gd,at.pullAll=ng,at.pullAllBy=vot,at.pullAllWith=yot,at.pullAt=tg,at.range=att,at.rangeRight=vtt,at.rearg=oct,at.reject=kht,at.remove=pot,at.rest=sct,at.reverse=gp,at.sampleSize=ght,at.set=dat,at.setWith=gat,at.shuffle=nct,at.slice=wot,at.sortBy=pg,at.sortedUniq=ist,at.sortedUniqBy=rst,at.split=gvt,at.spread=hct,at.tail=ust,at.take=fst,at.takeRight=est,at.takeRightWhile=ost,at.takeWhile=sst,at.tap=tht,at.throttle=cct,at.thru=kv,at.toArray=ln,at.toPairs=ew,at.toPairsIn=ow,at.toPath=rpt,at.toPlainObject=vn,at.transform=nvt,at.unary=lct,at.union=hst,at.unionBy=cst,at.unionWith=lst,at.uniq=ast,at.uniqBy=vst,at.uniqWith=yst,at.unset=tvt,at.unzip=nw,at.unzipWith=ig,at.update=ivt,at.updateWith=rvt,at.values=ll,at.valuesIn=uvt,at.without=pst,at.words=ftt,at.wrap=act,at.xor=wst,at.xorBy=bst,at.xorWith=kst,at.zip=dst,at.zipObject=gst,at.zipObjectDeep=nht,at.zipWith=rg,at.entries=ew,at.entriesIn=ow,at.extend=yn,at.extendWith=sa,lw(at,at),at.add=fpt,at.attempt=sw,at.camelCase=gn,at.capitalize=ntt,at.ceil=ept,at.clamp=fvt,at.clone=yct,at.cloneDeep=wct,at.cloneDeepWith=bct,at.cloneWith=pct,at.conformsTo=kct,at.deburr=ttt,at.defaultTo=lyt,at.divide=opt,at.endsWith=svt,at.eq=nh,at.escape=hvt,at.escapeRegExp=cvt,at.every=hht,at.find=og,at.findIndex=wd,at.findKey=tat,at.findLast=sg,at.findLastIndex=bd,at.findLastKey=iat,at.floor=spt,at.forEach=hg,at.forEachRight=cg,at.forIn=rat,at.forInRight=uat,at.forOwn=fat,at.forOwnRight=eat,at.get=uw,at.gt=dct,at.gte=gct,at.has=hat,at.hasIn=fw,at.head=dd,at.identity=of,at.includes=yht,at.indexOf=fot,at.inRange=evt,at.invoke=aat,at.isArguments=rl,at.isArray=wi,at.isArrayBuffer=nlt,at.isArrayLike=ef,at.isArrayLikeObject=tu,at.isBoolean=tlt,at.isBuffer=yh,at.isDate=un,at.isElement=ilt,at.isEmpty=rlt,at.isEqual=ult,at.isEqualWith=flt,at.isError=rw,at.isFinite=elt,at.isFunction=gh,at.isInteger=fn,at.isLength=iy,at.isMap=en,at.isMatch=olt,at.isMatchWith=slt,at.isNaN=hlt,at.isNative=clt,at.isNil=alt,at.isNull=llt,at.isNumber=on,at.isObject=br,at.isObjectLike=kr,at.isPlainObject=oa,at.isRegExp=ry,at.isSafeInteger=vlt,at.isSet=sn,at.isString=uy,at.isSymbol=hf,at.isTypedArray=ul,at.isUndefined=ylt,at.isWeakMap=plt,at.isWeakSet=wlt,at.join=cot,at.kebabCase=lvt,at.last=yf,at.lastIndexOf=lot,at.lowerCase=avt,at.lowerFirst=vvt,at.lt=hn,at.lte=cn,at.max=hpt,at.maxBy=cpt,at.mean=lpt,at.meanBy=apt,at.min=vpt,at.minBy=ypt,at.stubArray=vw,at.stubFalse=yw,at.stubObject=gyt,at.stubString=npt,at.stubTrue=tpt,at.multiply=ppt,at.nth=aot,at.noConflict=yyt,at.noop=aw,at.now=ea,at.pad=yvt,at.padEnd=pvt,at.padStart=wvt,at.parseInt=bvt,at.random=ovt,at.reduce=wht,at.reduceRight=bht,at.repeat=kvt,at.replace=dvt,at.result=kat,at.round=wpt,at.runInContext=fu,at.sample=dht,at.size=tct,at.snakeCase=itt,at.some=ict,at.sortedIndex=bot,at.sortedIndexBy=kot,at.sortedIndexOf=dot,at.sortedLastIndex=got,at.sortedLastIndexBy=nst,at.sortedLastIndexOf=tst,at.startCase=rtt,at.startsWith=nyt,at.subtract=bpt,at.sum=kpt,at.sumBy=dpt,at.template=tyt,at.times=ipt,at.toFinite=cc,at.toInteger=bi,at.toLength=an,at.toLower=iyt,at.toNumber=pf,at.toSafeInteger=blt,at.toString=yr,at.toUpper=ryt,at.trim=uyt,at.trimEnd=fyt,at.trimStart=eyt,at.truncate=oyt,at.unescape=syt,at.uniqueId=upt,at.upperCase=utt,at.upperFirst=fy,at.each=hg,at.eachRight=cg,at.first=dd,lw(at,function(){var n={};return ks(at,function(t,i){pr.call(at.prototype,i)||(n[i]=t)}),n}(),{chain:!1}),at.VERSION=ye,c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){at[n].placeholder=at}),c(["drop","take"],function(t,i){vr.prototype[t]=function(r){r=r===n?1:ku(bi(r),
17820);var u=this.__filtered__&&!i?new vr(this):this.clone();return u.__filtered__?u.__takeCount__=nf(r,u.__takeCount__):u.__views__.push({size:nf(r,b),type:t+(u.__dir__<0?"Right":"")}),u};vr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),c(["filter","map","takeWhile"],function(n,t){var i=t+1,r=i==su||i==to;vr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:pi(n,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),c(["head","last"],function(n,t){var i="take"+(t?"Right":"");vr.prototype[n]=function(){return this[i](1).value()[0]}}),c(["initial","tail"],function(n,t){var i="drop"+(t?"":"Right");vr.prototype[n]=function(){return this.__filtered__?new vr(this):this[i](1)}}),vr.prototype.compact=function(){return this.filter(of)},vr.prototype.find=function(n){return this.filter(n).head()},vr.prototype.findLast=function(n){return this.reverse().find(n)},vr.prototype.invokeMap=ar(function(n,t){return typeof n=="function"?new vr(this):this.map(function(i){return na(i,n,t)})}),vr.prototype.reject=function(n){return this.filter(ty(pi(n)))},vr.prototype.slice=function(t,i){t=bi(t);var r=this;return r.__filtered__&&(t>0||i<0)?new vr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),i!==n&&(i=bi(i),r=i<0?r.dropRight(-i):r.take(i-t)),r)},vr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},vr.prototype.toArray=function(){return this.take(b)},ks(vr.prototype,function(t,i){var e=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),u=at[r?"take"+(i=="last"?"Right":""):i],f=r||/^find/.test(i);u&&(at.prototype[i]=function(){var o=this.__wrapped__,s=r?[1]:arguments,h=o instanceof vr,a=s[0],c=h||wi(o),v=function(n){var t=u.apply(at,it([n],s));return r&&l?t[0]:t},i;c&&e&&typeof a=="function"&&a.length!=1&&(h=c=!1);var l=this.__chain__,w=!!this.__actions__.length,y=f&&!l,p=h&&!w;return!f&&c?(o=p?o:new vr(this),i=t.apply(o,s),i.__actions__.push({func:kv,args:[v],thisArg:n}),new af(i,l)):y&&p?t.apply(this,s):(i=this.thru(v),y?r?i.value()[0]:i.value():i)})}),c(["pop","push","shift","sort","splice","unshift"],function(n){var t=ca[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);at.prototype[n]=function(){var u=arguments,n;return r&&!this.__chain__?(n=this.value(),t.apply(wi(n)?n:[],u)):this[i](function(n){return t.apply(wi(n)?n:[],u)})}}),ks(vr.prototype,function(n,t){var i=at[t],r,u;i&&(r=i.name+"",u=bl[r]||(bl[r]=[]),u.push({name:t,func:i}))}),bl[cv(n,ut).name]=[{name:"wrapper",func:n}],vr.prototype.clone=yit,vr.prototype.reverse=pit,vr.prototype.value=wit,at.prototype.at=fg,at.prototype.chain=iht,at.prototype.commit=rht,at.prototype.next=uht,at.prototype.plant=eht,at.prototype.reverse=oht,at.prototype.toJSON=at.prototype.valueOf=at.prototype.value=sht,at.prototype.first=at.prototype.head,vl&&(at.prototype[vl]=fht),at};g=fu();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(u._=g,define(function(){return g})):bi?((bi.exports=g)._=g,br._=g):u._=g}).call(this);
1783/*! angular-google-maps 2.4.1 2017-01-05
1784 *  AngularJS directives for Google Maps
1785 *  git: https://github.com/angular-ui/angular-google-maps.git
1786 */
1787(function(n,t,i,r){"use strict";(function(){t.module("uiGmapgoogle-maps.providers",["nemLogging"]);t.module("uiGmapgoogle-maps.wrapped",[]);t.module("uiGmapgoogle-maps.extensions",["uiGmapgoogle-maps.wrapped","uiGmapgoogle-maps.providers"]);t.module("uiGmapgoogle-maps.directives.api.utils",["uiGmapgoogle-maps.extensions"]);t.module("uiGmapgoogle-maps.directives.api.managers",[]);t.module("uiGmapgoogle-maps.directives.api.options",["uiGmapgoogle-maps.directives.api.utils"]);t.module("uiGmapgoogle-maps.directives.api.options.builders",[]);t.module("uiGmapgoogle-maps.directives.api.models.child",["uiGmapgoogle-maps.directives.api.utils","uiGmapgoogle-maps.directives.api.options","uiGmapgoogle-maps.directives.api.options.builders"]);t.module("uiGmapgoogle-maps.directives.api.models.parent",["uiGmapgoogle-maps.directives.api.managers","uiGmapgoogle-maps.directives.api.models.child","uiGmapgoogle-maps.providers"]);t.module("uiGmapgoogle-maps.directives.api",["uiGmapgoogle-maps.directives.api.models.parent"]);t.module("uiGmapgoogle-maps",["uiGmapgoogle-maps.directives.api","uiGmapgoogle-maps.providers"])}).call(this),function(){t.module("uiGmapgoogle-maps.providers").factory("uiGmapMapScriptLoader",["$q","uiGmapuuid",function(r,u){var h,f,e,o,s;return o=void 0,s=void 0,h=function(n){return n.china?"http://maps.google.cn/maps/api/js?":n.transport==="auto"?"//maps.googleapis.com/ma
1787ps/api/js?":n.transport+"://maps.googleapis.com/maps/api/js?"},f=function(n){var f,r,t,e;return f=["transport","isGoogleMapsForWork","china","preventLoad"],n.isGoogleMapsForWork&&f.push("key"),r=i.map(i.omit(n,f),function(n,t){return t+"="+n}),o&&(e=document.getElementById(o),e.parentNode.removeChild(e)),r=r.join("&"),t=document.createElement("script"),t.id=o="ui_gmap_map_load_"+u.generate(),t.type="text/javascript",t.src=h(n)+r,document.head.appendChild(t)},e=function(){return t.isDefined(n.google)&&t.isDefined(n.google.maps)},{load:function(t){var i,u;return(i=r.defer(),e())?(i.resolve(n.google.maps),i.promise):(u=t.callback="onGoogleMapsReady"+Math.round(Math.random()*1e3),n[u]=function(){n[u]=null;i.resolve(n.google.maps)},n.navigator.connection&&n.Connection&&n.navigator.connection.type===n.Connection.NONE&&!t.preventLoad?document.addEventListener("online",function(){if(!e())return f(t)}):t.preventLoad||f(t),s=t,s.randomizedFunctionName=u,i.promise)},manualLoad:function(){var t;if(t=s,e()){if(n[t.randomizedFunctionName])return n[t.randomizedFunctionName]()}else return f(t)}}}]).provider("uiGmapGoogleMapApi",function(){return this.options={transport:"https",isGoogleMapsForWork:!1,china:!1,v:"3",libraries:"",language:"en",preventLoad:!1},this.configure=function(n){t.extend(this.options,n)},this.$get=["uiGmapMapScriptLoader",function(n){return function(t){return t.load(n.options)}}(this)],this}).service("uiGmapGoogleMapApiManualLoader",["uiGmapMapScriptLoader",function(n){return{load:function(){n.manualLoad()}}}])}.call(this),function(){var r=function(n,t){return function(){return n.apply(t,arguments)}},u=function(n,t){function r(){this.constructor=n}for(var i in t)f.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},f={}.hasOwnProperty;t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendGWin",function(){return{init:i.once(function(){var t;if((google||(typeof google!="undefined"&&google!==null?google.maps:void 0)||google.maps.InfoWindow!=null))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(n,t,i){i==null&&(this._isOpen=!0,this._open(n,t,!0))},google.maps.InfoWindow.prototype.close=function(n){n==null&&(this._isOpen=!1,this._close(!0))},google.maps.InfoWindow.prototype.isOpen=function(n){return n==null&&(n=void 0),n==null?this._isOpen:this._isOpen=n},n.InfoBox&&(n.InfoBox.prototype._open=n.InfoBox.prototype.open,n.InfoBox.prototype._close=n.InfoBox.prototype.close,n.InfoBox.prototype._isOpen=!1,n.InfoBox.prototype.open=function(n,t){this._isOpen=!0;this._open(n,t)},n.InfoBox.prototype.close=function(){this._isOpen=!1;this._close()},n.InfoBox.prototype.isOpen=function(n){return n==null&&(n=void 0),n==null?this._isOpen:this._isOpen=n},t=function(t){function f(t){this.getOrigCloseBoxImg_=r(this.getOrigCloseBoxImg_,this);this.getCloseBoxDiv_=r(this.getCloseBoxDiv_,this);var u;u=new n.InfoBox(t);i.extend(this,u);t.closeBoxDiv!=null&&(this.closeBoxDiv_=t.closeBoxDiv)}return u(f,t),f.prototype.getCloseBoxDiv_=function(){return this.closeBoxDiv_},f.prototype.getCloseBoxImg_=function(){var n,t;return n=this.getCloseBoxDiv_(),t=this.getOrigCloseBoxImg_(),n||t},f.prototype.getOrigCloseBoxImg_=function(){var n;return n="",this.closeBoxURL_!==""&&(n="<img",n+=" src='"+this.closeBoxURL_+"'",n+=" align=right",n+=" style='",n+=" position: relative;",n+=" cursor: pointer;",n+=" margin: "+this.closeBoxMargin_+";",n+="'>"),n},f}(n.InfoBox),n.uiGmapInfoBox=t),n.MarkerLabel_?n.MarkerLabel_.prototype.setContent=function(){var n;(n=this.marker_.get("labelContent"),n&&!i.isEqual(this.oldContent,n))&&(typeof(n!=null?n.nodeType:void 0)=="undefined"?(this.labelDiv_.innerHTML=n,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML,this.oldContent=n):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(n),n=n.cloneNode(!0),this.labelDiv_.innerHTML="",this.eventDiv_.appendChild(n),this.oldContent=n))}:void 0})}})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").service("uiGmapLodash",function(){var n,t,r,u,f,e,o,s;return e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,f=/\\(\\)?/g,r=function(n){var u,t,r;return t=n.missingName,r=n.swapName,u=n.isProto,i[t]==null&&(i[t]=i[r],u)?i.prototype[t]=i[r]:void 0},[{missingName:"contains",swapName:"includes",isProto:!0},{missingName:"includes",swapName:"contains",isProto:!0},{missingName:"object",swapName:"zipObject"},{missingName:"zipObject",swapName:"object"},{missingName:"all",swapName:"every"},{missingName:"every",swapName:"all"},{missingName:"any",swapName:"some"},{missingName:"some",swapName:"any"},{missingName:"first",swapName:"head"},{missingName:"head",swapName:"first"}
1787].forEach(function(n){return r(n)}),i.get==null&&(o=function(n){return i.isObject(n)?n:Object(n)},t=function(n){return n===null?"":n+""},s=function(n){var r;return i.isArray(n)?n:(r=[],t(n).replace(e,function(n,t,i,u){r.push(i?u.replace(f,"$1"):t||n)}),r)},n=function(n,t,r){var u,f;if(n!==null){for(r!==void 0&&(r in o(n))&&(t=[r]),u=0,f=t.length;!i.isUndefined(n)&&u<f;)n=n[t[u++]];if(u&&u===f)return n}},u=function(t,i,r){var u;return u=t===null?void 0:n(t,s(i),i+""),u===void 0?r:u},i.get=u),this.intersectionObjects=function(n,t,r){var u;return r==null&&(r=void 0),u=i.map(n,function(n){return i.find(t,function(t){return r!=null?r(n,t):i.isEqual(n,t)})}),i.filter(u,function(n){return n!=null})},this.containsObject=i.includeObject=function(n,t,r){return(r==null&&(r=void 0),n===null)?!1:i.some(n,function(n){return r!=null?r(n,t):i.isEqual(n,t)})},this.differenceObjects=function(n,t,r){return r==null&&(r=void 0),i.filter(n,function(n){return function(i){return!n.containsObject(t,i,r)}}(this))},this.withoutObjects=this.differenceObjects,this.indexOfObject=function(n,t,r,u){var f,e;if(n==null)return-1;if(f=0,e=n.length,u)if(typeof u=="number")f=u<0?Math.max(0,e+u):u;else return f=i.sortedIndex(n,t),n[f]===t?f:-1;while(f<e){if(r!=null){if(r(n[f],t))return f}else if(i.isEqual(n[f],t))return f;f++}return-1},this.isNullOrUndefined=function(n){return i.isNull(n||i.isUndefined(n))},this})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").factory("uiGmapString",function(){return function(n){return this.contains=function(t,i){return n.indexOf(t,i)!==-1},this}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmap_sync",[function(){return{fakePromise:function(){var n;return n=void 0,{then:function(t){return n=t},resolve:function(){return n.apply(void 0,arguments)}}}}}]).service("uiGmap_async",["$timeout","uiGmapPromise","uiGmapLogger","$q","uiGmapDataStructures","uiGmapGmapUtil",function(n,r,u,f,e,o){var k,d,g,nt,tt,l,a,it,v,h,c,y,p,w,b,rt,ut,ft,s,et;return s=r.promiseTypes,y=r.isInProgress,ft=r.promiseStatus,k=r.ExposedPromise,g=r.SniffedPromise,p=function(n,t){var i;return i=n.promise(),i.promiseType=n.promiseType,i.$$state&&u.debug("promiseType: "+i.promiseType+", state: "+ft(i.$$state.status)),i.cancelCb=t,i},it=function(n,t){return n.promiseType===s.create&&t.promiseType!==s["delete"]&&t.promiseType!==s.init?(u.debug("lastPromise.promiseType "+t.promiseType+", newPromiseType: "+n.promiseType+", SKIPPED MUST COME AFTER DELETE ONLY"),!0):!1},ut=function(n,t,r){var f;if(t.promiseType===s["delete"]&&r.promiseType!==s["delete"]&&r.cancelCb!=null&&i.isFunction(r.cancelCb)&&y(r)&&(u.debug("promiseType: "+t.promiseType+", CANCELING LAST PROMISE type: "+r.promiseType),r.cancelCb("cancel safe"),f=n.peek(),f!=null&&y(f)))return f.hasOwnProperty("cancelCb")&&i.isFunction(f.cancelCb)?(u.debug("promiseType: "+f.promiseType+", CANCELING FIRST PROMISE type: "+f.promiseType),f.cancelCb("cancel safe")):u.warn("first promise was not cancelable")},d=function(n,t,r){var u,f;return n.existingPieces?(u=i.last(n.existingPieces._content),it(t,u))?void 0:(ut(n.existingPieces,t,u),f=k(u["finally"](function(){return p(t,r)})),f.cancelCb=r,f.promiseType=t.promiseType,n.existingPieces.enqueue(f),u["finally"](function(){return n.existingPieces.dequeue()})):(n.existingPieces=new e.Queue,n.existingPieces.enqueue(p(t,r)))},b=function(n,t,r,f,e){var o;return r==null&&(r=""),o=function(n){return u.debug(n+": "+n),f!=null&&i.isFunction(f)?f(n):void 0},d(n,g(e,t),o)},l=80,h={value:null},et=function(n,t,i){var r,u;try{return n.apply(t,i)}catch(u){return r=u,h.value=r,h}},w=function(n,t,i,r){var f,e;return(e=et(n,t,r),e===h&&(f="error within chunking iterator: "+h.value,u.error(f),i.reject(f)),e==="cancel safe")?!1:!0},nt=function(n,t,i){var u,r;return(u=n===t,r=t[i],u)?r:n[r]},tt=["length","forEach","map"],c=function(n,r,u,f){var e,o,s;if(t.isArray(n))e=n;else if(r)e=r;else{e=[];for(o in n)s=n[o],n.hasOwnProperty(o)&&!i.includes(tt,o)&&e.push(o)}return(f==null&&(f=u),t.isArray(e)&&!(e!=null?e.length:void 0)&&f!==u)?u():f(e,r)},a=function(r,u,f,e,o,s,h,l){return c(r,l,function(c,l){var b,v,y,p;for(b=u&&u<c.length?u:c.length,v=h,y=!0;y&&b--&&v<(c?c.length:v+1);)p=nt(r,c,v),y=t.isFunction(p)?!0:w(e,void 0,s,[p,v]),++v;if(c)if(y&&v<c.length){if(h=v,u)return o!=null&&i.isFunction(o)&&w(o,void 0,s,[]),n(function(){return a(r,u,f,e,o,s,h,l)},f,!1)}else return s.resolve()})},v=function(n,t,i,f,e,o,s){var y,h,v;return(i==null&&(i=l),e==null&&(e=0),o==null&&(o=1),v=void 0,h=r.defer(),v=h.promise,!o)?(y="pause (delay) must be set from _async!",u.error(y),h.reject(y),v):c(n,s,function(){return h.resolve(),v},function(r,u){return a(n,i,o,t,f,h,e,u),v})},rt=function(n,t,i,u,f,e,o){var s;return s=[],c(n,o,function(){return r.resolve(s)},function(r,o){return v(n,function(n){return s.push(t(n))},i,u,f,e,o).then(function(){return s})})},{each:v,map:rt,managePromiseQueue:b,promiseLock:b,defaultChunkSize:l,getArrayAndKeys:c,chunkSizeFrom
1787:function(n,t){return t==null&&(t=void 0),i.isNumber(n)&&(t=n),(o.isFalse(n)||n===!1)&&(t=!1),t}}}])}.call(this),function(){var n=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapBaseObject",function(){var t;return t=["extended","included"],function(){function i(){}return i.extend=function(i){var r,u,f;for(r in i)f=i[r],n.call(t,r)<0&&(this[r]=f);return(u=i.extended)!=null&&u.apply(this),this},i.include=function(i){var r,u,f;for(r in i)f=i[r],n.call(t,r)<0&&(this.prototype[r]=f);return(u=i.included)!=null&&u.apply(this),this},i}()})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChildEvents",function(){return{onChildCreation:function(){}}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapCtrlHandle",["$q",function(n){var t;return t={handle:function(i){return i.$on("$destroy",function(){return t.handle(i)}),i.deferred=n.defer(),{getScope:function(){return i}}},mapPromise:function(n,t){var i;return i=t.getScope(),i.deferred.promise.then(function(t){return n.map=t}),i.deferred.promise}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapEventsHelper",["uiGmapLogger",function(){var r,n;return n=function(n){return t.isDefined(n.events)&&n.events!=null&&t.isObject(n.events)},r=function(t,i){return n(t)?t:n(i)?i:void 0},{setEvents:function(n,u,f,e){var o;return o=r(u,f),o!=null?i.compact(i.map(o.events,function(r,s){var h;return e&&(h=i(e).includes(s)),o.events.hasOwnProperty(s)&&t.isFunction(o.events[s])&&!h?google.maps.event.addListener(n,s,function(){return u.$evalAsync||(u.$evalAsync=function(){}),u.$evalAsync(r.apply(u,[n,s,f,arguments]))}):void 0})):void 0},removeEvents:function(n){var t,i;if(n)for(t in n)i=n[t],i&&n.hasOwnProperty(t)&&google.maps.event.removeListener(i)}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapFitHelper",["uiGmapLogger","$timeout",function(n,t){return{fit:function(n,r){var e,f,o,u,s;if(r&&(n!=null?n.length:void 0)){e=new google.maps.LatLngBounds;f=!1;for(o in n)u=n[o],u&&(f||(f=!0),s=i.isFunction(u.getPosition)?u.getPosition():u),e.extend(s);if(f)return t(function(){return r.fitBounds(e)})}}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapGmapUtil",["uiGmapLogger","$compile",function(n,r){var f,u,e,o,s,h;return u=function(n,t,i){return n===t||i.indexOf(n)!==-1},f=function(n){return u(n,!1,["false","FALSE",0,"n","N","no","NO"])},o=function(n){return Array.isArray(n)&&n.length===2?n[1]:t.isDefined(n.type)&&n.type==="Point"?n.coordinates[1]:n.latitude},s=function(n){return Array.isArray(n)&&n.length===2?n[0]:t.isDefined(n.type)&&n.type==="Point"?n.coordinates[0]:n.longitude},e=function(n){if(n)return n instanceof google.maps.LatLng?n:Array.isArray(n)&&n.length===2?new google.maps.LatLng(n[1],n[0]):t.isDefined(n.type)&&n.type==="Point"?new google.maps.LatLng(n.coordinates[1],n.coordinates[0]):new google.maps.LatLng(n.latitude,n.longitude)},h=function(n){if(t.isUndefined(n))return!1;if(i.isArray(n)){if(n.length===2)return!0}else if(n!=null&&(n!=null?n.type:void 0)&&n.type==="Point"&&i.isArray(n.coordinates)&&n.coordinates.length===2)return!0;return n&&t.isDefined((n!=null?n.latitude:void 0)&&t.isDefined(n!=null?n.longitude:void 0))?!0:!1},{setCoordsFromEvent:function(n,i){if(n)return Array.isArray(n)&&n.length===2?(n[1]=i.lat(),n[0]=i.lng()):t.isDefined(n.type)&&n.type==="Point"?(n.coordinates[1]=i.lat(),n.coordinates[0]=i.lng()):(n.latitude=i.lat(),n.longitude=i.lng()),n},getLabelPositionPoint:function(n){var t,i;if(n!==void 0)return n=/^([-\d\.]+)\s([-\d\.]+)$/.exec(n),t=parseFloat(n[1]),i=parseFloat(n[2]),t!=null&&i!=null?new google.maps.Point(t,i):void 0},createWindowOptions:function(i,u,f,o){var s;return f!=null&&o!=null&&r!=null?(s=t.extend({},o,{content:this.buildContent(u,o,f),position:o.position!=null?o.position:t.isObject(i)?i.getPosition():e(u.coords)}),i!=null&&(s!=null?s.pixelOffset:void 0)==null&&(s.boxClass==null||(s.pixelOffset={height:0,width:-2})),s):o?o:(n.error("infoWindow defaults not defined"),!f)?n.error("infoWindow content not defined"):void 0},buildContent:function(n,t,i){var f,u;return t.content!=null?u=t.content:r!=null?(i=i.replace(/^\s+|\s+$/g,""),f=i===""?"":r(i)(n),f.length>0&&(u=f[0])):u=i,u},defaultDelay:50,isTrue:function(n){return u(n,!0,["true","TRUE",1,"y","Y","yes","YES"])},isFalse:f,isFalsy:function(n){return u(n,!1,[void 0,null])||f(n)},getCoords:e,validateCoords:h,equalCoords:function(n,t){return o(n)===o(t)&&s(n)===s(t)},validatePath:function(n){var u,r,e,f;if(r=0,t.isUndefined(n.type)){if(!Array.isArray(n)||n.length<2)return!1;while(r<n.length){if(!(t.isDefined(n[r].latitude)&&t.isDefined(n[r].longitude)||typeof n[r].lat=="function"&&typeof n[r].lng=="function"))return!1;r++}return!0}if(t.isUndefined(n.coordinates))return!1;if(n.type==="Polygon"){if(n.coordinates[0].length<4)return!1;u=n.coordinates[0]}else if(n.type==="MultiPolygon"){if(f={max:0,index:0}
1787,i.forEach(n.coordinates,function(n,t){if(n[0].length>this.max)return this.max=n[0].length,this.index=t},f),e=n.coordinates[f.index],u=e[0],u.length<4)return!1}else if(n.type==="LineString"){if(n.coordinates.length<2)return!1;u=n.coordinates}else return!1;while(r<u.length){if(u[r].length!==2)return!1;r++}return!0},convertPathPoints:function(n){var u,r,f,e,o;if(r=0,e=new google.maps.MVCArray,t.isUndefined(n.type))while(r<n.length)f,t.isDefined(n[r].latitude)&&t.isDefined(n[r].longitude)?f=new google.maps.LatLng(n[r].latitude,n[r].longitude):typeof n[r].lat=="function"&&typeof n[r].lng=="function"&&(f=n[r]),e.push(f),r++;else for(u,n.type==="Polygon"?u=n.coordinates[0]:n.type==="MultiPolygon"?(o={max:0,index:0},i.forEach(n.coordinates,function(n,t){if(n[0].length>this.max)return this.max=n[0].length,this.index=t},o),u=n.coordinates[o.index][0]):n.type==="LineString"&&(u=n.coordinates);r<u.length;)e.push(new google.maps.LatLng(u[r][1],u[r][0])),r++;return e},getPath:function(n,t){var r;return t==null||!i.isString(t)?t:(r=n,i.each(t.split("."),function(n){if(r)return r=r[n]}),r)},validateBoundPoints:function(n){return t.isUndefined(n.sw.latitude)||t.isUndefined(n.sw.longitude)||t.isUndefined(n.ne.latitude)||t.isUndefined(n.ne.longitude)?!1:!0},convertBoundPoints:function(n){return new google.maps.LatLngBounds(new google.maps.LatLng(n.sw.latitude,n.sw.longitude),new google.maps.LatLng(n.ne.latitude,n.ne.longitude))},fitMapBounds:function(n,t){return n.fitBounds(t)}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapIsReady",["$q","$timeout",function(n,t){var u,i,f,r;return i=0,r=[],f=function(){return n.all(r)},u=function(n,r,e){return t(function(){if(e<=0){n.reject("Your maps are not found we have checked the maximum amount of times. :)");return}i!==r?u(n,r,e-1):n.resolve(f())},100)},{spawn:function(){var t;return t=n.defer(),r.push(t.promise),i+=1,{instance:i,deferred:t}},promises:f,instances:function(){return i},promise:function(t,i){var r;return t==null&&(t=1),i==null&&(i=50),r=n.defer(),u(r,t,i),r.promise},reset:function(){i=0;r.length=0},decrement:function(){i>0&&(i-=1);r.length&&(r.length-=1)}}}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapLinked",["uiGmapBaseObject",function(t){return function(t){function i(n,t,i,r){this.scope=n;this.element=t;this.attrs=i;this.ctrls=r}return n(i,t),i}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapLogger",["nemSimpleLogger",function(n){return n.spawn()}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelKey",["uiGmapBaseObject","uiGmapGmapUtil",function(u,f){return function(u){function e(t,i){this.scope=t;this["interface"]=i!=null?i:{scopeKeys:[]};this.modelsLength=n(this.modelsLength,this);this.updateChild=n(this.updateChild,this);this.destroy=n(this.destroy,this);this.setChildScope=n(this.setChildScope,this);this.getChanges=n(this.getChanges,this);this.getProp=n(this.getProp,this);this.setIdKey=n(this.setIdKey,this);this.modelKeyComparison=n(this.modelKeyComparison,this);e.__super__.constructor.call(this);this.defaultIdKey="id";this.idKey=void 0}return r(e,u),e.prototype.evalModelHandle=function(n,t){if(n!=null&&t!=null)return t==="self"?n:(i.isFunction(t)&&(t=t()),f.getPath(n,t))},e.prototype.modelKeyComparison=function(n,t){var o,s,u,e,r,h;if(u=this["interface"].scopeKeys.indexOf("coords")>=0,(u&&this.scope.coords!=null||!u)&&(r=this.scope),r==null)throw"No scope set!";return u&&(o=this.scopeOrModelVal("coords",r,n),s=this.scopeOrModelVal("coords",r,t),e=f.equalCoords(o,s),!e)?e:(h=i.without(this["interface"].scopeKeys,"coords"),i.every(h,function(u){return function(f){var e,o;return e=u.scopeOrModelVal(r[f],r,n),o=u.scopeOrModelVal(r[f],r,t),r.deepComparison?i.isEqual(e,o):e===o}}(this)))},e.prototype.setIdKey=function(n){return this.idKey=n.idKey!=null?n.idKey:this.defaultIdKey},e.prototype.setVal=function(n,t,i){return this.modelOrKey(n,t=i),n},e.prototype.modelOrKey=function(n,t){if(t!=null)return t!=="self"?f.getPath(n,t):n},e.prototype.getProp=function(n,t,i){return this.scopeOrModelVal(n,t,i
1787)},e.prototype.getChanges=function(n,t,r){var e,f,u;r&&(t=i.pick(t,r),n=i.pick(n,r));f={};u={};e={};for(u in n)t&&t[u]===n[u]||(i.isArray(n[u])?f[u]=n[u]:i.isObject(n[u])?(e=this.getChanges(n[u],t?t[u]:null),i.isEmpty(e)||(f[u]=e)):f[u]=n[u]);return f},e.prototype.scopeOrModelVal=function(n,t,r,u){var e,o,s,f;return(u==null&&(u=!1),e=function(n,t,i){return(i==null&&(i=!1),i)?{isScope:n,value:t}:t},f=i.get(t,n),i.isFunction(f))?e(!0,f(r),u):i.isObject(f)?e(!0,f,u):i.isString(f)?(o=f,s=o?o==="self"?r:i.get(r,o):i.get(r,n),i.isFunction(s))?e(!1,s(),u):e(!1,s,u):e(!0,f,u)},e.prototype.setChildScope=function(n,t,i){var r,e,u,f;for(e in n)u=n[e],r=this.scopeOrModelVal(u,t,i,!0),(r!=null?r.value:void 0)!=null&&(f=r.value,f!==t[u]&&(t[u]=f));return t.model=i},e.prototype.onDestroy=function(){},e.prototype.destroy=function(n){var t;return n==null&&(n=!1),this.scope==null||((t=this.scope)!=null?t.$$destroyed:void 0)||!(this.needToManualDestroy||n)?this.clean():this.scope.$destroy()},e.prototype.updateChild=function(n,t){if(t[this.idKey]==null){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.");return}return n.updateModel(t)},e.prototype.modelsLength=function(n){var r,i;return(n==null&&(n=void 0),r=0,i=n?n:this.scope.models,i==null)?r:t.isArray(i)||i.length!=null?i.length:Object.keys(i).length},e}(u)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelsWatcher",["uiGmapLogger","uiGmap_async","$q","uiGmapPromise",function(n,t,i,r){return{didQueueInitPromise:function(n,i){return i.models.length===0?(t.promiseLock(n,r.promiseTypes.init,null,null,function(){return r.resolve()}),!0):!1},figureOutState:function(t,i,r,u){var f,h,e,o,s;return f=[],e={},o=[],s=[],i.models.forEach(function(o){var h;if(o[t]!=null){if(e[o[t]]={},r.get(o[t])==null)return f.push(o);if(h=r.get(o[t]),!u(o,h.clonedModel,i))return s.push({model:o,child:h})}else return n.error(" id missing for model #{m.toString()},\ncan not use do comparison/insertion")}),h=r.values(),h.forEach(function(i){var r;if(i==null){n.error("child undefined in ModelsWatcher.");return}if(i.model==null){n.error("child.model undefined in ModelsWatcher.");return}return r=i.model[t],e[r]==null?o.push(i):void 0}),{adds:f,removals:o,updates:s}}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapPromise",["$q","$timeout","uiGmapLogger",function(n,t,r){var f,e,o,s,h,c,l,u,a,v,y;return a={create:"create",update:"update","delete":"delete",init:"init"},u={IN_PROGRESS:0,RESOLVED:1,REJECTED:2},y=function(){var n;return n={},n[""+u.IN_PROGRESS]="in-progress",n[""+u.RESOLVED]="resolved",n[""+u.REJECTED]="rejected",n}(),s=function(n){return n.$$state?n.$$state.status===u.IN_PROGRESS:n.hasOwnProperty("$$v")?void 0:!0},h=function(n){return n.$$state?n.$$state.status===u.RESOLVED:n.hasOwnProperty("$$v")?!0:void 0},l=function(n){return y[n]||"done w error"},f=function(t){var r,u,i;return r=n.defer(),u=n.all([t,r.promise]),i=n.defer(),t.then(r.resolve,function(){},function(n){return r.notify(n),i.notify(n)}),u.then(function(n){return i.resolve(n[0]||n[1])},function(n){return i.reject(n)}),i.promise.cancel=function(n){return n==null&&(n="canceled"),r.reject(n)},i.promise.notify=function(n){return n==null&&(n="cancel safe"),i.notify(n),t.hasOwnProperty("notify")?t.notify(n):void 0},t.promiseType!=null&&(i.promise.promiseType=t.promiseType),i.promise},e=function(n,t){return{promise:n,promiseType:t}},o=function(){return n.defer()},v=function(){var t;return t=n.defer(),t.resolve.apply(void 0,arguments),t.promise},c=function(u){var f;if(!i.isFunction(u)){r.error("uiGmapPromise.promise() only accepts functions");return}return f=n.defer(),t(function(){var n;return n=u(),f.resolve(n)}),f.promise},{defer:o,promise:c,resolve:v,promiseTypes:a,isInProgress:s,isResolved:h,promiseStatus:l,ExposedPromise:f,SniffedPromise:e}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropMap",function(){return function(){function t(){this.removeAll=n(this.removeAll,this);this.slice=n(this.slice,this);this.push=n(this.push,this);this.keys=n(this.keys,this);this.values=n(this.values,this);this.remove=n(this.remove,this);this.put=n(this.put,this);this.stateChanged=n(this.stateChanged,this);this.get=n(this.get,this);this.length=0;this.dict={};this.didValsStateChange=!1;this.didKeysStateChange=!1;this.allVals=[];this.allKeys=[]}return t.prototype.get=function(n){return this.dict[n]},t.prototype.stateChanged=function(){return this.didValsStateChange=!0,this.didKeysStateChange=!0},t.prototype.put=function(n,t){return this.get(n)==null&&this.length++,this.stateChanged(),this.dict[n]=t},t.prototype.remove=function(n,t){var i;if(t==null&&(t=!1),!t||this.get(n))return i=this.dict[n],delete this.dict[n],this.length--,this.stateChanged(),i},t.prototype.valuesOrKeys=function(n){var t,r;return(n==null&&(n="Keys"),!this["did"+n+"StateChange"])?this["all"+n]:(r=[],t=[],i.each(this.dict,function(n,i){return r.push(n),t.push(i)}),this.didKeysStateChange=!1,this.didValsStateChange=!1,this.allVals=r,this.allKeys=t,this["all"+n])},t.prototype.values=function(){return this.valuesOrKeys("Vals")},t.prototype.keys=function(){return this.valuesOrKeys()},t.prototype.push=function(n,t){return t==null&&(t="key"),this.put(n[t],n)},t.prototype.slice=function(){return this.keys().map(function(n){return function(t){return n.remove(t)}}(this))},t.prototype.removeAll=function(){return this.slice()},t.prototype.each=function(n){return i.each(this.dict,function(t){return n(t)})},t.prototype.map=function(n){return i.map(this.dict,function(t){return n(t)})},t}()})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropertyAction",["uiGmapLogger",function(){return function(n){return this.setIfChange=function(t){return function(r,u){if(!i.isEqual(u,r))return n(t,r)}},this.sic=this.setIfChange,this}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapClustererMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapEventsHelper",function(i,r,u,f){return function(){function e(t,r,f,o){r==null&&(r={});this.opt_options=f!=null?f:{};this.opt_events=o;this.getGMarkers=n(this.getGMarkers,this);this.fit=n(this.fit,this);this.destroy=n(this.destroy,this);this.attachEvents=n(this.attachEvents,this);this.clear=n(this.clear,this);this.draw=n(this.draw,this);this.removeMany=n(this.removeMany,this);this.remove=n(this.remove,this);this.addMany=n(this.addMany,this);this.update=n(this.update,this);this.add=n(this.add,this);this.type=e.type;this.clusterer=new NgMapMarkerClusterer(t,r,this.opt_options);this.propMapGMarkers=new u;this.attachEvents(this.opt_events,"opt_events");this.clusterer.setIgnoreHidden(!0);this.noDrawOnSingleAddRemoves=!0;i.info(this)}return e.type="ClustererMarkerManager",e.prototype.checkKey=function(n){var t;if(n.key==null)return t="gMarker.key undefined and it is REQUIRED!!",i.error(t)},e.prototype.add=function(n){return this.checkKey(n),this.clusterer.addMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(n.key,n),this.checkSync()},e.prototype.update=function(n){return this.remove(n),this.add(n)}
1787,e.prototype.addMany=function(n){return n.forEach(function(n){return function(t){return n.add(t)}}(this))},e.prototype.remove=function(n){var t;return this.checkKey(n),t=this.propMapGMarkers.get(n.key),t&&(this.clusterer.removeMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(n.key)),this.checkSync()},e.prototype.removeMany=function(n){return n.forEach(function(n){return function(t){return n.remove(t)}}(this))},e.prototype.draw=function(){return this.clusterer.repaint()},e.prototype.clear=function(){return this.removeMany(this.getGMarkers()),this.clusterer.repaint()},e.prototype.attachEvents=function(n,r){var e,u,f;if(this.listeners=[],t.isDefined(n)&&n!=null&&t.isObject(n)){f=[];for(u in n)e=n[u],n.hasOwnProperty(u)&&t.isFunction(n[u])?(i.info(r+": Attaching event: "+u+" to clusterer"),f.push(this.listeners.push(google.maps.event.addListener(this.clusterer,u,n[u])))):f.push(void 0);return f}},e.prototype.clearEvents=function(){return f.removeEvents(this.listeners),this.listeners=[]},e.prototype.destroy=function(){return this.clearEvents(),this.clear()},e.prototype.fit=function(){return r.fit(this.getGMarkers(),this.clusterer.getMap())},e.prototype.getGMarkers=function(){return this.clusterer.getMarkers().values()},e.prototype.checkSync=function(){},e}()}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.managers").service("uiGmapGoogleMapObjectManager",[function(){var i,n;return i=[],n=[],{createMapInstance:function(r,u){var f;return f=null,i.length===0?(f=new google.maps.Map(r,u),n.push(f)):(f=i.pop(),t.element(r).append(f.getDiv()),f.setOptions(u),n.push(f)),f},recycleMapInstance:function(t){var r;if(r=n.indexOf(t),r<0)throw new Error("Expected map instance to be a previously used instance");return n.splice(r,1),i.push(t)}}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(t,i,r){return function(){function u(i){this.getGMarkers=n(this.getGMarkers,this);this.fit=n(this.fit,this);this.handleOptDraw=n(this.handleOptDraw,this);this.clear=n(this.clear,this);this.destroy=n(this.destroy,this);this.draw=n(this.draw,this);this.removeMany=n(this.removeMany,this);this.remove=n(this.remove,this);this.addMany=n(this.addMany,this);this.update=n(this.update,this);this.add=n(this.add,this);this.type=u.type;this.gMap=i;this.gMarkers=new r;this.$log=t;this.$log.info(this)}return u.type="MarkerManager",u.prototype.add=function(n,i){var u,r;if(i==null&&(i=!0),n.key==null){r="gMarker.key undefined and it is REQUIRED!!";t.error(r);throw r;}return u=this.gMarkers.get(n.key),u?void 0:(this.handleOptDraw(n,i,!0),this.gMarkers.put(n.key,n))},u.prototype.update=function(n,t){return t==null&&(t=!0),this.remove(n,t),this.add(n,t)},u.prototype.addMany=function(n){return n.forEach(function(n){return function(t){return n.add(t)}}(this))},u.prototype.remove=function(n,t){return t==null&&(t=!0),this.handleOptDraw(n,t,!1),this.gMarkers.get(n.key)?this.gMarkers.remove(n.key):void 0},u.prototype.removeMany=function(n){return n.forEach(function(n){return function(t){return n.remove(t)}}(this))},u.prototype.draw=function(){var n;return n=[],this.gMarkers.each(function(t){return function(i){if(!i.isDrawn)return i.doAdd?(i.setMap(t.gMap),i.isDrawn=!0):n.push(i)}}(this)),n.forEach(function(n){return function(t){return t.isDrawn=!1,n.remove(t,!0)}}(this))},u.prototype.destroy=function(){return this.clear()},u.prototype.clear=function(){return this.gMarkers.each(function(n){return n.setMap(null)}),delete this.gMarkers,this.gMarkers=new r},u.prototype.handleOptDraw=function(n,t,i){return t===!0?(i?n.setMap(this.gMap):n.setMap(null),n.isDrawn=!0):(n.isDrawn=!1,n.doAdd=i)},u.prototype.fit=function(){return i.fit(this.getGMarkers(),this.gMap)},u.prototype.getGMarkers=function(){return this.gMarkers.values()},u}()}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapSpiderfierMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap","uiGmapMarkerSpiderfier",function(r,u,f,e){return function(){function o(t,i,u,s,h){i==null&&(i={});this.opt_options=u!=null?u:{};this.opt_events=s;this.scope=h;this.isSpiderfied=n(this.isSpiderfied,this);this.getGMarkers=n(this.getGMarkers,this);this.fit=n(this.fit,this);this.destroy=n(this.destroy,this);this.attachEvents=n(this.attachEvents,this);this.clear=n(this.clear,this);this.removeMany=n(this.removeMany,this);this.remove=n(this.remove,this);this.addMany=n(this.addMany,this);this.update=n(this.update,this);this.add=n(this.add,this);this.type=o.type;this.markerSpiderfier=new e(t,this.opt_options);this.propMapGMarkers=new f;this.attachEvents(this.opt_events,"opt_events");this.noDrawOnSingleAddRemoves=!0;r.info(this)}return o.type="SpiderfierMarkerManager",o.prototype.checkKey=function(n){var t;if(n.key==null)return t="gMarker.key undefined and it is REQUIRED!!",r.error(t)},o.prototype.add=function(n){return n.setMap(this.markerSpiderfier.map),this.checkKey(n),this.markerSpiderfier.addMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(n.key,n),this.checkSync()},o.prototype.update=function(n){return this.remove(n),this.add(n)}
1787,o.prototype.addMany=function(n){return n.forEach(function(n){return function(t){return n.add(t)}}(this))},o.prototype.remove=function(n){var t;return this.checkKey(n),t=this.propMapGMarkers.get(n.key),t&&(n.setMap(null),this.markerSpiderfier.removeMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(n.key)),this.checkSync()},o.prototype.removeMany=function(n){return n.forEach(function(n){return function(t){return n.remove(t)}}(this))},o.prototype.draw=function(){},o.prototype.clear=function(){return this.removeMany(this.getGMarkers())},o.prototype.attachEvents=function(n,u){if(t.isDefined(n)&&n!=null&&t.isObject(n))return i.each(n,function(i){return function(f,e){if(n.hasOwnProperty(e)&&t.isFunction(n[e]))return r.info(u+": Attaching event: "+e+" to markerSpiderfier"),i.markerSpiderfier.addListener(e,function(){return e==="spiderfy"||e==="unspiderfy"?i.scope.$evalAsync(n[e].apply(n,arguments)):i.scope.$evalAsync(n[e].apply(n,[arguments[0],e,arguments[0].model,arguments]))})}}(this))},o.prototype.clearEvents=function(n,i){var f,u;if(t.isDefined(n)&&n!=null&&t.isObject(n))for(u in n)f=n[u],n.hasOwnProperty(u)&&t.isFunction(n[u])&&(r.info(i+": Clearing event: "+u+" to markerSpiderfier"),this.markerSpiderfier.clearListeners(u))},o.prototype.destroy=function(){return this.clearEvents(this.opt_events,"opt_events"),this.clear()},o.prototype.fit=function(){return u.fit(this.getGMarkers(),this.markerSpiderfier.map)},o.prototype.getGMarkers=function(){return this.markerSpiderfier.getMarkers()},o.prototype.isSpiderfied=function(){return i.find(this.getGMarkers(),function(n){return(n!=null?n._omsData:void 0)!=null})},o.prototype.checkSync=function(){},o}()}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmapadd-events",["$timeout",function(n){var i;return i=function(t,i,r){return google.maps.event.addListener(t,i,function(){return r.apply(this,arguments),n(function(){},!0)})},function(n,r,u){var f;return u?i(n,r,u):(f=[],t.forEach(r,function(t,r){return f.push(i(n,r,t))}),function(){return t.forEach(f,function(n){return google.maps.event.removeListener(n)}),f=null})}}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmaparray-sync",["uiGmapadd-events",function(n){return function(i,r,u,f){var s,l,a,o,v,y,c,e,h;return o=!1,e=r.$eval(u),r["static"]||(v={set_at:function(n){var t;if(!o)return(t=i.getAt(n),!t)?void 0:t.lng&&t.lat?(e[n].latitude=t.lat(),e[n].longitude=t.lng()):e[n]=t},insert_at:function(n){var t;if(!o)return(t=i.getAt(n),!t)?void 0:t.lng&&t.lat?e.splice(n,0,{latitude:t.lat(),longitude:t.lng()}):e.splice(n,0,t)},remove_at:function(n){if(!o)return e.splice(n,1)}},s,e.type==="Polygon"?s=e.coordinates[0]:e.type==="LineString"&&(s=e.coordinates),l={set_at:function(n){var t;if(!o)return(t=i.getAt(n),!(t&&t.lng&&t.lat))?void 0:(s[n][1]=t.lat(),s[n][0]=t.lng())},insert_at:function(n){var t;if(!o)return(t=i.getAt(n),!t)?void 0:!t.lng||!t.lat?void 0:s.splice(n,0,[t.lng(),t.lat()])},remove_at:function(n){if(!o)return s.splice(n,1)}},c=n(i,t.isUndefined(e.type)?v:l)),y=function(n){var e,r,l,h,t,u,c,s;if(o=!0,u=i,e=!1,n){for(r=0,c=u.getLength(),h=n.length,l=Math.min(c,h),t=void 0;r<l;)s=u.getAt(r),t=n[r],typeof t.equals=="function"?t.equals(s)||(u.setAt(r,t),e=!0):(s.lat()!==t.latitude||s.lng()!==t.longitude)&&(u.setAt(r,new google.maps.LatLng(t.latitude,t.longitude)),e=!0),r++;while(r<h)t=n[r],typeof t.lat=="function"&&typeof t.lng=="function"?u.push(t):u.push(new google.maps.LatLng(t.latitude,t.longitude)),e=!0,r++;while(r<c)u.pop(),e=!0,r++}return o=!1,e?f(u):void 0},a=function(n){var s,h,t,v,c,r,u,l,a;if(o=!0,u=i,h=!1,n){for(s,e.type==="Polygon"?s=n.coordinates[0]:e.type==="LineString"&&(s=n.coordinates),t=0,l=u.getLength(),c=s.length,v=Math.min(l,c),r=void 0;t<v;)a=u.getAt(t),r=s[t],(a.lat()!==r[1]||a.lng()!==r[0])&&(u.setAt(t,new google.maps.LatLng(r[1],r[0])),h=!0),t++;while(t<c)r=s[t],u.push(new google.maps.LatLng(r[1],r[0])),h=!0,t++;while(t<l)u.pop(),h=!0,t++}return o=!1,h?f(u):void 0},h,r["static"]||(h=t.isUndefined(e.type)?r.$watchCollection(u,y):r.$watch(u,a,!0)),function(){return c&&(c(),c=null),h?(h(),h=null):void 0}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChromeFixes",["$timeout",function(n){return{maybeRepaint:function(t){if(t)return t.style.opacity=.9,n(function(){return t.style.opacity=1})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps").service("uiGmapObjectIterators",function(){var t,n,r,u;return t=["length","forEach","map"],n=[],r=function(n){return n.forEac
1787h=function(r){return i.each(i.omit(n,t),function(n){if(!i.isFunction(n))return r(n)})},n},n.push(r),u=function(n){return n.map=function(r){return i.map(i.omit(n,t),function(n){if(!i.isFunction(n))return r(n)})},n},n.push(u),{slapMap:u,slapForEach:r,slapAll:function(t){return n.forEach(function(n){return n(t)}),t}}})}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.options.builders").service("uiGmapCommonOptionsBuilder",["uiGmapBaseObject","uiGmapLogger","uiGmapModelKey",function(r,u,f){return function(r){function f(){return this.watchProps=n(this.watchProps,this),this.buildOpts=n(this.buildOpts,this),f.__super__.constructor.apply(this,arguments)}return i(f,r),f.prototype.props=["clickable","draggable","editable","visible",{prop:"stroke",isColl:!0}],f.prototype.getCorrectModel=function(n){return t.isDefined(n!=null?n.model:void 0)?n.model:n},f.prototype.buildOpts=function(n,i,r){var o,e,f;if(n==null&&(n={}),r==null&&(r={}),!this.scope){u.error("this.scope not defined in CommonOptionsBuilder can not buildOpts");return}if(!this.gMap){u.error("this.map not defined in CommonOptionsBuilder can not buildOpts");return}return o=this.getCorrectModel(this.scope),f=this.scopeOrModelVal("stroke",this.scope,o),e=t.extend(n,this.DEFAULTS,{map:this.gMap,strokeColor:f!=null?f.color:void 0,strokeOpacity:f!=null?f.opacity:void 0,strokeWeight:f!=null?f.weight:void 0}),t.forEach(t.extend(r,{clickable:!0,draggable:!1,editable:!1,"static":!1,fit:!1,visible:!0,zIndex:0,icons:[]}),function(n){return function(r,u){var f;return f=i?i[u]:n.scopeOrModelVal(u,n.scope,o),e[u]=t.isUndefined(f)?r:o[u]}}(this)),e["static"]&&(e.editable=!1),e},f.prototype.watchProps=function(n){return n==null&&(n=this.props),n.forEach(function(n){return function(t){if(n.attrs[t]!=null||n.attrs[t!=null?t.prop:void 0]!=null)return(t!=null?t.isColl:void 0)?n.scope.$watchCollection(t.prop,n.setMyOptions):n.scope.$watch(t,n.setMyOptions)}}(this))},f}(f)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.options.builders").factory("uiGmapPolylineOptionsBuilder",["uiGmapCommonOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n,t){return i.__super__.buildOpts.call(this,{path:n},t,{geodesic:!1})},i}(t)}]).factory("uiGmapShapeOptionsBuilder",["uiGmapCommonOptionsBuilder",function(i){return function(i){function r(){return r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.buildOpts=function(n,i,u){var f,e;return e=this.getCorrectModel(this.scope),f=i?i.fill:this.scopeOrModelVal("fill",this.scope,e),n=t.extend(n,{fillColor:f!=null?f.color:void 0,fillOpacity:f!=null?f.opacity:void 0}),r.__super__.buildOpts.call(this,n,i,u)},r}(i)}]).factory("uiGmapPolygonOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n,t){return i.__super__.buildOpts.call(this,{path:n},t,{geodesic:!1})},i}(t)}]).factory("uiGmapRectangleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n,t){return i.__super__.buildOpts.call(this,{bounds:n},t)},i}(t)}]).factory("uiGmapCircleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n,t,r){return i.__super__.buildOpts.call(this,{center:n,radius:t},r)},i}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.options").service("uiGmapMarkerOptions",["uiGmapLogger","uiGmapGmapUtil",function(n,r){return i.extend(r,{createOptions:function(n,i,u,f){var e;return u==null&&(u={}),e=t.extend({},u,{position:u.position!=null?u.position:r.getCoords(n),visible:u.visible!=null?u.visible:r.validateCoords(n)}),(u.icon!=null||i!=null)&&(e=t.extend(e,{icon:u.icon!=null?u.icon:i})),f!=null&&(e.map=f),e},isLabel:function(n){return n==null?!1:n.labelContent!=null||n.labelAnchor!=null||n.labelClass!=null||n.labelStyle!=null||n.labelVisible!=null}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapBasePolyChildModel",["uiGmapLogger","$t
1787imeout","uiGmaparray-sync","uiGmapGmapUtil","uiGmapEventsHelper",function(u,f,e,o,s){return function(u,f){return function(u){function h(r){var u,o,h;this.scope=r.scope;this.attrs=r.attrs;this.gMap=r.gMap;this.defaults=r.defaults;this.model=r.model;o=r.gObjectChangeCb;this.isScopeModel=(h=r.isScopeModel)!=null?h:!1;this.clean=n(this.clean,this);this.isScopeModel&&(this.clonedModel=i.clone(this.model,!0));this.isDragging=!1;this.internalEvents={dragend:function(n){return function(){return i.defer(function(){return n.isDragging=!1})}}(this),dragstart:function(n){return function(){return n.isDragging=!0}}(this)};u=function(n){return function(){var i;if(!n.isDragging)return n.pathPoints=n.convertPathPoints(n.scope.path),n.gObject!=null&&n.clean(),n.scope.model!=null&&(i=n.scope),n.pathPoints.length>0&&(n.gObject=f(n.buildOpts(n.pathPoints,i))),n.gObject?(e(n.gObject.getPath(),n.scope,"path",function(t){return n.pathPoints=t,o!=null?o():void 0}),t.isDefined(n.scope.events)&&t.isObject(n.scope.events)&&(n.listeners=n.model?s.setEvents(n.gObject,n.scope,n.model):s.setEvents(n.gObject,n.scope,n.scope)),n.internalListeners=n.model?s.setEvents(n.gObject,{events:n.internalEvents},n.model):s.setEvents(n.gObject,{events:n.internalEvents},n.scope)):void 0}}(this);u();this.scope.$watch("path",function(n){return function(t,r){if(!i.isEqual(t,r)||!n.gObject)return u()}}(this),!0);!this.scope["static"]&&t.isDefined(this.scope.editable)&&this.scope.$watch("editable",function(n){return function(t,i){var r;if(t!==i)return t=!n.isFalse(t),(r=n.gObject)!=null?r.setEditable(t):void 0}}(this),!0);t.isDefined(this.scope.draggable)&&this.scope.$watch("draggable",function(n){return function(t,i){var r;if(t!==i)return t=!n.isFalse(t),(r=n.gObject)!=null?r.setDraggable(t):void 0}}(this),!0);t.isDefined(this.scope.visible)&&this.scope.$watch("visible",function(n){return function(t,i){var r;return t!==i&&(t=!n.isFalse(t)),(r=n.gObject)!=null?r.setVisible(t):void 0}}(this),!0);t.isDefined(this.scope.geodesic)&&this.scope.$watch("geodesic",function(n){return function(t,i){var r;if(t!==i)return t=!n.isFalse(t),(r=n.gObject)!=null?r.setOptions(n.buildOpts(n.gObject.getPath())):void 0}}(this),!0);t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.weight)&&this.scope.$watch("stroke.weight",function(n){return function(t,i){var r;if(t!==i)return(r=n.gObject)!=null?r.setOptions(n.buildOpts(n.gObject.getPath())):void 0}}(this),!0);t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.color)&&this.scope.$watch("stroke.color",function(n){return function(t,i){var r;if(t!==i)return(r=n.gObject)!=null?r.setOptions(n.buildOpts(n.gObject.getPath())):void 0}}(this),!0);t.isDefined(this.scope.stroke)&&t.isDefined(this.scope.stroke.opacity)&&this.scope.$watch("stroke.opacity",function(n){return function(t,i){var r;if(t!==i)return(r=n.gObject)!=null?r.setOptions(n.buildOpts(n.gObject.getPath())):void 0}}(this),!0);t.isDefined(this.scope.icons)&&this.scope.$watch("icons",function(n){return function(t,i){var r;if(t!==i)return(r=n.gObject)!=null?r.setOptions(n.buildOpts(n.gObject.getPath())):void 0}}(this),!0);this.scope.$on("$destroy",function(n){return function(){return n.clean(),n.scope=null}}(this));t.isDefined(this.scope.fill)&&t.isDefined(this.scope.fill.color)&&this.scope.$watch("fill.color",function(n){return function(t,i){if(t!==i)return n.gObject.setOptions(n.buildOpts(n.gObject.getPath()))}}(this));t.isDefined(this.scope.fill)&&t.isDefined(this.scope.fill.opacity)&&this.scope.$watch("fill.opacity",function(n){return function(t,i){if(t!==i)return n.gObject.setOptions(n.buildOpts(n.gObject.getPath()))}}(this));t.isDefined(this.scope.zIndex)&&this.scope.$watch("zIndex",function(n){return function(t,i){if(t!==i)return n.gObject.setOptions(n.buildOpts(n.gObject.getPath()))}}(this))}return r(h,u),h.include(o),h.prototype.clean=function(){var n;return s.removeEvents(this.listeners),s.removeEvents(this.internalListeners),(n=this.gObject)!=null&&n.setMap(null),this.gObject=null},h}(u)}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapDrawFreeHandChildModel",["uiGmapLogger","$q",function(n,t){var r;return r=function(n,t,i){var u,r;return r=new google.maps.Polyline({map:n,clickable:!1}),u=google.maps.event.addListener(n,"mousemove",function(n){return r.getPath().push(n.latLng)}),google.maps.event.addListenerOnce(n,"mouseup",function(){var f;return google.maps.event.removeListener(u),f=r.getPath(),r.setMap(null),t.push(new google.maps.Polygon({map:n,path:f})),r=null,google.maps.event.clearListeners(n.getDiv(),"mousedown"),i()}),void 0},function(u,f){var e,o;return this.map=u,e=function(t){return function(){var i;return i={draggable:!1,disableDefaultUI:!0,scrollwheel:!1,disableDoubleClickZoom:!1},n.info("disabling map move"),t.map.setOptions(i)}}(this),o=function(n){return function(){var t,r;return t={draggable:!0,disableDefaultUI:!1,scrollwheel:!0,disableDoubleClickZoom:!0},(r=n.deferred)!=null&&r.resolve(),i.defer(function(){return n.map.setOptions(i.extend(t,f.options))})}}(this),this.engage=function(i){return function(u){return i.polys=u,i.deferred=t.defer(),e(),n.info("DrawFreeHandChildModel is engaged (drawing)."),google.maps.event.addDomListener(i.map.getDiv(),"mousedown",function(){return r(i.map,i.polys,o)}),i.deferred.promise}}(this),this}}])}.call(this),function(){var r=function(n,t){return function(){return n.apply(t,arguments)}},u=function(n,t){function r(){this.constructor=n}for(var i in t)f.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},f={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapMarkerChildModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger","uiGmapEventsHelper","uiGmapPropertyAction","uiGmapMarkerOptions","uiGmapIMarker","uiGmapMarkerManager","uiGmapPromise",function(f,e,o,s,h,c,l,a,v){return function(f){function y(n){this.internalEvents=r(this.internalEvents,this);this.setLabelOptions=r(this.setLabelOptions,this);this.setOptions=r(this.setOptions,this);this.setIcon=r(this.setIcon,this);this.setCoords=r(this.setCoords,this);this.isNotValid=r(this.isNotValid,this);this.maybeSetScopeValue=r(this.maybeSetScopeValue,this);this.createMarker=r(this.createMarker,this);this.setMyScope=r(this.setMyScope,this);this.updateModel=r(this.updateModel,this);this.handleModelChanges=r(this.handleModelChanges,this);this.destroy=r(this.destroy,this);var u,f,e,s,c,l,t;t=n.scope;this.model=n.model;this.keys=n.keys;this.gMap=n.gMap;this.defaults=(f=n.defaults)!=null?f:{};this.doClick=n.doClick;this.gManager=n.gManager;this.doDrawSelf=(e=n.doDrawSelf)!=null?e:!0;this.trackModel=(s=n.trackModel)!=null?s:!0;this.needRedraw=(c=n.needRedraw)!=null?c:!1;this.isScopeModel=(l=n.isScopeModel)!=null?l:!1;this.isScopeModel&&(this.clonedModel=i.clone(this.model,!0));this.deferred=v.defer();i.each(this.keys,function(n){return function(t,r){var u;return u=n.keys[r],u!=null&&!i.isFunction(u)&&i.isString(u)?n[r+"Key"]=u:void 0}}(this));this.idKey=this.idKeyKey||"id";this.model[this.idKey]!=null&&(this.id=this.model[this.idKey]);y.__super__.constructor.call(this,t);this.scope.getGMarker=function(n){return function(){return n.gObject}}(this);this.firstTime=!0;this.trackModel?(this.scope.model=this.model,this.scope.$watch("model",function(n){return function(t,i){if(t!==i)return n.handleModelChanges(t,i)}}(this),!0)):(u=new h(function(n){return function(r){return i.isFunction(r)&&(r="all"),n.firstTime?void 0:n.setMyScope(r,t)}}
1787(this),!1),i.each(this.keys,function(n,i){return t.$watch(i,u.sic(i),!0)}));this.scope.$on("$destroy",function(n){return function(){return p(n)}}(this));this.createMarker(this.model);o.info(this)}var p;return u(y,f),y.include(e),y.include(s),y.include(c),p=function(n){if((n!=null?n.gObject:void 0)!=null&&(n.removeEvents(n.externalListeners),n.removeEvents(n.internalListeners),n!=null?n.gObject:void 0))return n.removeFromManager&&n.gManager.remove(n.gObject),n.gObject.setMap(null),n.gObject=null},y.prototype.destroy=function(n){return n==null&&(n=!0),this.removeFromManager=n,this.scope.$destroy()},y.prototype.handleModelChanges=function(n,t){var r,u,f;return r=this.getChanges(n,t,l.keys),this.firstTime?void 0:(u=0,f=i.keys(r).length,i.each(r,function(i){return function(r,e){var o;return u+=1,o=f===u,i.setMyScope(e,n,t,!1,!0,o),i.needRedraw=!0}}(this)))},y.prototype.updateModel=function(n){return this.isScopeModel&&(this.clonedModel=i.clone(n,!0)),this.setMyScope("all",n,this.model)},y.prototype.renderGMarker=function(t,i){var r,u,f;if(t==null&&(t=!0),r=this.getProp("coords",this.scope,this.model),((f=this.gManager)!=null?f.isSpiderfied:void 0)!=null&&(u=this.gManager.isSpiderfied()),r!=null){if(!this.validateCoords(r)){o.debug("MarkerChild does not have coords yet. They may be defined later.");return}if(i!=null&&i(),t&&this.gObject&&this.gManager.add(this.gObject),u)return this.gManager.markerSpiderfier.spiderListener(this.gObject,n.event)}else if(t&&this.gObject)return this.gManager.remove(this.gObject)},y.prototype.setMyScope=function(n,t,r,u,f){var e;r==null&&(r=void 0);u==null&&(u=!1);f==null&&(f=!0);t==null?t=this.model:this.model=t;this.gObject||(this.setOptions(this.scope,f),e=!0);switch(n){case"all":return i.each(this.keys,function(n){return function(i,e){return n.setMyScope(e,t,r,u,f)}}(this));case"icon":return this.maybeSetScopeValue({gSetter:this.setIcon,doDraw:f});case"coords":return this.maybeSetScopeValue({gSetter:this.setCoords,doDraw:f});case"options":if(!e)return this.createMarker(t,r,u,f)}},y.prototype.createMarker=function(n,t,i,r){return t==null&&(t=void 0),i==null&&(i=!1),r==null&&(r=!0),this.maybeSetScopeValue({gSetter:this.setOptions,doDraw:r}),this.firstTime=!1},y.prototype.maybeSetScopeValue=function(n){var t,i,r;return i=n.gSetter,t=(r=n.doDraw)!=null?r:!0,i!=null&&i(this.scope,t),this.doDrawSelf&&t?this.gManager.draw():void 0},y.prototype.isNotValid=function(n,t){var i,r;return t==null&&(t=!0),r=t?this.gObject===void 0:!1,i=this.trackModel?!1:n.$id!==this.scope.$id,i||r},y.prototype.setCoords=function(n,t){if(t==null&&(t=!0),!this.isNotValid(n)&&this.gObject!=null)return this.renderGMarker(t,function(t){return function(){var i,u,r;if(u=t.getProp("coords",n,t.model),i=t.getCoords(u),r=t.gObject.getPosition(),r==null||i==null||i.lng()!==r.lng()||i.lat()!==r.lat())return t.gObject.setPosition(i),t.gObject.setVisible(t.validateCoords(u))}}(this))},y.prototype.setIcon=function(n,t){if(t==null&&(t=!0),!this.isNotValid(n)&&this.gObject!=null)return this.renderGMarker(t,function(t){return function(){var i,r,u;if(u=t.gObject.getIcon(),r=t.getProp("icon",n,t.model),u!==r)return t.gObject.setIcon(r),i=t.getProp("coords",n,t.model),t.gObject.setPosition(t.getCoords(i)),t.gObject.setVisible(t.validateCoords(i))}}(this))},y.prototype.setOptions=function(n,t){var r;if(t==null&&(t=!0),!this.isNotValid(n,!1)){if(this.renderGMarker(t,function(t){return function(){var r,u,f;return u=t.getProp("coords",n,t.model),f=t.getProp("icon",n,t.model),r=t.getProp("options",n,t.model),t.opts=t.createOptions(u,f,r),t.isLabel(t.gObject)!==t.isLabel(t.opts)&&t.gObject!=null&&(t.gManager.remove(t.gObject),t.gObject=void 0),t.gObject!=null&&t.gObject.setOptions(t.setLabelOptions(t.opts)),t.gObject||(t.isLabel(t.opts)?t.gObject=new MarkerWithLabel(t.setLabelOptions(t.opts)):t.opts.content?(t.gObject=new RichMarker(t.opts),t.gObject.getIcon=t.gObject.getContent,t.gObject.setIcon=t.gObject.setContent):t.gObject=new google.maps.Marker(t.opts),i.extend(t.gObject,{model:t.model})),t.externalListeners&&t.removeEvents(t.externalListeners),t.internalListeners&&t.removeEvents(t.internalListeners),t.externalListeners=t.setEvents(t.gObject,t.scope,t.model,["dragend"]),t.internalListeners=t.setEvents(t.gObject,{events:t.internalEvents(),$evalAsync:function(){}}
1787,t.model),t.id!=null?t.gObject.key=t.id:void 0}}(this)),this.gObject&&(this.gObject.getMap()||this.gManager.type!==a.type))this.deferred.resolve(this.gObject);else{if(!this.gObject)return this.deferred.reject("gObject is null");((r=this.gObject)!=null?r.getMap():void 0)&&this.gManager.type===a.type||(o.debug("gObject has no map yet"),this.deferred.resolve(this.gObject))}if(this.model[this.fitKey])return this.gManager.fit()}},y.prototype.setLabelOptions=function(n){return n.labelAnchor&&(n.labelAnchor=this.getLabelPositionPoint(n.labelAnchor)),n},y.prototype.internalEvents=function(){return{dragend:function(n){return function(t,i,r,u){var f,e,o;return e=n.trackModel?n.scope.model:n.model,o=n.setCoordsFromEvent(n.modelOrKey(e,n.coordsKey),n.gObject.getPosition()),e=n.setVal(r,n.coordsKey,o),f=n.scope.events,(f!=null?f.dragend:void 0)!=null&&f.dragend(t,i,e,u),n.scope.$apply()}}(this),click:function(n){return function(i,r,u,f){var e;return e=n.getProp("click",n.scope,n.model),n.doClick&&t.isFunction(e)?n.scope.$evalAsync(e(i,r,n.model,f)):void 0}}(this)}},y}(f)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygonChildModel",["uiGmapBasePolyChildModel","uiGmapPolygonOptionsBuilder",function(t,i){var r,u;return u=function(n){return new google.maps.Polygon(n)},r=new t(i,u),function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i}(r)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylineChildModel",["uiGmapBasePolyChildModel","uiGmapPolylineOptionsBuilder",function(t,i){var r,u;return u=function(n){return new google.maps.Polyline(n)},r=t(i,u),function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i}(r)}])}.call(this),function(){var r=function(n,t){return function(){return n.apply(t,arguments)}},u=function(n,t){function r(){this.constructor=n}for(var i in t)f.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},f={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapWindowChildModel",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapLogger","$compile","$http","$templateCache","uiGmapChromeFixes","uiGmapEventsHelper",function(f,e,o,s,h,c,l,a){return function(f){function v(n){this.updateModel=r(this.updateModel,this);this.destroy=r(this.destroy,this);this.remove=r(this.remove,this);this.getLatestPosition=r(this.getLatestPosition,this);this.hideWindow=r(this.hideWindow,this);this.showWindow=r(this.showWindow,this);this.handleClick=r(this.handleClick,this);this.watchOptions=r(this.watchOptions,this);this.watchCoords=r(this.watchCoords,this);this.createGWin=r(this.createGWin,this);this.watchElement=r(this.watchElement,this);this.watchAndDoShow=r(this.watchAndDoShow,this);this.doShow=r(this.doShow,this);var t,u,f,e,s;this.model=(u=n.model)!=null?u:{};this.scope=n.scope;this.opts=n.opts;this.isIconVisibleOnClick=n.isIconVisibleOnClick;this.gMap=n.gMap;this.markerScope=n.markerScope;this.element=n.element;this.needToManualDestroy=(f=n.needToManualDestroy)!=null?f:!1;this.markerIsVisibleAfterWindowClose=(e=n.markerIsVisibleAfterWindowClose)!=null?e:!0;this.isScopeModel=(s=n.isScopeModel)!=null?s:!1;this.isScopeModel&&(this.clonedModel=i.clone(this.model,!0));this.getGmarker=function(){var n,t;if(((n=this.markerScope)!=null?n.getGMarker:void 0)!=null)return(t=this.markerScope)!=null?t.getGMarker():void 0};this.listeners=[];this.createGWin();t=this.getGmarker();t!=null&&t.setClickable(!0);this.watchElement();this.watchOptions();this.watchCoords();this.watchAndDoShow();this.scope.$on("$destroy",function(n){return function(){return n.destroy()}}(this));o.info(this)}return u(v,f),v.include(e),v.include(a),v.prototype.doShow=function(n){return this.scope.show===!0||n?this.showWindow():this.hideWindow()},v.prototype.watchAndDoShow=function(){return this.model.show!=null&&(this.scope.show=this.model.show),this.scope.$watch("show",this.doShow,!0),this.doShow()},v.prototype.watchElement=function(){return this.scope.$watch(function(n){return function(){var t,i;if((n.element||n.html))return n.html!==n.element.html()&&n.gObject?((t=n.opts)!=null&&(t.content=void 0),i=n.gObject.isOpen(),n.remove(),n.createGWin(i)):void 0}}(this))},v.prototype.createGWin=function(t){var f,u,r,e,o;return t==null&&(t=!1),r=this.getGmarker(),u={}
1787,this.opts!=null&&(this.scope.coords&&(this.opts.position=this.getCoords(this.scope.coords)),u=this.opts),this.element&&(this.html=i.isObject(this.element)?this.element.html():this.element),f=this.scope.options?this.scope.options:u,this.opts=this.createWindowOptions(r,this.markerScope||this.scope,this.html,f),this.opts!=null?(this.gObject||(this.gObject=this.opts.boxClass&&n.InfoBox&&typeof n.InfoBox=="function"?new n.InfoBox(this.opts):new google.maps.InfoWindow(this.opts),this.listeners.push(google.maps.event.addListener(this.gObject,"domready",function(){return l.maybeRepaint(this.content)})),this.listeners.push(google.maps.event.addListener(this.gObject,"closeclick",function(n){return function(){return r&&(r.setAnimation(n.oldMarkerAnimation),n.markerIsVisibleAfterWindowClose&&i.delay(function(){return r.setVisible(!1),r.setVisible(n.markerIsVisibleAfterWindowClose)},250)),n.gObject.close(),n.model.show=!1,n.scope.closeClick!=null?n.scope.$evalAsync(n.scope.closeClick()):n.scope.$evalAsync()}}(this)))),this.gObject.setContent(this.opts.content),this.handleClick(((e=this.scope)!=null?(o=e.options)!=null?o.forceClick:void 0:void 0)||t),this.doShow(this.gObject.isOpen())):void 0},v.prototype.watchCoords=function(){var n;return n=this.markerScope!=null?this.markerScope:this.scope,n.$watch("coords",function(n){return function(t,i){var r;if(t!==i){if(t==null)n.hideWindow();else if(!n.validateCoords(t)){o.error("WindowChildMarker cannot render marker as scope.coords as no position on marker: "+JSON.stringify(n.model));return}if(r=n.getCoords(t),n.doShow(),n.gObject.setPosition(r),n.opts)return n.opts.position=r}}}(this),!0)},v.prototype.watchOptions=function(){return this.scope.$watch("options",function(n){return function(t,i){if(t!==i&&(n.opts=t,n.gObject!=null)){if(n.gObject.setOptions(n.opts),n.opts.visible!=null&&n.opts.visible)return n.showWindow();if(n.opts.visible!=null)return n.hideWindow()}}}(this),!0)},v.prototype.handleClick=function(n){var i,t;if(this.gObject!=null)return t=this.getGmarker(),i=function(n){return function(){return n.gObject==null&&n.createGWin(),n.showWindow(),t!=null?(n.initialMarkerVisibility=t.getVisible(),n.oldMarkerAnimation=t.getAnimation(),t.setVisible(n.isIconVisibleOnClick)):void 0}}(this),n&&i(),t?this.listeners=this.listeners.concat(this.setEvents(t,{events:{click:i}},this.model)):void 0},v.prototype.showWindow=function(){var r,i,n;if(this.gObject!=null)return n=null,i=function(n){return function(){var i,t,r;if(!n.gObject.isOpen()){if(t=n.getGmarker(),n.gObject!=null&&n.gObject.getPosition!=null&&(r=n.gObject.getPosition()),t&&(r=t.getPosition()),!r)return;if(n.gObject.open(n.gMap,t),i=n.gObject.isOpen(),n.model.show!==i)return n.model.show=i}}}(this),this.scope.templateUrl?h.get(this.scope.templateUrl,{cache:c}).then(function(r){return function(u){var f;return n=r.scope.$new(),t.isDefined(r.scope.templateParameter)&&(n.parameter=r.scope.templateParameter),f=s(u.data)(n),r.gObject.setContent(f[0]),i()}}(this)):this.scope.template?(n=this.scope.$new(),t.isDefined(this.scope.templateParameter)&&(n.parameter=this.scope.templateParameter),r=s(this.scope.template)(n),this.gObject.setContent(r[0]),i()):i(),this.scope.$on("destroy",function(){return n.$destroy()})},v.prototype.hideWindow=function(){if(this.gObject!=null&&this.gObject.isOpen())return this.gObject.close()},v.prototype.getLatestPosition=function(n){var t;if(t=this.getGmarker(),this.gObject==null||t==null||n){if(n)return this.gObject.setPosition(n)}else return this.gObject.setPosition(t.getPosition())},v.prototype.remove=function(){return this.hideWindow(),this.removeEvents(this.listeners),this.listeners.length=0,delete this.gObject,delete this.opts},v.prototype.destroy=function(n){var t;return n==null&&(n=!1),this.remove(),this.scope!=null&&!((t=this.scope)!=null?t.$$destroyed:void 0)&&(this.needToManualDestroy||n)?this.scope.$destroy():void 0},v.prototype.updateModel=function(n){return this.isScopeModel&&(this.clonedModel=i.clone(n,!0)),i.extend(this.model,this.clonedModel||n)},v}(f)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapBasePolysParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmap_async","uiGmapPromise","uiGmapFitHelper",function(u,f,e,o,s,h,c,l){return function(u,a,v){return function(e){function y(t,r,e,o,h){this.element=r;this.attrs=e;this.gMap=o;this.defaults=h;this.maybeFit=n(this.maybeFit,this);this.createChild=n(this.createChild,this);this.pieceMeal=n(this.pieceMeal,this);this.createAllNew=n(this.createAllNew,this);this.watchIdKey=n(this.watchIdKey,this);this.createChildScopes=n(this.createChildScopes,this);this.watchDestroy=n(this.watchDestroy,this);this.onDestroy=n(this.onDestroy,this);this.rebuildAll=n(this.rebuildAll,this);this.doINeedToWipe=n(this.doINeedToWipe,this);this.watchModels=n(this.watchModels,this);y.__super__.constructor.call(this,t);this["interface"]=u;this.$log=f;this.plurals=new s;i.each(u.scopeKeys,function(n){return function(t){return n[t+"Key"]=void 0}}(this));this.models=void 0;this.firstTime=!0;this.$log.info(this);this.createChildScopes()}return r(y,e),y.include(o),y.prototype.watchModels=function(n){return n.$watch("models",function(t){return function(i,r){if(i!==r)return t.doINeedToWipe(i)||n.doRebuildAll?t.rebuildAll(n,!0,
1787!0):t.createChildScopes(!1)}}(this),!0)},y.prototype.doINeedToWipe=function(n){var t;return t=n!=null?n.length===0:!0,this.plurals.length>0&&t},y.prototype.rebuildAll=function(n,t,i){return this.onDestroy(i).then(function(n){return function(){if(t)return n.createChildScopes()}}(this))},y.prototype.onDestroy=function(){return y.__super__.onDestroy.call(this,this.scope),h.promiseLock(this,c.promiseTypes["delete"],void 0,void 0,function(n){return function(){return h.each(n.plurals.values(),function(n){return n.destroy(!0)},h.chunkSizeFrom(n.scope.cleanchunk,!1)).then(function(){var t;if((t=n.plurals)!=null)return t.removeAll()})}}(this))},y.prototype.watchDestroy=function(n){return n.$on("$destroy",function(t){return function(){return t.rebuildAll(n,!1,!0)}}(this))},y.prototype.createChildScopes=function(n){if(n==null&&(n=!0),t.isUndefined(this.scope.models)){this.$log.error("No models to create "+v+"s from! I Need direct models!");return}if(this.gMap!=null&&this.scope.models!=null)return this.watchIdKey(this.scope),n?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)},y.prototype.watchIdKey=function(n){return this.setIdKey(n),n.$watch("idKey",function(t){return function(i,r){if(i!==r&&i==null)return t.idKey=i,t.rebuildAll(n,!0,!0)}}(this))},y.prototype.createAllNew=function(n,t){var i;if(t==null&&(t=!1),this.models=n.models,this.firstTime&&(this.watchModels(n),this.watchDestroy(n)),!this.didQueueInitPromise(this,n))return i=null,h.promiseLock(this,c.promiseTypes.create,"createAllNew",function(n){return i=n},function(t){return function(){return h.map(n.models,function(n){var r;return r=t.createChild(n,t.gMap),i&&(f.debug("createNew should fall through safely"),r.isEnabled=!1),i,r.pathPoints.getArray()},h.chunkSizeFrom(n.chunk)).then(function(n){return t.maybeFit(n),t.firstTime=!1})}}(this))},y.prototype.pieceMeal=function(n,t){var u,r;if(t==null&&(t=!0),!n.$$destroyed)return u=null,r=null,this.models=n.models,n!=null&&this.modelsLength()&&this.plurals.length?h.promiseLock(this,c.promiseTypes.update,"pieceMeal",function(n){return u=n},function(t){return function(){return c.promise(function(){return t.figureOutState(t.idKey,n,t.plurals,t.modelKeyComparison)}).then(function(f){return r=f,r.updates.length&&h.each(r.updates,function(n){return i.extend(n.child.scope,n.model),n.child.model=n.model}),h.each(r.removals,function(n){if(n!=null)return n.destroy(),t.plurals.remove(n.model[t.idKey]),u},h.chunkSizeFrom(n.chunk))}).then(function(){return h.each(r.adds,function(n){return u&&f.debug("pieceMeal should fall through safely"),t.createChild(n,t.gMap),u},h.chunkSizeFrom(n.chunk)).then(function(){return t.maybeFit()})})}}(this)):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0))},y.prototype.createChild=function(n,t){var r,i;if(i=this.scope.$new(!1),this.setChildScope(u.scopeKeys,i,n),i.$watch("model",function(n){return function(t,r){if(t!==r)return n.setChildScope(u.scopeKeys,i,t)}}(this),!0),i["static"]=this.scope["static"],r=new a({isScopeModel:!0,scope:i,attrs:this.attrs,gMap:t,defaults:this.defaults,model:n,gObjectChangeCb:function(n){return function(){return n.maybeFit()}}(this)}),n[this.idKey]==null){this.$log.error(v+" model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key.");return}return this.plurals.put(n[this.idKey],r),r},y.prototype.maybeFit=function(n){return n==null&&(n=this.plurals.map(function(n){return n.pathPoints})),this.scope.fit?(n=i.flatten(n),l.fit(n,this.gMap)):void 0},y}(e)}}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapCircleParentModel",["uiGmapLogger","$timeout","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapCircleOptionsBuilder",function(r,u,f,e,o){var s;return s=function(n,t){return n.settingFromDirective=!0,t(),u(function(){return n.settingFromDirective=!1})},function(u){function o(n,u,e,o,h){var a,c,l;this.attrs=e;this.gMap=o;this.DEFAULTS=h;this.scope=n;l=null;a=function(n){return function(){return l=null,n.listeners!=null?(n.removeEvents(n.listeners),n.listeners=void 0):void 0}}(this);c=new google.maps.Circle(this.buildOpts(f.getCoords(n.center),n.radius));this.setMyOptions=function(t){return function(r,u){if(!n.settingFromDirective)return(i.isEqual(r,u)&&r===u&&(r!=null&&u!=null?r.coordinates===u.coordinates:!0))?void 0:c.setOptions(t.buildOpts(f.getCoords(n.center),n.radius))}}(this);this.props=this.props.concat([{prop:"center",isColl:!0},{prop:"fill",isColl:!0},"radius","zIndex"]);this.watchProps();this.scope.control!=null&&(this.scope.control.getCircle=function(){return c});a();this.listeners=this.setEvents(c,n,n,["radius_changed"])||[];
1787this.listeners.push(google.maps.event.addListener(c,"radius_changed",function(){var r,u;if(r=c.getRadius(),r!==l)return l=r,u=function(){return s(n,function(){var t,u;return r!==n.radius&&(n.radius=r),((t=n.events)!=null?t.radius_changed:void 0)&&i.isFunction((u=n.events)!=null?u.radius_changed:void 0)?n.events.radius_changed(c,"radius_changed",n,arguments):void 0})},t.mock?u():n.$evalAsync(function(){return u()})}));this.listeners.push(google.maps.event.addListener(c,"center_changed",function(){return n.$evalAsync(function(){return s(n,function(){return t.isDefined(n.center.type)?(n.center.coordinates[1]=c.getCenter().lat(),n.center.coordinates[0]=c.getCenter().lng()):(n.center.latitude=c.getCenter().lat(),n.center.longitude=c.getCenter().lng())})})}));n.$on("$destroy",function(){return a(),c.setMap(null)});r.info(this)}return n(o,u),o.include(f),o.include(e),o}(o)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapDrawingManagerParentModel",["uiGmapLogger","$timeout","uiGmapBaseObject","uiGmapEventsHelper",function(t,r,u,f){return function(t){function r(n,t,r,u){var f,e;this.scope=n;this.attrs=r;this.map=u;f=new google.maps.drawing.DrawingManager(this.scope.options);f.setMap(this.map);e=void 0;this.scope.control!=null&&(this.scope.control.getDrawingManager=function(){return f});!this.scope["static"]&&this.scope.options&&this.scope.$watch("options",function(n){if(f!=null)return f.setOptions(n)},!0);this.scope.events!=null&&(e=this.setEvents(f,this.scope,this.scope),this.scope.$watch("events",function(n){return function(t,r){if(!i.isEqual(t,r))return e!=null&&n.removeEvents(e),e=n.setEvents(f,n.scope,n.scope)}}(this)));this.scope.$on("$destroy",function(n){return function(){return e!=null&&n.removeEvents(e),f.setMap(null),f=null}}(this))}return n(r,t),r.include(f),r}(u)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIMarkerParentModel",["uiGmapModelKey","uiGmapLogger",function(u,f){return function(u){function e(i,r,u,o){if(this.scope=i,this.element=r,this.attrs=u,this.map=o,this.onWatch=n(this.onWatch,this),this.watch=n(this.watch,this),this.validateScope=n(this.validateScope,this),e.__super__.constructor.call(this,this.scope),this.$log=f,!this.validateScope(this.scope))throw new String("Unable to construct IMarkerParentModel due to invalid scope");this.doClick=t.isDefined(this.attrs.click);this.scope.options!=null&&(this.DEFAULTS=this.scope.options);this.watch("coords",this.scope);this.watch("icon",this.scope);this.watch("options",this.scope);this.scope.$on("$destroy",function(n){return function(){return n.onDestroy(n.scope)}}(this))}return r(e,u),e.prototype.DEFAULTS={},e.prototype.validateScope=function(n){var t;return n==null?(this.$log.error(this.constructor.name+": invalid scope used"),!1):(t=n.coords!=null,!t)?(this.$log.error(this.constructor.name+": no valid coords attribute found"),!1):t},e.prototype.watch=function(n,t,r){return r==null&&(r=!0),t.$watch(n,function(r){return function(u,f){if(!i.isEqual(u,f))return r.onWatch(n,t,u,f)}}(this),r)},e.prototype.onWatch=function(){},e}(u)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIWindowParentModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger",function(t,i,r){return function(t){function u(n,t,i,f,e,o,s,h){u.__super__.constructor.call(this,n);this.$log=r;this.$timeout=e;this.$compile=o;this.$http=s;this.$templateCache=h;this.DEFAULTS={};n.options!=null&&(this.DEFAULTS=n.options)}return n(u,t),u.include(i),u.prototype.getItem=function(n,t,i){return t==="models"?n[t][i]:n[t].get(i)},u}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapLayerParentModel",["uiGmapBaseObject","uiGmapLogger","$t
1787imeout",function(r,u){return function(r){function f(i,r,f,e,o,s){if(this.scope=i,this.element=r,this.attrs=f,this.gMap=e,this.onLayerCreated=o!=null?o:void 0,this.$log=s!=null?s:u,this.createGoogleLayer=n(this.createGoogleLayer,this),this.attrs.type==null){this.$log.info("type attribute for the layer directive is mandatory. Layer creation aborted!!");return}this.createGoogleLayer();this.doShow=!0;t.isDefined(this.attrs.show)&&(this.doShow=this.scope.show);this.doShow&&this.gMap!=null&&this.gObject.setMap(this.gMap);this.scope.$watch("show",function(n){return function(t,i){if(t!==i)return n.doShow=t,t?n.gObject.setMap(n.gMap):n.gObject.setMap(null)}}(this),!0);this.scope.$watch("options",function(n){return function(t,i){if(t!==i&&n.doShow)return n.gObject.setOptions(t)}}(this),!0);this.scope.$on("$destroy",function(n){return function(){return n.gObject.setMap(null)}}(this))}return i(f,r),f.prototype.createGoogleLayer=function(){var n;return this.gObject=this.attrs.options==null?this.attrs.namespace===void 0?new google.maps[this.attrs.type]:new google.maps[this.attrs.namespace][this.attrs.type]:this.attrs.namespace===void 0?new google.maps[this.attrs.type](this.scope.options):new google.maps[this.attrs.namespace][this.attrs.type](this.scope.options),this.gObject!=null&&this.doShow&&this.gObject.setMap(this.gMap),this.gObject!=null&&this.onLayerCreated!=null?typeof(n=this.onLayerCreated(this.scope,this.gObject))=="function"?n(this.gObject):void 0:void 0},f}(r)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypeParentModel",["uiGmapBaseObject","uiGmapLogger",function(u,f){return function(u){function e(r,u,e,o,s,h,c){var l,a,v,y;if(this.scope=r,this.element=u,this.attrs=e,this.gMap=o,this.$log=s!=null?s:f,this.childModel=h,this.propMap=c,this.refreshShown=n(this.refreshShown,this),this.hideOverlay=n(this.hideOverlay,this),this.showOverlay=n(this.showOverlay,this),this.refreshMapType=n(this.refreshMapType,this),this.createMapType=n(this.createMapType,this),this.scope.options==null){this.$log.info("options attribute for the map-type directive is mandatory. Map type creation aborted!!");return}this.id=this.gMap.overlayMapTypesCount=this.gMap.overlayMapTypesCount+1||0;this.doShow=!0;this.createMapType();this.refreshShown();this.doShow&&this.gMap!=null&&this.showOverlay();a=function(n){return function(){return n.childModel[n.attrs.show]}}(this);y=this.childModel?a:"show";this.scope.$watch(y,function(n){return function(t,i){if(t!==i)return n.doShow=t,t?n.showOverlay():n.hideOverlay()}}(this));l=function(n){return function(){return n.childModel[n.attrs.options]}}(this);v=this.childModel?l:"options";this.scope.$watchCollection(v,function(n){return function(t,r){var u,f;if(!i.isEqual(t,r)&&(f=["tileSize","maxZoom","minZoom","name","alt"],u=i.some(f,function(n){return!r||!t||!i.isEqual(t[n],r[n])}),u))return n.refreshMapType()}}(this));t.isDefined(this.attrs.refresh)&&this.scope.$watch("refresh",function(n){return function(t,r){if(!i.isEqual(t,r))return n.refreshMapType()}}(this),!0);this.scope.$on("$destroy",function(n){return function(){return n.hideOverlay(),n.mapType=null}}(this))}return r(e,u),e.prototype.createMapType=function(){var r,i,n;if(n=this.childModel?this.attrs.options?this.childModel[this.attrs.options]:this.childModel:this.scope.options,n.getTile!=null)this.mapType=n;else if(n.getTileUrl!=null)this.mapType=new google.maps.ImageMapType(n);else{this.$log.info("options should provide either getTile or getTileUrl methods. Map type creation aborted!!");return}return i=this.attrs.id?this.childModel?this.attrs.id:"id":void 0,r=i?this.childModel?this.childModel[i]:this.scope[i]:void 0,r&&(this.gMap.mapTypes.set(r,this.mapType),t.isDefined(this.attrs.show)||(this.doShow=!1)),this.mapType.layerId=this.id,this.childModel&&t.isDefined(this.scope.index)?this.propMap.put(this.mapType.layerId,this.scope.index):void 0},e.prototype.refreshMapType=function(){return this.hideOverlay(),this.mapType=null,this.createMapType(),this.doShow&&this.gMap!=null?this.showOverlay():void 0},e.prototype.showOverlay=function(){var n;if(t.isDefined(this.scope.index))if(n=!1,this.gMap.overlayMapTypes.getLength()){if
1787(this.gMap.overlayMapTypes.forEach(function(i){return function(r,u){var f;n||(f=i.propMap.get(r.layerId.toString()),(f>i.scope.index||!t.isDefined(f))&&(n=!0,i.gMap.overlayMapTypes.insertAt(u,i.mapType)))}}(this)),!n)return this.gMap.overlayMapTypes.push(this.mapType)}else return this.gMap.overlayMapTypes.push(this.mapType);else return this.gMap.overlayMapTypes.push(this.mapType)},e.prototype.hideOverlay=function(){var n;return n=!1,this.gMap.overlayMapTypes.forEach(function(t){return function(i,r){n||i.layerId!==t.id||(n=!0,t.gMap.overlayMapTypes.removeAt(r))}}(this))},e.prototype.refreshShown=function(){return this.doShow=t.isDefined(this.attrs.show)?this.childModel?this.childModel[this.attrs.show]:this.scope.show:!0},e}(u)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypesParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapMapTypeParentModel","uiGmapPropMap",function(t,i,r,u){return function(t){function f(n,t,f,e,o){var s;if(this.scope=n,this.element=t,this.attrs=f,this.gMap=e,this.$log=o!=null?o:i,this.attrs.mapTypes==null){this.$log.info("layers attribute for the map-types directive is mandatory. Map types creation aborted!!");return}s=new u;this.scope.mapTypes.forEach(function(n){return function(t,i){var u,f;f={options:n.scope.options,show:n.scope.show,refresh:n.scope.refresh};u=n.scope.$new();u.index=i;new r(u,null,f,n.gMap,n.$log,t,s)}}(this))}return n(f,t),f}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMarkersParentModel",["uiGmapIMarkerParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapMarkerChildModel","uiGmap_async","uiGmapClustererMarkerManager","uiGmapMarkerManager","$timeout","uiGmapIMarker","uiGmapPromise","uiGmapGmapUtil","uiGmapLogger","uiGmapSpiderfierMarkerManager",function(u,f,e,o,s,h,c,l,a,v,y,p,w){var b;return b=function(n,t){return t.plurals=new e,t.scope.plurals=t.plurals,t},function(u){function l(t,r,u,f){this.maybeExecMappedEvent=n(this.maybeExecMappedEvent,this);this.onDestroy=n(this.onDestroy,this);this.newChildMarker=n(this.newChildMarker,this);this.pieceMeal=n(this.pieceMeal,this);this.rebuildAll=n(this.rebuildAll,this);this.createAllNew=n(this.createAllNew,this);this.bindToTypeEvents=n(this.bindToTypeEvents,this);this.createChildScopes=n(this.createChildScopes,this);this.validateScope=n(this.validateScope,this);this.onWatch=n(this.onWatch,this);l.__super__.constructor.call(this,t,r,u,f);this["interface"]=a;b(new e,this);this.scope.pluralsUpdate={updateCtr:0};this.$log.info(this);this.doRebuildAll=this.scope.doRebuildAll!=null?this.scope.doRebuildAll:!1;this.setIdKey(this.scope);this.scope.$watch("doRebuildAll",function(n){return function(t,i){if(t!==i)return n.doRebuildAll=t}}(this));this.modelsLength()||(this.modelsRendered=!1);this.scope.$watch("models",function(n){return function(t,r){if(!i.isEqual(t,r)||!n.modelsRendered){if(t.length===0&&r.length===0)return;n.modelsRendered=!0;return n.onWatch("models",n.scope,t,r)}}}(this),!this.isTrue(u.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 r(l,u),l.include(y),l.include(f),l.prototype.onWatch=function(n,t,i,r){return n==="idKey"&&i!==r&&(this.idKey=i),this.doRebuildAll||n==="doCluster"||n==="type"?this.rebuildAll(t):this.pieceMeal(t)},l.prototype.validateScope=function(n){var i;return i=t.isUndefined(n.models)||n.models===void 0,i&&this.$log.error(this.constructor.name+": no valid models attribute found"),l.__super__.validateScope.call(this,n)||i},l.prototype.createChildScopes=function(n){if(this.gMap!=null&&this.scope.models!=null)return n?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)},l.prototype.bindToTypeEvents=function(n,r){var u,f;return r==null&&(r=["click","mouseout","mouseover"]),f=this,this.origTypeEvents?t.extend(n,this.origTypeEvents):(this.origTypeEvents={},i.each(r,function(t){return function(i){return t.origTypeEvents[i]=n!=null?n[i]:void 0}}(this))),u={},i.each(r,function(n){return u[n]=function(t){return f.maybeExecMappedEvent(t,n)}}),t.extend(n,u)},l.prototype.createAllNew=function(n){var u,i,t,r;if(this.gManager!=null&&(this.gManager instanceof w&&(u=this.gManager.isSpiderfied()),this.gManager.clear(),delete this.gManager),t=n.typeEvents||n.clusterEvents,r=n.typeOptions||n.clusterOptions,n.doCluster||n.type==="cluster"?(t!=null&&this.bindToTypeEvents(t),this.gManager=new h(this.map,void 0,r,t)):n.type==="spider"?(t!=null&&this.bindToTypeEvents(t,["spiderfy","unspiderfy"]),this.gManager=new w(this.map,void 0,r,t,this.scope),u&&this.gManager.spiderfy()):this.gManager=new c(this.map),!this.didQueueInitPromise(this,n))return i=null,
1787s.promiseLock(this,v.promiseTypes.create,"createAllNew",function(n){return i=n},function(t){return function(){return s.each(n.models,function(r){return t.newChildMarker(r,n),i},s.chunkSizeFrom(n.chunk)).then(function(){return t.modelsRendered=!0,n.fit&&t.gManager.fit(),t.gManager.draw(),t.scope.pluralsUpdate.updateCtr+=1},s.chunkSizeFrom(n.chunk))}}(this))},l.prototype.rebuildAll=function(n){var t;if(n.doRebuild||n.doRebuild===void 0)return((t=this.scope.plurals)!=null?t.length:void 0)?this.onDestroy(n).then(function(t){return function(){return t.createAllNew(n)}}(this)):this.createAllNew(n)},l.prototype.pieceMeal=function(n){var i,t;if(!n.$$destroyed)return i=null,t=null,this.modelsLength()&&this.scope.plurals.length?s.promiseLock(this,v.promiseTypes.update,"pieceMeal",function(n){return i=n},function(r){return function(){return v.promise(function(){return r.figureOutState(r.idKey,n,r.scope.plurals,r.modelKeyComparison)}).then(function(u){return t=u,s.each(t.removals,function(n){if(n!=null)return n.destroy!=null&&n.destroy(),r.scope.plurals.remove(n.id),i},s.chunkSizeFrom(n.chunk))}).then(function(){return s.each(t.adds,function(t){return r.newChildMarker(t,n),i},s.chunkSizeFrom(n.chunk))}).then(function(){return s.each(t.updates,function(n){return r.updateChild(n.child,n.model),i},s.chunkSizeFrom(n.chunk))}).then(function(){return(t.adds.length>0||t.removals.length>0||t.updates.length>0)&&(n.plurals=r.scope.plurals,n.fit&&r.gManager.fit(),r.gManager.draw()),r.scope.pluralsUpdate.updateCtr+=1})}}(this)):(this.inProgress=!1,this.rebuildAll(n))},l.prototype.newChildMarker=function(n,t){var i,r,u;if(!n)throw"model undefined";if(n[this.idKey]==null){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.");return}return this.$log.info("child",i,"markers",this.scope.markerModels),r=t.$new(!1),r.events=t.events,u={},a.scopeKeys.forEach(function(n){return u[n]=t[n]}),i=new o({scope:r,model:n,keys:u,gMap:this.map,defaults:this.DEFAULTS,doClick:this.doClick,gManager:this.gManager,doDrawSelf:!1,isScopeModel:!0}),this.scope.plurals.put(n[this.idKey],i),i},l.prototype.onDestroy=function(n){return l.__super__.onDestroy.call(this,n),s.promiseLock(this,v.promiseTypes["delete"],void 0,void 0,function(n){return function(){return s.each(n.scope.plurals.values(),function(n){if(n!=null)return n.destroy(!1)},s.chunkSizeFrom(n.scope.cleanchunk,!1)).then(function(){return n.gManager!=null&&n.gManager.destroy(),n.plurals.removeAll(),n.plurals!==n.scope.plurals&&console.error("plurals out of sync for MarkersParentModel"),n.scope.pluralsUpdate.updateCtr+=1})}}(this))},l.prototype.maybeExecMappedEvent=function(n,t){var r,u;if(!this.scope.$$destroyed)return u=this.scope.typeEvents||this.scope.clusterEvents,i.isFunction(u!=null?u[t]:void 0)&&(r=this.mapTypeToPlurals(n),this.origTypeEvents[t])?this.origTypeEvents[t](r.group,r.mapped):void 0},l.prototype.mapTypeToPlurals=function(n){var t,r,u;if(i.isArray(n)?t=n:i.isFunction(n.getMarkers)&&(t=n.getMarkers()),t==null){p.error("Unable to map event as we cannot find the array group to map");return}return r=((u=this.scope.plurals.values())!=null?u.length:void 0)?t.map(function(n){return function(t){return n.scope.plurals.get(t.key).model}}(this)):[],{cluster:n,mapped:r,group:n}},l.prototype.getItem=function(n,t,i){return t==="models"?n[t][i]:n[t].get(i)},l}(u)}])}.call(this),function(){["Polygon","Polyline"].forEach(function(n){return t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmap"+n+"sParentModel",["uiGmapBasePolysParentModel","uiGmap"+n+"ChildModel","uiGmapI"+n,function(t,i,r){return t(r,i,n)}])})}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapRectangleParentModel",["uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapRectangleOptionsBuilder",function(t,r,u,f){return function(f){function e(n,r,u,f,e){var o,v,y,l,p,s,w,h,c,a,b;this.scope=n;this.attrs=u;this.gMap=f;this.DEFAULTS=e;o=void 0;l=!1;c=[];h=void 0;p=function(n){return function(){if(n.isTrue(n.attrs.fit))return n.fitMapBounds(n.gMap,o)}}(this);y=function(n){return function(){var i,r,u;return n.scope.bounds!=null&&((i=n.scope.bounds)!=null?i.sw:void 0)!=null&&((r=n.scope.bounds)!=null?r.ne:void 0)!=null&&n.val
1787idateBoundPoints(n.scope.bounds)?(o=n.convertBoundPoints(n.scope.bounds),t.info("new new bounds created: "+JSON.stringify(o))):n.scope.bounds.getNorthEast!=null&&n.scope.bounds.getSouthWest!=null?o=n.scope.bounds:n.scope.bounds!=null?t.error("Invalid bounds for newValue: "+JSON.stringify((u=n.scope)!=null?u.bounds:void 0)):void 0}}(this);y();s=new google.maps.Rectangle(this.buildOpts(o));t.info("gObject (rectangle) created: "+s);a=!1;b=function(n){return function(){var t,i,r;if(t=s.getBounds(),i=t.getNorthEast(),r=t.getSouthWest(),!a)return n.scope.$evalAsync(function(n){return n.bounds!=null&&n.bounds.sw!=null&&n.bounds.ne!=null&&(n.bounds.ne={latitude:i.lat(),longitude:i.lng()},n.bounds.sw={latitude:r.lat(),longitude:r.lng()}),n.bounds.getNorthEast!=null&&n.bounds.getSouthWest!=null?n.bounds=t:void 0})}}(this);w=function(n){return function(){return p(),n.removeEvents(c),c.push(google.maps.event.addListener(s,"dragstart",function(){return l=!0})),c.push(google.maps.event.addListener(s,"dragend",function(){return l=!1,b()})),c.push(google.maps.event.addListener(s,"bounds_changed",function(){if(!l)return b()}))}}(this);v=function(n){return function(){return n.removeEvents(c),h!=null&&n.removeEvents(h),s.setMap(null)}}(this);o!=null&&w();this.scope.$watch("bounds",function(n,t){var r;if((!i.isEqual(n,t)||o==null)&&!l){if(a=!0,n==null){v();return}return o==null?r=!0:p(),y(),s.setBounds(o),a=!1,r&&o!=null?w():void 0}},!0);this.setMyOptions=function(n){return function(t,r){if(!i.isEqual(t,r)&&o!=null&&t!=null)return s.setOptions(n.buildOpts(o))}}(this);this.props.push("bounds");this.watchProps(this.props);this.attrs.events!=null&&(h=this.setEvents(s,this.scope,this.scope),this.scope.$watch("events",function(n){return function(t,r){if(!i.isEqual(t,r))return h!=null&&n.removeEvents(h),h=n.setEvents(s,n.scope,n.scope)}}(this)));this.scope.$on("$destroy",function(){return v()});t.info(this)}return n(e,f),e.include(r),e.include(u),e}(f)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapSearchBoxParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapEventsHelper",function(r,u,f){return function(r){function e(i,r,f,e,o,s,h){var c;if(this.scope=i,this.element=r,this.attrs=f,this.gMap=e,this.ctrlPosition=o,this.template=s,this.$log=h!=null?h:u,this.setVisibility=n(this.setVisibility,this),this.getBounds=n(this.getBounds,this),this.setBounds=n(this.setBounds,this),this.createSearchBox=n(this.createSearchBox,this),this.addToParentDiv=n(this.addToParentDiv,this),this.addAsMapControl=n(this.addAsMapControl,this),this.init=n(this.init,this),this.attrs.template==null){this.$log.error("template attribute for the search-box directive is mandatory. Places Search Box creation aborted!!");return}t.isUndefined(this.scope.options)&&(this.scope.options={},this.scope.options.visible=!0);t.isUndefined(this.scope.options.visible)&&(this.scope.options.visible=!0);t.isUndefined(this.scope.options.autocomplete)&&(this.scope.options.autocomplete=!1);this.visible=this.scope.options.visible;this.autocomplete=this.scope.options.autocomplete;c=t.element("<div><\/div>");c.append(this.template);this.input=c.find("input")[0];this.init()}return i(e,r),e.include(f),e.prototype.init=function(){return this.createSearchBox(),this.scope.$watch("options",function(n){return function(i){if(t.isObject(i)&&(i.bounds!=null&&n.setBounds(i.bounds),i.visible!=null&&n.visible!==i.visible))return n.setVisibility(i.visible)}}(this),!0),this.attrs.parentdiv!=null?this.addToParentDiv():this.addAsMapControl(),this.visible||this.setVisibility(this.visible),this.listener=this.autocomplete?google.maps.event.addListener(this.gObject,"place_changed",function(n){return function(){return n.places=n.gObject.getPlace()}}(this)):google.maps.event.addListener(this.gObject,"places_changed",function(n){return function(){return n.places=n.gObject.getPlaces()}}(this)),this.listeners=this.setEvents(this.gObject,this.scope,this.scope),this.$log.info(this),this.scope.$on("$stateChangeSuccess",function(n){return function(){if(n.attrs.parentdiv!=null)return n.addToParentDiv()}}(this)),this.scope.$on("$destroy",function(n){return function(){return n.gObject=null}}(this))},e.prototype.addAsMapControl=function(){return this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input)},e.prototype.addToParentDiv=function(){var n;return this.parentDiv=t.element(document.getElementById(this.scope.parentdiv)),((n=this.parentDiv)!=null?n.length:void 0)?this.parentDiv.append(this.input):void 0},e.prototype.createSearchBox=function(){return this.gObject=this.autocomplete?new google.maps.places.Autocomplete(this.input,this.scope.options):new google.maps.places.SearchBox(this.input,this.scope.options)},e.prototype.setBounds=function(n){if(t.isUndefined(n.isEmpty))this.$log.error("Error: SearchBoxParentModel setBounds. Bounds not an instance of LatLngBounds.");else if(n.isEmpty()===!1&&this.gObject!=null)return this.gObject.setBounds(n)},e.prototype.getBounds=function(){return this.gObject.getBounds()},e.prototype.setVisibility=function(n){return this.attrs.parentdiv!=null?n===!1?this.parentDiv.addClass("ng-hide"):this.parentDiv.removeClass("ng-hide"):n===!1?this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].clear():this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input),this.visible=n},e}(r)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapWindowsParentModel",["uiGmapIWindowParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapWindowChildModel","uiGmapLinked","uiGmap_async","uiGmapLogger","$t
1787imeout","$compile","$http","$templateCache","$interpolate","uiGmapPromise","uiGmapIWindow","uiGmapGmapUtil",function(u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){return function(u){function d(t,r,u,f,o,h){this.gMap=o;this.markersScope=h;this.modelKeyComparison=n(this.modelKeyComparison,this);this.interpolateContent=n(this.interpolateContent,this);this.setChildScope=n(this.setChildScope,this);this.createWindow=n(this.createWindow,this);this.setContentKeys=n(this.setContentKeys,this);this.pieceMeal=n(this.pieceMeal,this);this.createAllNew=n(this.createAllNew,this);this.watchIdKey=n(this.watchIdKey,this);this.createChildScopes=n(this.createChildScopes,this);this.watchOurScope=n(this.watchOurScope,this);this.watchDestroy=n(this.watchDestroy,this);this.onDestroy=n(this.onDestroy,this);this.rebuildAll=n(this.rebuildAll,this);this.doINeedToWipe=n(this.doINeedToWipe,this);this.watchModels=n(this.watchModels,this);this.go=n(this.go,this);d.__super__.constructor.call(this,t,r,u,f,l,a,v,y);this["interface"]=b;this.plurals=new e;i.each(b.scopeKeys,function(n){return function(t){return n[t+"Key"]=void 0}}(this));this.linked=new s(t,r,u,f);this.contentKeys=void 0;this.isIconVisibleOnClick=void 0;this.firstTime=!0;this.firstWatchModels=!0;this.$log.info(self);this.parentScope=void 0;this.go(t)}return r(d,u),d.include(f),d.prototype.go=function(n){return this.watchOurScope(n),this.doRebuildAll=this.scope.doRebuildAll!=null?this.scope.doRebuildAll:!1,n.$watch("doRebuildAll",function(n){return function(t,i){if(t!==i)return n.doRebuildAll=t}}(this)),this.createChildScopes()},d.prototype.watchModels=function(n){var t;return t=this.markersScope!=null?"pluralsUpdate":"models",n.$watch(t,function(t){return function(r,u){var f;if(!i.isEqual(r,u)||t.firstWatchModels)return t.firstWatchModels=!1,t.doRebuildAll||t.doINeedToWipe(n.models)?t.rebuildAll(n,!0,!0):(f=t.plurals.length===0,t.existingPieces!=null?i.last(t.existingPieces._content).then(function(){return t.createChildScopes(f)}):t.createChildScopes(f))}}(this),!0)},d.prototype.doINeedToWipe=function(n){var t;return t=n!=null?n.length===0:!0,this.plurals.length>0&&t},d.prototype.rebuildAll=function(n,t,i){return this.onDestroy(i).then(function(n){return function(){if(t)return n.createChildScopes()}}(this))},d.prototype.onDestroy=function(){return d.__super__.onDestroy.call(this,this.scope),h.promiseLock(this,w.promiseTypes["delete"],void 0,void 0,function(n){return function(){return h.each(n.plurals.values(),function(n){return n.destroy(!0)},h.chunkSizeFrom(n.scope.cleanchunk,!1)).then(function(){var t;if((t=n.plurals)!=null)return t.removeAll()})}}(this))},d.prototype.watchDestroy=function(n){return n.$on("$destroy",function(t){return function(){return t.firstWatchModels=!0,t.firstTime=!0,t.rebuildAll(n,!1,!0)}}(this))},d.prototype.watchOurScope=function(n){return i.each(b.scopeKeys,function(t){return function(i){var r;return r=i+"Key",t[r]=typeof n[i]=="function"?n[i]():n[i]}}(this))},d.prototype.createChildScopes=function(n){var i,r,u;if(n==null&&(n=!0),this.isIconVisibleOnClick=!0,t.isDefined(this.linked.attrs.isiconvisibleonclick)&&(this.isIconVisibleOnClick=this.linked.scope.isIconVisibleOnClick),i=t.isUndefined(this.linked.scope.models),i&&(this.markersScope===void 0||((r=this.markersScope)!=null?r.plurals:void 0)===void 0||((u=this.markersScope)!=null?u.models:void 0)===void 0)){this.$log.error("No models to create windows from! Need direct models or models derived from markers!");return}if(this.gMap!=null)return this.linked.scope.models!=null?(this.watchIdKey(this.linked.scope),n?this.createAllNew(this.linked.scope,!1):this.pieceMeal(this.linked.scope,!1)):(this.parentScope=this.markersScope,this.watchIdKey(this.parentScope),n?this.createAllNew(this.markersScope,!0,"plurals",!1):this.pieceMeal(this.markersScope,!0,"plurals",!1))},d.prototype.watchIdKey=function(n){return this.setIdKey(n),n.$watch("idKey",function(t){return function(i,r){if(i!==r&&i==null)return t.idKey=i,t.rebuildAll(n,!0,!0)}}(this))},d.prototype.createAllNew=function(n,t,i,r){var u;if(i==null&&(i="models"),r==null&&(r=!1),this.firstTime&&(this.watchModels(n),this.watchDestroy(n)),this.setContentKeys(n.models),!this.didQueueInitPromise(this,n))return u=null,h.promiseLock(this,w.promiseTypes.create,"createAllNew",function(n){return u=n},function(r){return function(){return h.each(n.models,function(f){var e,o;return e=t?(o=r.getItem(n,i,f[r.idKey]))!=null?o.gObject:void 0:void 0,u||(!e&&r.markersScope&&c.error("Unable to get gMarker from markersScope!"),r.createWindow(f,e,r.gMap)),u},h.chunkSizeFrom(n.chunk)).then(function(){return r.firstTime=!1})}}(this))},d.prototype.pieceMeal=function(n,t,i,r){var u,f;if(i==null&&(i="models"),r==null&&(r=!0),!n.$$destroyed)return u=null,f=null,n!=null&&this.modelsLength()&&this.plurals.length?h.promiseLock(this,w.promiseTypes.update,"pieceMeal",function(n){return u=n},function(t){return function(){return w.promise(function(){return t.figureOutState(t.idKey,n,t.plurals,t.modelKeyComparison)}).then(function(i){return f=i,h.each(f.removals,function(n){if(n!=null)return t.plurals.remove(n.id),n.destroy!=null&&n.destroy(!0),u},h.chunkSizeFrom(n.chunk))}).then(function(){return h.each(f.adds,function(r){var f,e;if(f=(e=t.getItem(n,i,r[t.idKey]))!=null?e.gObject:void 0,!f)throw"Gmarker undefined";return t.createWindow(r,f,t.gMap),u})}).then(function(){return h.each(f.updates,function(n){return t.updateChild(n.child,n.model),u}
1787,h.chunkSizeFrom(n.chunk))})}}(this)):(c.debug("pieceMeal: rebuildAll"),this.rebuildAll(this.scope,!0,!0))},d.prototype.setContentKeys=function(n){if(this.modelsLength(n))return this.contentKeys=Object.keys(n[0])},d.prototype.createWindow=function(n,t,i){var u,r,f,e,s,h;if(r=this.linked.scope.$new(!1),this.setChildScope(r,n),r.$watch("model",function(n){return function(t,i){if(t!==i)return n.setChildScope(r,t)}}(this),!0),f={html:function(t){return function(){return t.interpolateContent(t.linked.element.html(),n)}}(this)},this.DEFAULTS=this.scopeOrModelVal(this.optionsKey,this.scope,n)||{},e=this.createWindowOptions(t,r,f.html(),this.DEFAULTS),u=new o({model:n,scope:r,opts:e,isIconVisibleOnClick:this.isIconVisibleOnClick,gMap:i,markerScope:(s=this.markersScope)!=null?(h=s.plurals.get(n[this.idKey]))!=null?h.scope:void 0:void 0,element:f,needToManualDestroy:!1,markerIsVisibleAfterWindowClose:!0,isScopeModel:!0}),n[this.idKey]==null){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.");return}return this.plurals.put(n[this.idKey],u),u},d.prototype.setChildScope=function(n,t){return i.each(b.scopeKeys,function(i){return function(r){var u,f;return u=r+"Key",f=i[u]==="self"?t:t[i[u]],f!==n[r]?n[r]=f:void 0}}(this)),n.model=t},d.prototype.interpolateContent=function(n,t){var e,i,r,u,o,f;if(this.contentKeys!==void 0&&this.contentKeys.length!==0){for(e=p(n),r={},f=this.contentKeys,i=0,o=f.length;i<o;i++)u=f[i],r[u]=t[u];return e(r)}},d.prototype.modelKeyComparison=function(n,t){var u,r;if(r=this.scope.coords!=null?this.scope:this.parentScope,r==null)throw"No scope or parentScope set!";return(u=k.equalCoords(this.evalModelHandle(n,r.coords),this.evalModelHandle(t,r.coords)),!u)?u:i.every(i.without(this["interface"].scopeKeys,"coords"),function(i){return function(u){return i.evalModelHandle(n,r[u])===i.evalModelHandle(t,r[u])}}(this))},d}(u)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapCircle",["uiGmapICircle","uiGmapCircleParentModel",function(n,t){return i.extend(n,{link:function(n,i,r,u){return u.getScope().deferred.promise.then(function(u){return new t(n,i,r,u)})}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapControl",["uiGmapIControl","$http","$templateCache","$compile","$controller","uiGmapGoogleMapApi",function(r,u,f,e,o,s){return function(h){function c(){this.link=n(this.link,this);c.__super__.constructor.call(this)}return i(c,h),c.prototype.transclude=!0,c.prototype.link=function(n,i,h,c,l){return s.then(function(i){return function(s){var v,h,a;if(v=t.isUndefined(n.template),h=t.isDefined(n.index&&!isNaN(parseInt(n.index)))?parseInt(n.index):void 0,a=t.isDefined(n.position)?n.position.toUpperCase().replace(/-/g,"_"):"TOP_CENTER",!s.ControlPosition[a]){i.$log.error("mapControl: invalid position property");return}return r.mapPromise(n,c).then(function(r){var c,s,y;return c=void 0,s=t.element("<div><\/div>"),y=function(n,t,i){return i&&(t[0].index=i),n.controls[google.maps.ControlPosition[a]].push(t[0])},v?l(function(n){return s.append(n),y(r,s.children(),h)}):u.get(n.template,{cache:f}).then(function(i){var u,f,r;return u=i.data,r=n.$new(),s.append(u),t.isDefined(n.controller)&&(f=o(n.controller,{$scope:r}),s.children().data("$ngControllerController",f)),c=e(s.children())(r)})["catch"](function(){return i.$log.error("mapControl: template could not be found")}).then(function(){return y(r,c,h)})})}}(this))},c}(r)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapDragZoom",["uiGmapCtrlHandle","uiGmapPropertyAction",function(n,t){return{restrict:"EMA",transclude:!0,template:'<div class="angular-google-map-dragzoom" ng-transclude style="display: none"><\/div>',require:"^uiGmapGoogleMap",scope:{keyboardkey:"=",options:"=",spec:"="},controller:["$scope","$element",function(t,r){return t.ctrlType="uiGmapDragZoom",i.extend(this,n.handle(t,r))}],link:function(i,r,u,f){return n.mapPromise(i,f).then(function(n){var r,u,f;return r=function(t){return n.enableKeyDragZoom(t)},u=new t(function(n,t){return t?r({key:t}):r()}),f=new t(function(n,t){if(t)return r(t)}),i.$watch("keyboardkey",u.sic("keyboardkey")),u.sic(i.keyboardkey),i.$watch("options",f.sic("options")),f.sic(i.options)})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapDrawingManager",["uiGmapIDrawingManager","uiGmapDrawingManagerParentModel",function(n,t){return i.extend(n,{link:function(n,i,r,u){return u.getScope().deferred.promise.then(function(u){return new t(n,i,r,u)})}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapApiFreeDrawPolygons",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapDrawFreeHandChildModel","uiGmapLodash",function(t,u,f,e,o){return function(u){function s(){return this.link=n(this.link,this),s.__super__.constructor.apply(this,arguments)}return r(s,u),s.include(f),s.prototype.restrict="EMA",s.prototype.replace=!0,s.prototype.require="^uiGmapGoogleMap",s.prototype.scope={polygons:"=",draw:"="},s.prototype.link=function(n,r,u,f){return this.mapPromise(n,f).then(function(){return function(r){var s,u;return n.polygons?i.isArray(n.polygons)?(s=new e(r,f.getScope()),u=void 0,n.draw=function(){return typeof u=="function"&&u(),s.engage(n.polygons).then(function(){var t;return t=!0,u=n.$watchCollection("polygons",function(n,i){var r;if(t||n===i){t=!1;return}return r=o.differenceObjects(i,n),r.forEach(function(n){return n.setMap(null)})})})}):t.error("Free Draw Polygons must be of type Array!"):t.error("No polygons to bind to!")}}(this))},s}(u)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapICircle",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{center:"=center",radiu
1787s:"=radius",stroke:"=stroke",fill:"=fill",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=icons",visible:"=",events:"=",control:"=",zIndex:"=zindex"}}}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},i={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIControl",["uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,i,r){return function(t){function u(){this.restrict="EA";this.replace=!0;this.require="^uiGmapGoogleMap";this.scope={template:"@template",position:"@position",controller:"@controller",index:"@index"};this.$log=i}return n(u,t),u.extend(r),u.prototype.link=function(){throw new Error("Not implemented!!");},u}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapIDrawingManager",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{"static":"@",control:"=",options:"=",events:"="}}}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIMarker",["uiGmapBaseObject","uiGmapCtrlHandle",function(t,r){return function(t){function u(){this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.replace=!0;this.scope=i.extend(this.scope||{},u.scope)}return n(u,t),u.scope={coords:"=coords",icon:"=icon",click:"&click",options:"=options",events:"=events",fit:"=fit",idKey:"=idkey",control:"=control"},u.scopeKeys=i.keys(u.scope),u.keys=u.scopeKeys,u.extend(r),u}(t)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolygon",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,r,u,f){return function(r){function e(){}return n(e,r),e.scope={path:"=path",stroke:"=stroke",clickable:"=",draggable:"=",editable:"=",geodesic:"=",fill:"=",icons:"=icons",visible:"=","static":"=",events:"=",zIndex:"=zindex",fit:"=",control:"=control"},e.scopeKeys=i.keys(e.scope),e.include(t),e.extend(f),e.prototype.restrict="EMA",e.prototype.replace=!0,e.prototype.require="^uiGmapGoogleMap",e.prototype.scope=e.scope,e.prototype.DEFAULTS={},e.prototype.$log=u,e}(r)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolyline",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(t,r,u,f){return function(r){function e(){}return n(e,r),e.scope={path:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=",visible:"=","static":"=",fit:"=",events:"=",zIndex:"=zindex"},e.scopeKeys=i.keys(e.scope),e.include(t),e.extend(f),e.prototype.restrict="EMA",e.prototype.replace=!0,e.prototype.require="^uiGmapGoogleMap",e.prototype.scope=e.scope,e.prototype.DEFAULTS={},e.prototype.$log=u,e}(r)}])}.call(this),function(){t.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 n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIWindow",["uiGmapBaseObject","uiGmapChildEvents","uiGmapCtrlHandle",function(t,r,u){return function(t){function f(){this.restrict="EMA";this.template=void 0;this.transclude=!0;this.priority=-100;this.require="^uiGmapGoogleMap";this.replace=!0;this.scope=i.extend(this.scope||{},f.scope)}return n(f,t),f.scope={coords:"=coords",template:"=template",templateUrl:"=templateurl",templateParameter:"=templateparameter",isIconVisibleOnClick:"=isiconvisibleonclick",closeClick:"&closeclick",options:"=options",control:"=control",show:"=show"},f.scopeKeys=i.keys(f.scope),f.include(r),f.extend(u),f}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},u={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMap",["$timeout","$q","$log","uiGmapGmapUtil","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapIsReady","uiGmapuuid","uiGmapExtendGWin","uiGmapExtendMarkerClusterer","uiGmapGoogleMapsUtilV3","uiGmapGoogleMapApi","uiGmapEventsHelper","uiGmapGoogleMapObjectManager",function(u,f,e,o,s,h,c,l,a,v,y,p,w,b){var k,d;return k=void 0,d=[y,a,v],function(f){function s(){this.link=n(this.link,this);var t;t=function(n){var t,r;
1787return r=void 0,n.$on("$destroy",function(){return c.decrement()}),t=h.handle(n),n.ctrlType="Map",n.deferred.promise.then(function(){return d.forEach(function(n){return n.init()})}),t.getMap=function(){return n.map},i.extend(this,t)};this.controller=["$scope",t]}return r(s,f),s.include(o),s.prototype.restrict="EMA",s.prototype.transclude=!0,s.prototype.replace=!1,s.prototype.template='<div class="angular-google-map"><div class="angular-google-map-container">\n<\/div><div ng-transclude style="display: none"><\/div><\/div>',s.prototype.scope={center:"=",zoom:"=",dragging:"=",control:"=",options:"=",events:"=",eventOpts:"=",styles:"=",bounds:"=",update:"="},s.prototype.link=function(n,r,f){var o;return o=[],n.$on("$destroy",function(){return w.removeEvents(o),f.recycleMapInstance==="true"&&n.map?(b.recycleMapInstance(n.map),n.map=null):void 0}),n.idleAndZoomChanged=!1,p.then(function(s){return function(h){var a,tt,v,p,it,d,et,g,rt,y,ot,st,nt,ft,ht,ct,ut;if(k={mapTypeId:h.MapTypeId.ROADMAP},ft=c.spawn(),st=function(){return ft.deferred.resolve({instance:ft.instance,map:a})},!t.isDefined(n.center)&&!t.isDefined(n.bounds)){e.error("angular-google-maps: a center or bounds property is required");return}if(t.isDefined(n.center)||(n.center=new google.maps.LatLngBounds(s.getCoords(n.bounds.southwest),s.getCoords(n.bounds.northeast)).getCenter()),t.isDefined(n.zoom)||(n.zoom=10),it=t.element(r),it.addClass("angular-google-map"),y={options:{}},f.options&&(y.options=n.options),f.styles&&(y.styles=n.styles),f.type&&(ht=f.type.toUpperCase(),google.maps.MapTypeId.hasOwnProperty(ht)?y.mapTypeId=google.maps.MapTypeId[f.type.toUpperCase()]:e.error("angular-google-maps: invalid map type '"+f.type+"'")),g=t.extend({},k,y,{center:s.getCoords(n.center),zoom:n.zoom,bounds:n.bounds}),a=f.recycleMapInstance==="true"?b.createMapInstance(it.find("div")[1],g):new google.maps.Map(it.find("div")[1],g),a.uiGmap_id=l.generate(),p=!1,o.push(google.maps.event.addListenerOnce(a,"idle",function(){return n.deferred.resolve(a),st()})),v=f.events&&((ot=n.events)!=null?ot.blacklist:void 0)!=null?n.events.blacklist:[],i.isString(v)&&(v=[v]),rt=function(t,r,u){if(!i.includes(v,t))return u&&u(),o.push(google.maps.event.addListener(a,t,function(){var t;if(!((t=n.update)!=null?t.lazy:void 0))return r()}))},i.includes(v,"all")||(rt("dragstart",function(){return p=!0,n.$evalAsync(function(n){if(n.dragging!=null)return n.dragging=p})}),rt("dragend",function(){return p=!1,n.$evalAsync(function(n){if(n.dragging!=null)return n.dragging=p})}),ct=function(r,u){var f,e;if(r==null&&(r=a.center),u==null&&(u=n),!i.includes(v,"center"))if(f=r.lat(),e=r.lng(),t.isDefined(u.center.type)){if(u.center.coordinates[1]!==f&&(u.center.coordinates[1]=f),u.center.coordinates[0]!==e)return u.center.coordinates[0]=e}else if(u.center.latitude!==f&&(u.center.latitude=f),u.center.longitude!==e)return u.center.longitude=e},nt=!1,rt("idle",function(){var t,r,u;
1787return t=a.getBounds(),r=t.getNorthEast(),u=t.getSouthWest(),nt=!0,n.$evalAsync(function(t){return ct(),i.isUndefined(t.bounds)||i.includes(v,"bounds")||(t.bounds.northeast={latitude:r.lat(),longitude:r.lng()},t.bounds.southwest={latitude:u.lat(),longitude:u.lng()}),i.includes(v,"zoom")||(t.zoom=a.zoom,n.idleAndZoomChanged=!n.idleAndZoomChanged),nt=!1})})),t.isDefined(n.events)&&n.events!==null&&t.isObject(n.events)){et=function(t){return function(){return n.events[t].apply(n,[a,t,arguments])}};tt=[];for(d in n.events)n.events.hasOwnProperty(d)&&t.isFunction(n.events[d])&&tt.push(google.maps.event.addListener(a,d,et(d)));o.concat(tt)}return a.getOptions=function(){return g},n.map=a,f.control!=null&&n.control!=null&&(n.control.refresh=function(n){var t,i,r;if(a!=null)return(typeof google!="undefined"&&google!==null?(i=google.maps)!=null?(r=i.event)!=null?r.trigger:void 0:void 0:void 0)!=null&&a!=null&&google.maps.event.trigger(a,"resize"),(n!=null?n.latitude:void 0)!=null&&(n!=null?n.longitude:void 0)!=null?(t=s.getCoords(n),s.isTrue(f.pan)?a.panTo(t):a.setCenter(t)):void 0},n.control.getGMap=function(){return a},n.control.getMapOptions=function(){return g},n.control.getCustomEventListeners=function(){return tt},n.control.removeEvents=function(n){return w.removeEvents(n)}),n.$watch("center",function(t,i){var r;if(t!==i&&!nt)return(r=s.getCoords(n.center),r.lat()===a.center.lat()&&r.lng()===a.center.lng())?void 0:p?void 0:(s.validateCoords(t)||e.error("Invalid center for newValue: "+JSON.stringify(t)),s.isTrue(f.pan)&&n.zoom===a.zoom?a.panTo(r):a.setCenter(r))},!0),ut=null,n.$watch("zoom",function(t,r){var f,e;if(t!=null)return i.isEqual(t,r)||(a!=null?a.getZoom():void 0)===(n!=null?n.zoom:void 0)||nt?void 0:(ut!=null&&u.cancel(ut),ut=u(function(){return a.setZoom(t)},((f=n.eventOpts)!=null?(e=f.debounce)!=null?e.zoomMs:void 0:void 0)+20,!1))}),n.$watch("bounds",function(n,t){var i,r,u,f,o,s,h;if(n!==t){if((n!=null?(u=n.northeast)!=null?u.latitude:void 0:void 0)==null||(n!=null?(f=n.northeast)!=null?f.longitude:void 0:void 0)==null||(n!=null?(o=n.southwest)!=null?o.latitude:void 0:void 0)==null||(n!=null?(s=n.southwest)!=null?s.longitude:void 0:void 0)==null){e.error("Invalid map bounds for new value: "+JSON.stringify(n));return}return r=new google.maps.LatLng(n.northeast.latitude,n.northeast.longitude),h=new google.maps.LatLng(n.southwest.latitude,n.southwest.longitude),i=new google.maps.LatLngBounds(h,r),a.fitBounds(i)}}),["options","styles"].forEach(function(t){return n.$watch(t,function(n,r){if(!i.isEqual(n,r))return t==="options"?y.options=n:y.options[t]=n,a!=null?a.setOptions(y):void 0},!0)})}}(this))},s}(s)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarker",["uiGmapIMarker","uiGmapMarkerChildModel","uiGmapMarkerManager","uiGmapLogger",function(t,r,u,f){return function(e){function o(){o.__super__.constructor.call(this);this.template='<span class="angular-google-map-marker" ng-transclude><\/span>';f.info(this)}return n(o,e),o.prototype.controller=["$scope","$element",function(n,r){return n.ctrlType="Marker",i.extend(this,t.handle(n,r))}],o.prototype.link=function(n,f,e,o){var s;return s=t.mapPromise(n,o),s.then(function(f){var e,o,s;return e=new u(f),o=i.object(t.keys,t.keys),s=new r({scope:n,model:n,keys:o,gMap:f,doClick:!0,gManager:e,doDrawSelf:!1,trackModel:!1}),s.deferred.promise.then(function(t){return n.deferred.resolve(t)}),n.control!=null?n.control.getGMarkers=e.getGMarkers:void 0}),n.$on("$destroy",function(){var n;return typeof n!="undefined"&&n!==null&&n.clear(),null})},o}(t)}])}.call(this),function(){var n=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarkers",["uiGmapIMarker","uiGmapPlural","uiGmapMarkersParentModel","uiGmap_sync","uiGmapLogger",function(t,r,u,f,e){return function(f){function o(){o.__super__.constructor.call(this);this.template='<span class="angular-google-map-markers" ng-transclude><\/span>';r.extend(this,{doCluster:"=?docluster",clusterOptions:"=clusteroptions",clusterEvents:"=clusterevents",modelsByRef:"=modelsbyref",type:"=?type",typeOptions:"=?typeoptions",typeEvents:"=?typeevents",deepComparison:"=?deepcomparison"});e.info(this)}return n(o,f),o.prototype.controller=["$scope","$element",function(n,r){return n.ctrlType="Markers",i.extend(this,t.handle(n,r))}],o.prototype.link=function(n,f,e,o){var s,h;return s=void 0,h=function(){return n.deferred.resolve()},t.mapPromise(n,o).then(function(t){var c;return c=o.getScope(),c.$watch("idleAndZoomChanged",function(){return i.defer(s.gManager.draw)}),s=new u(n,f,e,t),r.link(n,s),n.control!=null&&(n.control.getGMarkers=function(){var n;if((n=s.gManager)!=null)return n.getGMarkers()},n.control.getChildMarkers=function(){return s.plurals}),i.last(s.existingPieces._content).then(function(){return h()})})},o}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapPlural",[function(){var n;return n=function(n,t){if(n.control!=null)return n.control.updateModels=function(i){return n.models=i,t.createChildScopes(!1)},n.control.newModels=function(i){return n.models=i,t.rebuildAll(n,!0,
1787!0)},n.control.clean=function(){return t.rebuildAll(n,!1,!0)},n.control.getPlurals=function(){return t.plurals},n.control.getManager=function(){return t.gManager},n.control.hasManager=function(){return t.gManager!=null==!0},n.control.managerDraw=function(){var t;if(n.control.hasManager())return(t=n.control.getManager())!=null?t.draw():void 0}},{extend:function(n,t){return i.extend(n.scope||{},t||{},{idKey:"=idkey",doRebuildAll:"=dorebuildall",models:"=models",chunk:"=chunk",cleanchunk:"=cleanchunk",control:"=control",deepComparison:"=deepcomparison"})},link:function(t,i){return n(t,i)}}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygon",["uiGmapIPolygon","$timeout","uiGmapPolygonChildModel",function(t,r,u){return function(r){function f(){return this.link=n(this.link,this),f.__super__.constructor.apply(this,arguments)}return i(f,r),f.prototype.link=function(n,i,r,f){var e,o;return e=[],o=t.mapPromise(n,f),n.control!=null&&(n.control.getInstance=this,n.control.polygons=e,n.control.promise=o),o.then(function(t){return function(i){return e.push(new u({scope:n,attrs:r,gMap:i,defaults:t.DEFAULTS}))}}(this))},f}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygons",["uiGmapIPolygon","$timeout","uiGmapPolygonsParentModel","uiGmapPlural",function(r,u,f,e){return function(r){function u(){this.link=n(this.link,this);u.__super__.constructor.call(this);e.extend(this);this.$log.info(this)}return i(u,r),u.prototype.link=function(n,i,r,u){return u.getScope().deferred.promise.then(function(u){return function(o){return(t.isUndefined(n.path)||n.path===null)&&u.$log.warn("polygons: no valid path attribute found"),n.models||u.$log.warn("polygons: no models found to create from"),e.link(n,new f(n,i,r,o,u.DEFAULTS))}}(this))},u}(r)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolyline",["uiGmapIPolyline","$timeout","uiGmapPolylineChildModel",function(r,u,f){return function(u){function e(){return this.link=n(this.link,this),e.__super__.constructor.apply(this,arguments)}return i(e,u),e.prototype.link=function(n,i,u,e){return r.mapPromise(n,e).then(function(i){return function(r){return(t.isUndefined(n.path)||n.path===null||!i.validatePath(n.path))&&i.$log.warn("polyline: no valid path attribute found"),new f({scope:n,attrs:u,gMap:r,defaults:i.DEFAULTS})}}(this))},e}(r)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylines",["uiGmapIPolyline","$timeout","uiGmapPolylinesParentModel","uiGmapPlural",function(r,u,f,e){return function(r){function u(){this.link=n(this.link,this);u.__super__.constructor.call(this);e.extend(this);this.$log.info(this)}return i(u,r),u.prototype.link=function(n,i,r,u){return u.getScope().deferred.promise.then(function(u){return function(o){return(t.isUndefined(n.path)||n.path===null)&&u.$log.warn("polylines: no valid path attribute found"),n.models||u.$log.warn("polylines: no models found to create from"),e.link(n,new f(n,i,r,o,u.DEFAULTS))}}(this))},u}(r)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapRectangle",["uiGmapLogger","uiGmapGmapUtil","uiGmapIRectangle","uiGmapRectangleParentModel",function(n,t,r,u){return i.extend(r,{link:function(n,t,i,r){return r.getScope().deferred.promise.then(function(r){return new u(n,t,i,r)})}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindow",["uiGmapIWindow","uiGmapGmapUtil","uiGmapWindowChildModel","uiGmapLodash","uiGmapLogger",function(r,u,f,e,o){return function(s){function h(){this.link=n(this.link,this);h.__super__.constructor.call(this);this.require=["^uiGmapGoogleMap","^?uiGmapMarker"];this.template='<span class="angular-google-maps-window" ng-transclude><\/span>';o.debug(this);this.childWindows=[]}return i(h,s),h.include(u),h.prototype.link=function(n,i,u,f){var e,o;return e=f.length>1&&f[1]!=null?f[1]:void 0,o=e!=null?e.getScope():void 0,this.mapPromise=r.mapPromise(n,f[0]),this.mapPromise.then(function(r){return function(f){var s;if(s=!0,t.isDefined(u.isiconvisibleonclick)&&(s=n.isIconVisibleOnClick),!e){r.init(n,i,s,f);return}return o.deferred.promise.then(function(){return r.init(n,i,s,f,o)})}}(this))},h.prototype.init=function(n,t,i,r,u){var o,s,h,c,l;if(s=n.options!=null?n.options:{},c=n!=null&&this.validateCoords(n.coords),(u!=null?u.getGMarker:void 0)!=null&&(h=u.getGMarker()),l=c?this.createWindowOptions(h,n,t.html(),s):s,r!=null&&(o=new f({scope:n,opts:l,isIconVisibleOnClick:i,gMap:r,markerScope:u,element:t}),this.childWindows.push(o),n.$on("$destroy",function(n){return function(){return n.childWindows=e.withoutObjects(n.childWindows,[o],function(n,t){return n.scope.$id===t.scope.$id}),n.childWindows.length=0}}(this))),n.control!=null&&(n.control.getGWindows=function(n){return function(){return n.childWindows.map(function(n){return n.gObject})}}(this),n.control.getChildWindows=function(n){return function(){return n.childWindows}}(this),n.control.getPlurals=n.control.getChildWindows,n.control.showWindow=function(n){return function(){return n.childWindows.map(function(n){return n.showWindow()})}}(this),n.control.hideWindow=function(n){return function(){return n.childWindows.map(function(n){return n.hideWindow()})}}(this)),this.onChildCreation!=null&&o!=null)return this.onChildCreation(o)},h}(r)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n},r={}.hasOwnProperty;t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindows",["uiGmapIWindow","uiGmapPlural","uiGmapWindowsParentModel","uiGmapPromise","uiGmapLogger",function(t,r,u,f,e){return function(t){function o(){this.link=n(this.link,this);o.__super__.constructor.call(this);this.require=["^uiGmapGoogleMap","^?uiGmapMarkers"];this.template='<span class="angular-google-maps-windows" ng-transclude><\/span>';r.extend(this);e.debug(this)}return i(o,t),o.prototype.link=function(n,t,i,r){var o,e,u;return o=r[0].getScope(),e=r.length>1&&r[1]!=null?r[1]:void 0,u=e!=null?e.getScope():void 0,o.deferred.promise.then(function(e){return function(o){var s,h;return s=(u!=null?(h=u.deferred)!=null?h.promise:void 0:void 0)||f.resolve(),s.then(function(){var f,s;return f=(s=e.parentModel)!=null?s.existingPieces:void 0,f?f.then(function(){return e.init(n,t,i,r,o,u)}):e.init(n,t,i,r,o,u)})}}(this))},o.prototype.init=function(n,t,i,f,e,o){var s;return s=new u(n,t,i,f,e,o),r.link(n,s),n.control!=null?(n.control.getGWindows=function(){return s.plurals.map(function(n){return n.gObject})},n.control.getChildWindows=function(){return s.plurals}):void 0},o}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapGoogleMap",["uiGmapMap",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarker",["$timeout","uiGmapMarker",function(n,t){return new t(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarkers",["$timeout","uiGmapMarkers",function(n,t){return new t(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygon",["uiGmapPolygon",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapCircle",["uiGmapCircle",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolyline",["uiGmapPolyline",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolylines",["uiGmapPolylines",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapRectangle",["uiGmapLogger","uiGmapRectangle",function(n,t){return t}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindow",["$timeout","$compile","$http","$templateCache","uiGmapWindow",function(n,t,i,r,u){return new u(n,t,i,r)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindows",["$timeout","$compile","$http","$templateCache","$interpolate","uiGmapWindows",function(n,t,i,r,u,f){return new f(n,t,i,r,u)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapLayer",["$timeout","uiGmapLogger","uiGmapLayerParentModel",function(t,i,r){var u;return u=function(){function t(){this.link=n(this.link,this);this.$log=i;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template="<span class='angular-google-map-layer' ng-transclude><\/span>";this.replace=!0;this.scope={show:"=show",type:"=type",namespace:"=namespace",options:"=options",onCreated:"&oncreated"}}return t.prototype.link=function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return n.onCreated!=null?new r(n,t,i,u,
1787n.onCreated):new r(n,t,i,u)}}(this))},t}(),new u}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMapControl",["uiGmapControl",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDragZoom",["uiGmapDragZoom",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDrawingManager",["uiGmapDrawingManager",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapFreeDrawPolygons",["uiGmapApiFreeDrawPolygons",function(n){return new n}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapMapType",["$timeout","uiGmapLogger","uiGmapMapTypeParentModel",function(t,i,r){var u;return u=function(){function t(){this.link=n(this.link,this);this.$log=i;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template='<span class="angular-google-map-layer" ng-transclude><\/span>';this.replace=!0;this.scope={show:"=show",options:"=options",refresh:"=refresh",id:"@"}}return t.prototype.link=function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return new r(n,t,i,u)}}(this))},t}(),new u}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapMapTypes",["$timeout","uiGmapLogger","uiGmapMapTypesParentModel",function(t,i,r){var u;return u=function(){function t(){this.link=n(this.link,this);this.$log=i;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template='<span class="angular-google-map-layers" ng-transclude><\/span>';this.scope={mapTypes:"=mapTypes",show:"=show",options:"=options",refresh:"=refresh",id:"=idKey"}}return t.prototype.link=function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return new r(n,t,i,u)}}(this))},t}(),new u}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygons",["uiGmapPolygons",function(n){return new n}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapSearchBox",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapSearchBoxParentModel","$http","$templateCache","$compile",function(i,r,u,f,e,o){var s;return s=function(){function s(){this.link=n(this.link,this);this.$log=r;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template="<span class='angular-google-map-search' ng-transclude><\/span>";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,r,s,h){return i.then(function(i){return function(c){return n.template==null&&(e.put("uigmap-searchbox-default.tpl.html",'<input type="text">'),n.template="uigmap-searchbox-default.tpl.html"),f.get(n.template,{cache:e}).then(function(f){var e;if(e=f.data,t.isUndefined(n.events)){i.$log.error("searchBox: the events property is required");return}return h.getScope().deferred.promise.then(function(f){var h;if(h=t.isDefined(n.position)?n.position.toUpperCase().replace(/-/g,"_"):"TOP_LEFT",!c.ControlPosition[h]){i.$log.error("searchBox: invali
1787d position property");return}return new u(n,r,s,f,h,o(e)(n))})})}}(this))},s}(),new s}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapShow",["$animate","uiGmapLogger",function(n,i){return{scope:{uiGmapShow:"=",uiGmapAfterShow:"&",uiGmapAfterHide:"&"},link:function(r,u){var e,o,f;return e=function(t,i){return n[t](u,"ng-hide").then(function(){return i()})},o=function(t,i){return n[t](u,"ng-hide",i)},f=function(n,r){return t.version.major>1?i.error("uiGmapShow is not supported for Angular Major greater than 1.\nYour Major is "+t.version.major+'"'):t.version.major===1&&t.version.minor<3?o(n,r):e(n,r)},r.$watch("uiGmapShow",function(n){return n&&f("removeClass",r.uiGmapAfterShow),n?void 0:f("addClass",r.uiGmapAfterHide)})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapStreetViewPanorama",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper",function(n,i,r,u){var f;return f="uiGmapStreetViewPanorama",{restrict:"EMA",template:'<div class="angular-google-map-street-view-panorama"><\/div>',replace:!0,scope:{focalcoord:"=",radius:"=?",events:"=?",options:"=?",control:"=?",povoptions:"=?",imagestatus:"="},link:function(e,o){return n.then(function(){return function(){var a,v,c,y,w,p,s,h,l,n;return h=void 0,n=void 0,c=!1,p=void 0,s=null,l=null,a=function(){return u.removeEvents(p),h!=null&&(h.unbind("position"),h.setVisible(!1)),n!=null?((n!=null?n.setVisible:void 0)!=null&&n.setVisible(!1),n=void 0):void 0},w=function(n,i){var r;return r=google.maps.geometry.spherical.computeHeading(n,i),c=!0,e.radius=e.radius||50,l=t.extend({heading:r,zoom:1,pitch:0},e.povoptions||{}),s=s=t.extend({navigationControl:!1,addressControl:!1,linksControl:!1,position:n,pov:l,visible:!0},e.options||{}),c=!1},v=function(){var t;if(!e.focalcoord){i.error(f+": focalCoord needs to be defined");return}if(!e.radius){i.error(f+": needs a radius to set the camera view from its focal target.");return}return a(),n==null&&(n=new google.maps.StreetViewService),e.events&&(p=u.setEvents(n,e,e)),t=r.getCoords(e.focalcoord),n.getPanoramaByLocation(t,e.radius,function(i,r){var u,f,c;return e.imagestatus!=null&&(e.imagestatus=r),((c=e.events)!=null?c.image_status_changed:void 0)!=null&&e.events.image_status_changed(n,"image_status_changed",e,r),r==="OK"?(f=i.location.latLng,w(f,t),u=o[0],h=new google.maps.StreetViewPanorama(u,s)):void 0})},e.control!=null&&(e.control.getOptions=function(){return s},e.control.getPovOptions=function(){return l},e.control.getGObject=function(){return n},e.control.getGPano=function(){return h}),e.$watch("options",function(n,t){if(n!==t&&n!==s&&!c)return v()}),y=!0,e.$watch("focalcoord",function(n,t){if(n!==t||y)return n==null?void 0:(y=!1,v())}),e.$on("$destroy",function(){return a()})}}(this))}}}])}.call(this);t.module("uiGmapgoogle-maps.wrapped").service("uiGmapuuid",function(){function n(){}return n.generate=function(){var t=n._gri,i=n._ha;return i(t(32),8)+"-"+i(t(16),4)+"-"+i(16384|t(12),4)+"-"+i(32768|t(14),4)+"-"+i(t(48),12)},n._gri=function(n){return 0>n?NaN:30>=n?0|Math.random()*(1<<n):53>=n?(0|1073741824*Math.random())+1073741824*(0|Math.random()*(1<<n-30)):NaN},n._ha=function(n,t){for(var i=n.toString(16),r=t-i.length,u="0";0<r;r>>>=1,u+=u)r&1&&(i=u+i);return i},n});t.module("uiGmapgoogle-maps.wrapped").service("uiGmapGoogleMapsUtilV3",function(){return{init:i.once(function(){+function(){function o(n,t){n.getMarkerClusterer().extend(o,google.maps.OverlayView);this.cluster_=n;this.className_=n.getMarkerClusterer().getClusterClass();this.styles_=t;this.center_=null;this.div_=null;this.sums_=null;this.visible_=!1;this.setMap(n.getMap())}function e(n){this.markerClusterer_=n;this.map_=n.getMap();this.gridSize_=n.getGridSize();this.minClusterSize_=n.getMinimumClusterSize();this.averageCenter_=n.getAverageCenter();this.hideLabel_=n.getHideLabel();this.markers_=[];this.center_=null;this.bounds_=null;this.clusterIcon_=new o(this,n.getStyles())}function i(n,t,r){this.extend(i,google.maps.OverlayView);t=t||[];r=r||{};this.markers_=[];this.clusters_=[];this.listeners_=[];this.activeMap_=null;this.ready_=!1;this.gridSize_=r.gridSize||60;this.minClusterSize_=r.minimumClusterSize||2;this.maxZoom_=r.maxZoom||null;this.styles_=r.styles||[];this.title_=r.title||"";this.zoomOnClick_=!0;void 0!==r.zoomOnClick&&(this.zoomOnClick_=r.zoomOnClick);this.averageCenter_=!1;void 0!==r.averageCenter&&(this.averageCenter_=r.averageCenter);this.ignoreHidden_=!1;void 0!==r.ignoreHidden&&(this.ignoreHidden_=r.ignoreHidden);this.enableRetinaIcons_=!1;void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons_=r.enableRetinaIcons);this.hideLabel_=!1;void 0!==r.hideLabel&&(this.hideLabel_=r.hideLabel);this.imagePath_=r.imagePath||i.IMAGE_PATH;this.imageExtension_=r.imageExtension||i.IMAGE_EXTENSION;this.imageSizes_=r.imageSizes||i.IMAGE_SIZES;this.calculator_=r.calculator||i.CALCULATOR;this.batchSize_=r.batchSize||i.BATCH_SIZE;this.batchSizeIE_=r.batchSizeIE||i.BATCH_SIZE_IE;
1787this.clusterClass_=r.clusterClass||"cluster";-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_);this.setupStyles_();this.addMarkers(t,!0);this.setMap(n)}function u(n){n=n||{};google.maps.OverlayView.apply(this,arguments);this.content_=n.content||"";this.disableAutoPan_=n.disableAutoPan||!1;this.maxWidth_=n.maxWidth||0;this.pixelOffset_=n.pixelOffset||new google.maps.Size(0,0);this.position_=n.position||new google.maps.LatLng(0,0);this.zIndex_=n.zIndex||null;this.boxClass_=n.boxClass||"infoBox";this.boxStyle_=n.boxStyle||{};this.closeBoxMargin_=n.closeBoxMargin||"2px";this.closeBoxURL_=n.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";n.closeBoxURL===""&&(this.closeBoxURL_="");this.infoBoxClearance_=n.infoBoxClearance||new google.maps.Size(1,1);typeof n.visible=="undefined"&&(n.visible=typeof n.isHidden=="undefined"?!0:!n.isHidden);this.isHidden_=!n.visible;this.alignBottom_=n.alignBottom||!1;this.pane_=n.pane||"floatPane";this.enableEventPropagation_=n.enableEventPropagation||!1;this.div_=null;this.closeListener_=null;this.moveListener_=null;this.contextListener_=null;this.eventListeners_=null;this.fixedWidthSet_=null}function c(n,t){function i(){}i.prototype=t.prototype;n.superClass_=t.prototype;n.prototype=new i;n.prototype.constructor=n}function f(n,t){this.marker_=n;this.handCursorURL_=n.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_=f.getSharedCross(t)}function h(n){n=n||{};n.labelContent=n.labelContent||"";n.labelAnchor=n.labelAnchor||new google.maps.Point(0,0);n.labelClass=n.labelClass||"markerLabels";n.labelStyle=n.labelStyle||{};n.labelInBackground=n.labelInBackground||!1;typeof n.labelVisible=="undefined"&&(n.labelVisible=!0);typeof n.raiseOnDrag=="undefined"&&(n.raiseOnDrag=!0);typeof n.clickable=="undefined"&&(n.clickable=!0);typeof n.draggable=="undefined"&&(n.draggable=!1);typeof n.optimized=="undefined"&&(n.optimized=!1);n.crossImage=n.crossImage||"http"+(document.location.protocol==="https:"?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png";n.handCursor=n.handCursor||"http"+(document.location.protocol==="https:"?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur";n.optimized=!1;this.label=new f(this,n.crossImage,n.handCursor);google.maps.Marker.apply(this,arguments)}function t(n){var t=n||{};this.ready_=!1;this.dragging_=!1;n.visible==r&&(n.visible=!0);n.shadow==r&&(n.shadow="7px -3px 5px rgba(88,88,88,0.7)");n.anchor==r&&(n.anchor=s.BOTTOM);this.setValues(t)}o.prototype.onAdd=function(){var t,i,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(){i=t});google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0;i=!1});google.maps.event.addDomListener(this.div_,"click",function(r){if(t=!1,!i){var e,f,u=n.cluster_.getMarkerClusterer();google.maps.event.trigger(u,"click",n.cluster_);google.maps.event.trigger(u,"clusterclick",n.cluster_);u.getZoomOnClick()&&(f=u.getMaxZoom(),e=n.cluster_.getBounds(),u.getMap().fitBounds(e),setTimeout(function(){u.getMap().fitBounds(e);null!==f&&u.getMap().getZoom()>f&&u.getMap().setZoom(f+1)},100));r.cancelBubble=!0;r.stopPropagation&&r.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_)})};o.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)};o.prototype.draw=function(){if(this.visible_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.top=n.y+"px";this.div_.style.left=n.x+"px"}};o.prototype.hide=function(){this.div_&&(this.div_.style.display="none");this.visible_=!1};o.prototype.show=function(){if(this.div_){var n="",r=this.backgroundPosition_.split(" "),t=parseInt(r[0].trim(),10),i=parseInt(r[1].trim(),10),u=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(u);n="<img src='"+this.url_+"' style='position: absolute; top: "+i+"px; left: "+t+"px; ";n+=this.cluster_.getMarkerClusterer().enableRetinaIcons_?"width: "+this.width_+"px;height: "+this.height_+"px;":"clip: rect("+-1*i+"px, "+(-1*t+this.width_)+"px, "+(-1*i+this.height_)+"px, "+-1*t+"px);";n+="'>";this.div_.innerHTML=n+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+(this.cluster_.hideLabel_?" ":this.sums_.text)+"<\/div>";this.div_.title="undefined"==typeof this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title;this.div_.style.display=""}this.visible_=!0};o.prototype.useStyle=function(n){var i,t;this.sums_=n;i=Math.max(0,n.index-1);i=Math.min(this.styles_.length-1,i);t=this.styles_[i];this.url_=t.url;this.height_=t.height;this.width_=t.width;this.anchorText_=t.anchorText||[0,0];this.anchorIcon_=t.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=t.textColor||"black";this.textSize_=t.textSize||11;this.textDecoration_=t.textDecoration||"none";this.fontWeight_=t.fontWeight||"bold";this.fontStyle_=t.fontStyle||"normal";this.fontFamily_=t.fontFamily||"Arial,sans-serif";this.backgroundPosition_=t.backgroundPosition||"0 0"};o.prototype.setCenter=function(n){this.center_=n};o.prototype.createCss=function(n){var t=[];return t.push("cursor: pointer;
1787"),t.push("position: absolute; top: "+n.y+"px; left: "+n.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")};o.prototype.getPosFromLatLng_=function(n){var t=this.getProjection().fromLatLngToDivPixel(n);return t.x-=this.anchorIcon_[1],t.y-=this.anchorIcon_[0],t.x=parseInt(t.x,10),t.y=parseInt(t.y,10),t};e.prototype.getSize=function(){return this.markers_.length};e.prototype.getMarkers=function(){return this.markers_};e.prototype.getCenter=function(){return this.center_};e.prototype.getMap=function(){return this.map_};e.prototype.getMarkerClusterer=function(){return this.markerClusterer_};e.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),n=0;n<i.length;n++)t.extend(i[n].getPosition());return t};e.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=[];delete this.markers_};e.prototype.addMarker=function(n){var t,i,u;if(this.isMarkerAlreadyAdded_(n))return!1;if(this.center_){if(this.averageCenter_){var r=this.markers_.length+1,f=(this.center_.lat()*(r-1)+n.getPosition().lat())/r,e=(this.center_.lng()*(r-1)+n.getPosition().lng())/r;this.center_=new google.maps.LatLng(f,e);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();if(n.isAdded=!0,this.markers_.push(n),i=this.markers_.length,u=this.markerClusterer_.getMaxZoom(),null!==u&&this.map_.getZoom()>u)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i<this.minClusterSize_)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i===this.minClusterSize_)for(t=0;i>t;t++)this.markers_[t].setMap(null);else n.setMap(null);return!0};e.prototype.isMarkerInClusterBounds=function(n){return this.bounds_.contains(n.getPosition())};e.prototype.calculateBounds_=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(n)};e.prototype.updateIcon_=function(){var r=this.markers_.length,n=this.markerClusterer_.getMaxZoom(),t,i;if(null!==n&&this.map_.getZoom()>n||r<this.minClusterSize_)return void this.clusterIcon_.hide();t=this.markerClusterer_.getStyles().length;i=this.markerClusterer_.getCalculator()(this.markers_,t);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.useStyle(i);this.clusterIcon_.show()};e.prototype.isMarkerAlreadyAdded_=function(n){for(var t=0,i=this.markers_.length;i>t;t++)if(n===this.markers_[t])return!0;return!1};i.prototype.onAdd=function(){var n=this;this.activeMap_=this.getMap();this.ready_=!0;this.repaint();this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){n.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(){n.redraw_()})]};i.prototype.onRemove=function(){for(var n=0;n<this.markers_.length;n++)this.markers_[n].getMap()!==this.activeMap_&&this.markers_[n].setMap(this.activeMap_);for(n=0;
1787n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[];this.activeMap_=null;this.ready_=!1};i.prototype.draw=function(){};i.prototype.setupStyles_=function(){var n,t;if(!(this.styles_.length>0))for(n=0;n<this.imageSizes_.length;n++)t=this.imageSizes_[n],this.styles_.push({url:this.imagePath_+(n+1)+"."+this.imageExtension_,height:t,width:t})};i.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),i=new google.maps.LatLngBounds,n=0;n<t.length;n++)i.extend(t[n].getPosition());this.getMap().fitBounds(i)};i.prototype.getGridSize=function(){return this.gridSize_};i.prototype.setGridSize=function(n){this.gridSize_=n};i.prototype.getMinimumClusterSize=function(){return this.minClusterSize_};i.prototype.setMinimumClusterSize=function(n){this.minClusterSize_=n};i.prototype.getMaxZoom=function(){return this.maxZoom_};i.prototype.setMaxZoom=function(n){this.maxZoom_=n};i.prototype.getStyles=function(){return this.styles_};i.prototype.setStyles=function(n){this.styles_=n};i.prototype.getTitle=function(){return this.title_};i.prototype.setTitle=function(n){this.title_=n};i.prototype.getZoomOnClick=function(){return this.zoomOnClick_};i.prototype.setZoomOnClick=function(n){this.zoomOnClick_=n};i.prototype.getAverageCenter=function(){return this.averageCenter_};i.prototype.setAverageCenter=function(n){this.averageCenter_=n};i.prototype.getIgnoreHidden=function(){return this.ignoreHidden_};i.prototype.setIgnoreHidden=function(n){this.ignoreHidden_=n};i.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_};i.prototype.setEnableRetinaIcons=function(n){this.enableRetinaIcons_=n};i.prototype.getImageExtension=function(){return this.imageExtension_};i.prototype.setImageExtension=function(n){this.imageExtension_=n};i.prototype.getImagePath=function(){return this.imagePath_};i.prototype.setImagePath=function(n){this.imagePath_=n};i.prototype.getImageSizes=function(){return this.imageSizes_};i.prototype.setImageSizes=function(n){this.imageSizes_=n};i.prototype.getCalculator=function(){return this.calculator_};i.prototype.setCalculator=function(n){this.calculator_=n};i.prototype.setHideLabel=function(n){this.hideLabel_=n};i.prototype.getHideLabel=function(){return this.hideLabel_};i.prototype.getBatchSizeIE=function(){return this.batchSizeIE_};i.prototype.setBatchSizeIE=function(n){this.batchSizeIE_=n};i.prototype.getClusterClass=function(){return this.clusterClass_};i.prototype.setClusterClass=function(n){this.clusterClass_=n};i.prototype.getMarkers=function(){return this.markers_};i.prototype.getTotalMarkers=function(){return this.markers_.length};i.prototype.getClusters=function(){return this.clusters_};i.prototype.getTotalClusters=function(){return this.clusters_.length};i.prototype.addMarker=function(n,t){this.pushMarkerTo_(n);t||this.redraw_()};i.prototype.addMarkers=function(n,t){for(var i in n)n.hasOwnProperty(i)&&this.pushMarkerTo_(n[i]);t||this.redraw_()};i.prototype.pushMarkerTo_=function(n){if(n.getDraggable()){var t=this;google.maps.event.addListener(n,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})}n.isAdded=!1;this.markers_.push(n)};i.prototype.removeMarker=function(n,t,i){var u=!0&&!i,r=this.removeMarker_(n,u);return!t&&r&&this.repaint(),r};i.prototype.removeMarkers=function(n,t,i){for(var f,u=!1,e=!0&&!i,r=0;r<n.length;r++)f=this.removeMarker_(n[r],e),u=u||f;return!t&&u&&this.repaint(),u};i.prototype.removeMarker_=function(n,t){var i,r=-1;if(this.markers_.indexOf)r=this.markers_.indexOf(n);else for(i=0;i<this.markers_.length;i++)if(n===this.markers_[i]){r=i;break}return-1===r?!1:(t&&n.setMap(null),this.markers_.splice(r,1),!0)};i.prototype.clearMarkers=function(){this.resetViewport_(!0);this.markers_=[]};
1787i.prototype.repaint=function(){var n=this.clusters_.slice();this.clusters_=[];this.resetViewport_(!1);this.redraw_();setTimeout(function(){for(var t=0;t<n.length;t++)n[t].remove()},0)};i.prototype.getExtendedBounds=function(n){var t=this.getProjection(),e=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),o=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),r=t.fromLatLngToDivPixel(e),i,u,f;return r.x+=this.gridSize_,r.y-=this.gridSize_,i=t.fromLatLngToDivPixel(o),i.x-=this.gridSize_,i.y+=this.gridSize_,u=t.fromDivPixelToLatLng(r),f=t.fromDivPixelToLatLng(i),n.extend(u),n.extend(f),n};i.prototype.redraw_=function(){this.createClusters_(0)};i.prototype.resetViewport_=function(n){for(var i,t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.markers_.length;t++)i=this.markers_[t],i.isAdded=!1,n&&i.setMap(null)};i.prototype.distanceBetweenPoints_=function(n,t){var i=(t.lat()-n.lat())*Math.PI/180,r=(t.lng()-n.lng())*Math.PI/180,u=Math.sin(i/2)*Math.sin(i/2)+Math.cos(n.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2),f=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u));return 6371*f};i.prototype.isMarkerInBounds_=function(n,t){return t.contains(n.getPosition())};i.prototype.addToClosestCluster_=function(n){for(var u,t,f,o=4e4,r=null,i=0;
1787i<this.clusters_.length;i++)t=this.clusters_[i],f=t.getCenter(),f&&(u=this.distanceBetweenPoints_(f,n.getPosition()),o>u&&(o=u,r=t));r&&r.isMarkerInClusterBounds(n)?r.addMarker(n):(t=new e(this),t.addMarker(n),this.clusters_.push(t))};i.prototype.createClusters_=function(n){var t,i,u,e=this,f,r;if(this.ready_){for(0===n&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),u=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.020707717434718,-178.48388434375),new google.maps.LatLng(-85.081364443845445,178.00048865625)),f=this.getExtendedBounds(u),r=Math.min(n+this.batchSize_,this.markers_.length),t=n;r>t;t++)i=this.markers_[t],!i.isAdded&&this.isMarkerInBounds_(i,f)&&(!this.ignoreHidden_||this.ignoreHidden_&&i.getVisible())&&this.addToClosestCluster_(i);if(r<this.markers_.length)this.timerRefStatic=setTimeout(function(){e.createClusters_(r)},0);else for(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this),t=0;
1787t<this.clusters_.length;t++)this.clusters_[t].updateIcon_()}};i.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)this.prototype[t]=n.prototype[t];return this}.apply(n,[t])};i.CALCULATOR=function(n,t){for(var i=0,u=n.length.toString(),r=u;0!==r;)r=parseInt(r/10,10),i++;return i=Math.min(i,t),{text:u,index:i,title:""}};i.BATCH_SIZE=2e3;i.BATCH_SIZE_IE=500;i.IMAGE_PATH="//cdn.rawgit.com/mahnunchik/markerclustererplus/master/images/m";i.IMAGE_EXTENSION="png";i.IMAGE_SIZES=[53,56,66,78,90];"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});
1788/**
1789 *  google-maps-utility-library-v3-infobox
1790 *
1791 * @version: 1.1.14
1792 * @author: Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
1793 * @contributors: Nicholas McCready
1794 * @date: Fri May 13 2016 16:35:27 GMT-0400 (EDT)
1795 * @license: Apache License 2.0
1796 */
1797u.prototype=new google.maps.OverlayView;u.prototype.createInfoBoxDiv_=function(){var n,t,i,u=this,r=function(n){n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()},f=function(n){n.returnValue=!1;n.preventDefault&&n.preventDefault();u.enableEventPropagation_||r(n)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),typeof this.content_.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(i=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-i.left-i.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],t=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],n=0;n<t.length;n++)this.eventListeners_.push(google.maps.event.addDomListener(this.div_,t[n],r));this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",f);google.maps.event.trigger(this,"domready")}};u.prototype.getCloseBoxImg_=function(){var n="";return this.closeBoxURL_!==""&&(n="<img",n+=" src='"+this.closeBoxURL_+"'",n+=" align=right",n+=" style='",n+=" position: relative;",n+=" cursor: pointer;",n+=" margin: "+this.closeBoxMargin_+";",n+="'>"),n};u.prototype.addClickHandler_=function(){var n;this.closeBoxURL_!==""?(n=this.div_.firstChild,this.closeListener_=google.maps.event.addDomListener(n,"click",this.getCloseClickHandler_())):this.closeListener_=null};u.prototype.getCloseClickHandler_=function(){var n=this;return function(t){t.cancelBubble=!0;t.stopPropagation&&t.stopPropagation();google.maps.event.trigger(n,"closeclick");n.close()}};u.prototype.panBox_=function(n){var i,y,e=0,f=0,p;if(!n&&(i=this.getMap(),i instanceof google.maps.Map)){i.getBounds().contains(this.position_)||i.setCenter(this.position_);y=i.getBounds();var l=i.getDiv(),a=l.offsetWidth,o=l.offsetHeight,s=this.pixelOffset_.width,r=this.pixelOffset_.height,v=this.div_.offsetWidth,h=this.div_.offsetHeight,c=this.infoBoxClearance_.width,u=this.infoBoxClearance_.height,t=this.getProjection().fromLatLngToContainerPixel(this.position_);t.x<-s+c?e=t.x+s-c:t.x+v+s+c>a&&(e=t.x+v+s+c-a);this.alignBottom_?t.y<-r+u+h?f=t.y+r-u-h:t.y+r+u>o&&(f=t.y+r+u-o):t.y<-r+u?f=t.y+r-u:t.y+h+r+u>o&&(f=t.y+h+r+u-o);e===0&&f===0||(p=i.getCenter(),i.panBy(e,f))}};u.prototype.setBoxStyle_=function(){var n,t;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";t=this.boxStyle_;for(n in t)t.hasOwnProperty(n)&&(this.div_.style[n]=t[n]);this.div_.style.WebkitTransform="translateZ(0)";typeof this.div_.style.opacity!="undefined"&&this.div_.style.opacity!==""&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+this.div_.style.opacity*100+')"',this.div_.style.filter="alpha(opacity="+this.div_.style.opacity*100+")");this.div_.style.position="absolute";this.div_.style.visibility="hidden";this.zIndex_!==null&&(this.div_.style.zIndex=this.zIndex_)}};u.prototype.getBoxWidths_=function(){var i,n={top:0,bottom:0,left:0,right:0},t=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(i=t.ownerDocument.defaultView.getComputedStyle(t,""),i&&(n.top=parseInt(i.borderTopWidth,10)||0,n.bottom=parseInt(i.borderBottomWidth,10)||0,n.left=parseInt(i.borderLeftWidth,10)||0,n.right=parseInt(i.borderRightWidth,10)||0)):document.documentElement.currentStyle&&t.currentStyle&&(n.top=parseInt(t.currentStyle.borderTopWidth,10)||0,n.bottom=parseInt(t.currentStyle.borderBottomWidth,10)||0,n.left=parseInt(t.currentStyle.borderLeftWidth,10)||0,n.right=parseInt(t.currentStyle.borderRightWidth,10)||0),n};u.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)};u.prototype.draw=function(){this.createInfoBoxDiv_();var n=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=n.x+this.pixelOffset_.width+"px";this.alignBottom_?this.div_.style.bottom=-(n.y+this.pixelOffset_.height)+"px":this.div_.style.top=n.y+this.pixelOffset_.height+"px";this.div_.style.visibility=this.isHidden_?"hidden":"visible"};u.prototype.setOptions=function(n){typeof n.boxClass!="undefined"&&(this.boxClass_=n.boxClass,this.setBoxStyle_());typeof n.boxStyle!="undefined"&&(this.boxStyle_=n.boxStyle,this.setBoxStyle_());typeof n.content!="undefined"&&this.setContent(n.content);typeof n.disableAutoPan!="undefined"&&(this.disableAutoPan_=n.disableAutoPan);typeof n.maxWidth!="undefined"&&(this.maxWidth_=n.maxWidth);typeof n.pixelOffset!="undefined"&&(this.pixelOffset_=n.pixelOffset);typeof n.alignBottom!="undefined"&&(this.alignBottom_=n.alignBottom);typeof n.position!="undefined"&&this.setPosition(n.position);typeof n.zIndex!="undefined"&&this.setZIndex(n.zIndex);typeof n.closeBoxMargin!="undefined"&&(this.closeBoxMargin_=n.closeBoxMargin);typeof n.closeBoxURL!="undefined"&&(this.closeBoxURL_=n.closeBoxURL);typeof n.infoBoxClearance!="undefined"&&(this.infoBoxClearance_=n.infoBoxClearance);typeof n.isHidden!="undefined"&&(this.isHidden_=n.isHidden);typeof n.visible!="undefined"&&(this.isHidden_=!n.visible);typeof n.enableEventPropagation!="undefined"&&(this.enableEventPropagation_=n.enableEventPropagation);this.div_&&this.draw()};u.prototype.setContent=function(n){this.content_=n;this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),typeof n.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",typeof n.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n))),this.addClickHandler_());google.maps.event.trigger(this,"content_changed")};u.prototype.setPosition=function(n){this.position_=n;this.div_&&this.draw();google.maps.event.trigger(this,"position_changed")};u.prototype.setZIndex=function(n){this.zIndex_=n;this.div_&&(this.div_.style.zIndex=n);google.maps.event.trigger(this,"zindex_changed")};u.prototype.setVisible=function(n){this.isHidden_=!n;this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")};u.prototype.getContent=function(){return this.content_};u.prototype.getPosition=function(){return this.position_};u.prototype.getZIndex=function(){return this.zIndex_};u.prototype.getVisible=function(){return typeof this.getMap()=="undefined"||this.getMap()===null?!1:!this.isHidden_};u.prototype.show=function(){this.isHidden_=!1;this.div_&&(this.div_.style.visibility="visible")};u.prototype.hide=function(){this.isHidden_=!0;this.div_&&(this.div_.style.visibility="hidden")};u.prototype.open=function(n,t){var i=this;t&&(this.position_=t.getPosition(),this.moveListener_=google.maps.event.addListener(t,"position_changed",function(){i.setPosition(this.getPosition())}));this.setMap(n);this.div_&&this.panBox_()};u.prototype.close=function(){var n;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(n=0;n<this.eventListeners_.length;n++)google.maps.event.removeListener(this.eventListeners_[n]);this.eventListeners_=null}this.moveListener_&&(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null);this.contextListener_&&(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null);this.setMap(null)};
1798/**
1799 *  google-maps-utility-library-v3-keydragzoom
1800 *
1801 * @version: 2.0.9
1802 * @author: Nianwei Liu [nianwei at gmail dot com] & Gary Little [gary at luxcentral dot com]
1803 * @contributors: undefined
1804 * @date: Fri May 13 2016 13:45:18 GMT-0400 (EDT)
1805 * @license: Apache License 2.0
1806 */
1807(function(){function t(n,t){var r=this,i=new google.maps.OverlayView;i.onAdd=function(){r.init_(n,t)};i.draw=function(){};i.onRemove=function(){};i.setMap(n);this.prjov_=i}var r=function(n){var t;switch(n){case"thin":t="2px";break;case"medium":t="4px";break;case"thick":t="6px";break;default:t=n}return t},o=function(n){var i,t={};if(document.defaultView&&document.defaultView.getComputedStyle){if(i=n.ownerDocument.defaultView.getComputedStyle(n,""),i)return t.top=parseInt(i.borderTopWidth,10)||0,t.bottom=parseInt(i.borderBottomWidth,10)||0,t.left=parseInt(i.borderLeftWidth,10)||0,t.right=parseInt(i.borderRightWidth,10)||0,t}else if(document.documentElement.currentStyle&&n.currentStyle)return t.top=parseInt(r(n.currentStyle.borderTopWidth),10)||0,t.bottom=parseInt(r(n.currentStyle.borderBottomWidth),10)||0,t.left=parseInt(r(n.currentStyle.borderLeftWidth),10)||0,t.right=parseInt(r(n.currentStyle.borderRightWidth),10)||0,t;return t.top=parseInt(n.style["border-top-width"],10)||0,t.bottom=parseInt(n.style["border-bottom-width"],10)||0,t.left=parseInt(n.style["border-left-width"],10)||0,t.right=parseInt(n.style["border-right-width"],10)||0,t},u={x:0,y:0},s=function(){u.x=typeof document.documentElement.scrollLeft!="undefined"?document.documentElement.scrollLeft:document.body.scrollLeft;u.y=typeof document.documentElement.scrollTop!="undefined"?document.documentElement.scrollTop:document.body.scrollTop};s();var h=function(t){var i=0,r=0;return t=t||n.event,typeof t.pageX!="undefined"?(i=t.pageX,r=t.pageY):typeof t.clientX!="undefined"&&(i=t.clientX+u.x,r=t.clientY+u.y),{left:i,top:r}},f=function(t){for(var f=t.offsetLeft,e=t.offsetTop,i=t.offsetParent,u,h;i!==null;){i!==document.body&&i!==document.documentElement&&(f-=i.scrollLeft,e-=i.scrollTop);var r=i,o=r.offsetLeft,s=r.offsetTop;o||s||!n.getComputedStyle||(u=document.defaultView.getComputedStyle(r,null).MozTransform||document.defaultView.getComputedStyle(r,null).WebkitTransform,u&&typeof u=="string"&&(h=u.split(","),o+=parseInt(h[4],10)||0,s+=parseInt(h[5],10)||0));f+=o;e+=s;i=i.offsetParent}return{left:f,top:e}},i=function(n,t){if(n&&t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},e=function(n,t){typeof t!="undefined"&&(n.style.opacity=t);typeof n.style.opacity!="undefined"&&n.style.opacity!==""&&(n.style.filter="alpha(opacity="+n.style.opacity*100+")")};t.prototype.init_=function(t,r){var u,f=this;for(this.map_=t,r=r||{},this.key_=r.key||"shift",this.key_=this.key_.toLowerCase(),this.borderWidths_=o(this.map_.getDiv()),this.veilDiv_=[],u=0;u<4;u++)this.veilDiv_[u]=document.createElement("div"),this.veilDiv_[u].onselectstart=function(){return!1},i(this.veilDiv_[u].style,{backgroundColor:"gray",opacity:.25,cursor:"crosshair"}),i(this.veilDiv_[u].style,r.paneStyle),i(this.veilDiv_[u].style,r.veilStyle),i(this.veilDiv_[u].style,{position:"absolute",overflow:"hidden",display:"none"}),this.key_==="shift"&&(this.veilDiv_[u].style.MozUserSelect="none"),e(this.veilDiv_[u]),this.veilDiv_[u].style.backgroundColor==="transparent"&&(this.veilDiv_[u].style.backgroundColor="white",e(this.veilDiv_[u],0)),this.map_.getDiv().appendChild(this.veilDiv_[u]);this.noZoom_=r.noZoom||!1;this.visualEnabled_=r.visualEnabled||!1;
1807this.visualClass_=r.visualClass||"";this.visualPosition_=r.visualPosition||google.maps.ControlPosition.LEFT_TOP;this.visualPositionOffset_=r.visualPositionOffset||new google.maps.Size(35,0);this.visualPositionIndex_=r.visualPositionIndex||null;this.visualSprite_=r.visualSprite||"http"+(document.location.protocol==="https:"?"s":"")+"://maps.gstatic.com/mapfiles/ftr/controls/dragzoom_btn.png";this.visualSize_=r.visualSize||new google.maps.Size(20,20);this.visualTips_=r.visualTips||{};this.visualTips_.off=this.visualTips_.off||"Turn on drag zoom mode";this.visualTips_.on=this.visualTips_.on||"Turn off drag zoom mode";this.boxDiv_=document.createElement("div");i(this.boxDiv_.style,{border:"4px solid #736AFF"});i(this.boxDiv_.style,r.boxStyle);i(this.boxDiv_.style,{position:"absolute",display:"none"});e(this.boxDiv_);this.map_.getDiv().appendChild(this.boxDiv_);this.boxBorderWidths_=o(this.boxDiv_);this.listeners_=[google.maps.event.addDomListener(document,"keydown",function(n){f.onKeyDown_(n)}),google.maps.event.addDomListener(document,"keyup",function(n){f.onKeyUp_(n)}),google.maps.event.addDomListener(this.veilDiv_[0],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[1],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[2],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[3],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(document,"mousedown",function(n){f.onMouseDownDocument_(n)}),google.maps.event.addDomListener(document,"mousemove",function(n){f.onMouseMove_(n)}),google.maps.event.addDomListener(document,"mouseup",function(n){f.onMouseUp_(n)}),google.maps.event.addDomListener(n,"scroll",s)];this.hotKeyDown_=!1;this.mouseDown_=!1;this.dragging_=!1;this.startPt_=null;this.endPt_=null;this.mapWidth_=null;this.mapHeight_=null;this.mousePosn_=null;this.mapPosn_=null;this.visualEnabled_&&(this.buttonDiv_=this.initControl_(this.visualPositionOffset_),this.visualPositionIndex_!==null&&(this.buttonDiv_.index=this.visualPositionIndex_),this.map_.controls[this.visualPosition_].push(this.buttonDiv_),this.controlIndex_=this.map_.controls[this.visualPosition_].length-1)};t.prototype.initControl_=function(n){var r,u,t=this;return r=document.createElement("div"),r.className=this.visualClass_,r.style.position="relative",r.style.overflow="hidden",r.style.height=this.visualSize_.height+"px",r.style.width=this.visualSize_.width+"px",r.title=this.visualTips_.off,u=document.createElement("img"),u.src=this.visualSprite_,u.style.position="absolute",u.style.left=-(this.visualSize_.width*2)+"px",u.style.top="0px",r.appendChild(u),r.onclick=function(n){t.hotKeyDown_=!t.hotKeyDown_;t.hotKeyDown_?(t.buttonDiv_.firstChild.style.left=-(t.visualSize_.width*0)+"px",t.buttonDiv_.title=t.visualTips_.on,t.activatedByControl_=!0,google.maps.event.trigger(t,"activate")):(t.buttonDiv_.firstChild.style.left=-(t.visualSize_.width*2)+"px",t.buttonDiv_.title=t.visualTips_.off,google.maps.event.trigger(t,"deactivate"));t.onMouseMove_(n)},r.onmouseover=function(){t.buttonDiv_.firstChild.style.left=-(t.visualSize_.width*1)+"px"},r.onmouseout=function(){t.hotKeyDown_?(t.buttonDiv_.firstChild.style.left=-(t.visualSize_.width*0)+"px",t.buttonDiv_.title=t.visualTips_.on):(t.buttonDiv_.firstChild.style.left=-(t.visualSize_.width*2)+"px",t.buttonDiv_.title=t.visualTips_.off)},r.ondragstart=function(){return!1},i(r.style,{cursor:"pointer",marginTop:n.height+"px",marginLeft:n.width+"px"}),r};t.prototype.isHotKeyDown_=function(t){var i;if(t=t||n.event,i=t.shiftKey&&this.key_==="shift"||t.altKey&&this.key_==="alt"||t.ctrlKey&&this.key_==="ctrl",!i)switch(t.keyCode){case 16:this.key_==="shift"&&(i=!0);break;case 17:this.key_==="ctrl"&&(i=!0);break;case 18:this.key_==="alt"&&(i=!0)}return i};t.prototype.isMouseOnMap_=function(){var n=this.mousePosn_,t,i;return n?(t=this.mapPosn_,i=this.map_.getDiv(),n.left>t.left&&n.left<t.left+i.offsetWidth&&n.top>t.top&&n.top<t.top+i.offsetHeight):!1};t.prototype.setVeilVisibility_=function(){var n,r;if(this.map_&&this.hotKeyDown_&&this.isMouseOnMap_())if(r=this.map_.getDiv(),this.mapWidth_=r.offsetWidth-(this.borderWidths_.left+this.borderWidths_.right),this.mapHeight_=r.offsetHeight-(this.borderWidths_.top+this.borderWidths_.bottom),this.activatedByControl_){var t=parseInt(this.buttonDiv_.style.left,10)+this.visualPositionOffset_.width,u=parseInt(this.buttonDiv_.style.top,10)+this.visualPositionOffset_.height,i=this.visualSize_.width,f=this.visualSize_.height;for(this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=t+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=t+i+"px",this.veilDiv_[1].style.width=this.mapWidth_-(t+i)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=t+"px",this.veilDiv_[2].style.width=i+"px",this.veilDiv_[2].style.height=u+"px",this.veilDiv_[3].style.top=u+f+"px",this.veilDiv_[3].style.left=t+"px",this.veilDiv_[3].style.width=i+"px",this.veilDiv_[3].style.height=this.mapHeight_-(u+f)+"px",n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="block"}else{for(this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.width=this.mapWidth_+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",n=1;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.width="0px",this.veilDiv_[n].style.height="0px";for(n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="block"}else for(n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="none"};t.prototype.onKeyDown_=function(n){this.map_&&!this.hotKeyDown_&&this.isHotKeyDown_(n)&&(this.mapPosn_=f(this.map_.getDiv()),this.hotKeyDown_=!0,this.activatedByControl_=!1,this.setVeilVisibility_(),google.maps.event.trigger(this,"activate"))};t.prototype.getMousePoint_=function(n){var i=h(n),t=new google.maps.Point;return t.x=i.left-this.mapPosn_.left-this.borderWidths_.left,t.y=i.top-this.mapPosn_.top-this.borderWidths_.top,t.x=Math.min(t.x,this.mapWidth_),t.y=Math.min(t.y,this.mapHeight_),t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t};t.prototype.onMouseDown_=function(n){if(this.map_&&this.hotKeyDown_){this.mapPosn_=f(this.map_.getDiv());this.dragging_=!0;this.startPt_=this.endPt_=this.getMousePoint_(n);this.boxDiv_.style.width=this.boxDiv_.style.height="0px";var t=this.prjov_.getProjection(),i=t.fromContainerPixelToLatLng(this.startPt_);google.maps.event.trigger(this,"dragstart",i)}};t.prototype.onMouseDownDocument_=function(){this.mouseDown_=!0};t.prototype.onMouseMove_=function(n){if(this.mousePosn_=h(n),this.dragging_){this.endPt_=this.getMousePoint_(n);var t=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),r=Math.abs(this.startPt_.x-this.endPt_.x),u=Math.abs(this.startPt_.y-this.endPt_.y),e=Math.max(0,r-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)),o=Math.max(0,u-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom));this.veilDiv_[0].style.top="0px";this.veilDiv_[0].style.left="0px";this.veilDiv_[0].style.width=t+"px";this.veilDiv_[0].style.height=this.mapHeight_+"px";this.veilDiv_[1].style.top="0px";this.veilDiv_[1].style.left=t+r+"px";this.veilDiv_[1].style.width=this.mapWidth_-(t+r)+"px";this.veilDiv_[1].style.height=this.mapHeight_+"px";this.veilDiv_[2].style.top="0px";this.veilDiv_[2].style.left=t+"px";this.veilDiv_[2].style.width=r+"px";this.veilDiv_[2].style.height=i+"px";this.veilDiv_[3].style.top=i+u+"px";this.veilDiv_[3].style.left=t+"px";this.veilDiv_[3].style.width=r+"px";this.veilDiv_[3].style.height=this.mapHeight_-(i+u)+"px";this.boxDiv_.style.top=i+"px";this.boxDiv_.style.left=t+"px";this.boxDiv_.style.width=e+"px";this.boxDiv_.style.height=o+"px";this.boxDiv_.style.display="block";google.maps.event.trigger(this,"drag",new google.maps.Point(t,i+u),new google.maps.Point(t+r,i),this.prjov_.getProjection())}else this.mouseDown_||(this.mapPosn_=f(this.map_.getDiv()),this.setVeilVisibility_())};t.prototype.onMouseUp_=function(n){var u,l=this,t,i;if(this.mouseDown_=!1,this.dragging_){if(this.getMousePoint_(n).x===this.startPt_.x&&this.getMousePoint_(n).y===this.startPt_.y){this.onKeyUp_(n);return}var f=Math.min(this.startPt_.x,this.endPt_.x),e=Math.min(this.startPt_.y,this.endPt_.y),a=Math.abs(this.startPt_.x-this.endPt_.x),v=Math.abs(this.startPt_.y-this.endPt_.y),o=!0;o&&(f+=this.borderWidths_.left,e+=this.borderWidths_.top);var r=this.prjov_.getProjection(),s=r.fromContainerPixelToLatLng(new google.maps.Point(f,e+v)),h=r.fromContainerPixelToLatLng(new google.maps.Point(f+
1807a,e)),c=new google.maps.LatLngBounds(s,h);this.noZoom_?this.boxDiv_.style.display="none":(u=this.map_.getZoom(),this.map_.fitBounds(c),this.map_.getZoom()<u&&this.map_.setZoom(u),t=r.fromLatLngToContainerPixel(s),i=r.fromLatLngToContainerPixel(h),o&&(t.x-=this.borderWidths_.left,t.y-=this.borderWidths_.top,i.x-=this.borderWidths_.left,i.y-=this.borderWidths_.top),this.boxDiv_.style.left=t.x+"px",this.boxDiv_.style.top=i.y+"px",this.boxDiv_.style.width=Math.abs(i.x-t.x)-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)+"px",this.boxDiv_.style.height=Math.abs(i.y-t.y)-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom)+"px",setTimeout(function(){l.boxDiv_.style.display="none"},1e3));this.dragging_=!1;this.onMouseMove_(n);if(google.maps.event.trigger(this,"dragend",c),!this.isHotKeyDown_(n))this.onKeyUp_(n)}};t.prototype.onKeyUp_=function(){var n,t,i,u,f,r,e,o,s=null;if(this.map_&&this.hotKeyDown_){for(this.hotKeyDown_=!1,this.dragging_&&(this.boxDiv_.style.display="none",this.dragging_=!1,t=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),u=Math.abs(this.startPt_.x-this.endPt_.x),f=Math.abs(this.startPt_.y-this.endPt_.y),r=this.prjov_.getProjection(),e=r.fromContainerPixelToLatLng(new google.maps.Point(t,i+f)),o=r.fromContainerPixelToLatLng(new google.maps.Point(t+u,i)),s=new google.maps.LatLngBounds(e,o)),n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="none";this.visualEnabled_&&(this.buttonDiv_.firstChild.style.left=-(this.visualSize_.width*2)+"px",this.buttonDiv_.title=this.visualTips_.off,this.buttonDiv_.style.display="");google.maps.event.trigger(this,"deactivate",s)}};google.maps.Map.prototype.enableKeyDragZoom=function(n){this.dragZoom_=new t(this,n)};google.maps.Map.prototype.disableKeyDragZoom=function(){var t,n=this.dragZoom_;if(n){for(t=0;t<n.listeners_.length;++t)google.maps.event.removeListener(n.listeners_[t]);for(this.getDiv().removeChild(n.boxDiv_),t=0;t<n.veilDiv_.length;t++)this.getDiv().removeChild(n.veilDiv_[t]);n.visualEnabled_&&this.controls[n.visualPosition_].removeAt(n.controlIndex_);n.prjov_.setMap(null);this.dragZoom_=null}};google.maps.Map.prototype.keyDragZoomEnabled=function(){return this.dragZoom_!==null};google.maps.Map.prototype.getDragZoomObject=function(){return this.dragZoom_}})();
1808/**
1809 *  google-maps-utility-library-v3-markerwithlabel
1810 *
1811 * @version: 1.1.10
1812 * @author: Gary Little (inspired by code from Marc Ridey of Google).
1813 * @contributors: Nicholas McCready
1814 * @date: Fri May 13 2016 16:29:58 GMT-0400 (EDT)
1815 * @license: Apache License 2.0
1816 */
1817c(f,google.maps.OverlayView);f.getSharedCross=function(n){var t;return typeof f.getSharedCross.crossDiv=="undefined"&&(t=document.createElement("img"),t.style.cssText="position: absolute; z-index: 1000002; display: none;",t.style.marginLeft="-8px",t.style.marginTop="-9px",t.src=n,f.getSharedCross.crossDiv=t),f.getSharedCross.crossDiv};f.prototype.onAdd=function(){var n=this,r=!1,t=!1,s,h,c,e,i,l,a,u=20,v="url("+this.handCursorURL_+")",o=function(n){n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()},y=function(){n.marker_.setAnimation(null)};this.getPanes().overlayImage.appendChild(this.labelDiv_);this.getPanes().overlayMouseTarget.appendChild(this.eventDiv_);typeof f.getSharedCross.processed=="undefined"&&(this.getPanes().overlayImage.appendChild(this.crossDiv_),f.getSharedCross.processed=!0);this.listeners_=[google.maps.event.addDomListener(this.eventDiv_,"mouseover",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(this.style.cursor="pointer",google.maps.event.trigger(n.marker_,"mouseover",t))}),google.maps.event.addDomListener(this.eventDiv_,"mouseout",function(i){(n.marker_.getDraggable()||n.marker_.getClickable())&&!t&&(this.style.cursor=n.marker_.getCursor(),google.maps.event.trigger(n.marker_,"mouseout",i))}),google.maps.event.addDomListener(this.eventDiv_,"mousedown",function(i){t=!1;n.marker_.getDraggable()&&(r=!0,this.style.cursor=v);(n.marker_.getDraggable()||n.marker_.getClickable())&&(google.maps.event.trigger(n.marker_,"mousedown",i),o(i))}),google.maps.event.addDomListener(document,"mouseup",function(f){var o;if(r&&(r=!1,n.eventDiv_.style.cursor="pointer",google.maps.event.trigger(n.marker_,"mouseup",f)),t){if(i){o=n.getProjection().fromLatLngToDivPixel(n.marker_.getPosition());o.y+=u;n.marker_.setPosition(n.getProjection().fromDivPixelToLatLng(o));try{n.marker_.setAnimation(google.maps.Animation.BOUNCE);setTimeout(y,1406)}catch(h){}}n.crossDiv_.style.display="none";n.marker_.setZIndex(s);e=!0;t=!1;f.latLng=n.marker_.getPosition();google.maps.event.trigger(n.marker_,"dragend",f)}}),google.maps.event.addListener(n.marker_.getMap(),"mousemove",function(f){var e;r&&(t?(f.latLng=new google.maps.LatLng(f.latLng.lat()-h,f.latLng.lng()-c),e=n.getProjection().fromLatLngToDivPixel(f.latLng),i&&(n.crossDiv_.style.left=e.x+"px",n.crossDiv_.style.top=e.y+"px",n.crossDiv_.style.display="",e.y-=u),n.marker_.setPosition(n.getProjection().fromDivPixelToLatLng(e)),i&&(n.eventDiv_.style.top=e.y+u+"px"),google.maps.event.trigger(n.marker_,"drag",f)):(h=f.latLng.lat()-n.marker_.getPosition().lat(),c=f.latLng.lng()-n.marker_.getPosition().lng(),s=n.marker_.getZIndex(),l=n.marker_.getPosition(),a=n.marker_.getMap().getCenter(),i=n.marker_.get("raiseOnDrag"),t=!0,n.marker_.setZIndex(1e6),f.latLng=n.marker_.getPosition(),google.maps.event.trigger(n.marker_,"dragstart",f)))}),google.maps.event.addDomListener(document,"keydown",function(r){t&&r.keyCode===27&&(i=!1,n.marker_.setPosition(l),n.marker_.getMap().setCenter(a),google.maps.event.trigger(document,"mouseup",r))}),google.maps.event.addDomListener(this.eventDiv_,"click",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(e?e=!1:(google.maps.event.trigger(n.marker_,"click",t),o(t)))}),google.maps.event.addDomListener(this.eventDiv_,"dblclick",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(google.maps.event.trigger(n.marker_,"dblclick",t),o(t))}),google.maps.event.addListener(this.marker_,"dragstart",function(){t||(i=this.get("raiseOnDrag"))}),google.maps.event.addListener(this.marker_,"drag",function(){t||i&&(n.setPosition(u),n.labelDiv_.style.zIndex=1e6+(this.get("labelInBackgroun
1817d")?-1:1))}),google.maps.event.addListener(this.marker_,"dragend",function(){t||i&&n.setPosition(0)}),google.maps.event.addListener(this.marker_,"position_changed",function(){n.setPosition()}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){n.setZIndex()}),google.maps.event.addListener(this.marker_,"visible_changed",function(){n.setVisible()}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){n.setVisible()}),google.maps.event.addListener(this.marker_,"title_changed",function(){n.setTitle()}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){n.setContent()}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){n.setAnchor()}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){n.setStyles()}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){n.setStyles()})]};f.prototype.onRemove=function(){var n;for(this.labelDiv_.parentNode.removeChild(this.labelDiv_),this.eventDiv_.parentNode.removeChild(this.eventDiv_),n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n])};f.prototype.draw=function(){this.setContent();this.setTitle();this.setStyles()};f.prototype.setContent=function(){var n=this.marker_.get("labelContent");typeof n.nodeType=="undefined"?(this.labelDiv_.innerHTML=n,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(n),n=n.cloneNode(!0),this.eventDiv_.innerHTML="",this.eventDiv_.appendChild(n))};f.prototype.setTitle=function(){this.eventDiv_.title=this.marker_.getTitle()||""};f.prototype.setStyles=function(){var n,t;this.labelDiv_.className=this.marker_.get("labelClass");this.eventDiv_.className=this.labelDiv_.className;this.labelDiv_.style.cssText="";this.eventDiv_.style.cssText="";t=this.marker_.get("labelStyle");for(n in t)t.hasOwnProperty(n)&&(this.labelDiv_.style[n]=t[n],this.eventDiv_.style[n]=t[n]);this.setMandatoryStyles()};f.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute";this.labelDiv_.style.overflow="hidden";typeof this.labelDiv_.style.opacity!="undefined"&&this.labelDiv_.style.opacity!==""&&(this.labelDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity='+this.labelDiv_.style.opacity*100+')"',this.labelDiv_.style.filter="alpha(opacity="+this.labelDiv_.style.opacity*100+")");this.eventDiv_.style.position=this.labelDiv_.style.position;this.eventDiv_.style.overflow=this.labelDiv_.style.overflow;this.eventDiv_.style.opacity=.01;this.eventDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity=1)"';this.eventDiv_.style.filter="alpha(opacity=1)";this.setAnchor();this.setPosition();this.setVisible()};f.prototype.setAnchor=function(){var n=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-n.x+"px";this.labelDiv_.style.marginTop=-n.y+"px";this.eventDiv_.style.marginLeft=-n.x+"px";this.eventDiv_.style.marginTop=-n.y+"px"};f.prototype.setPosition=function(n){var t=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());typeof n=="undefined"&&(n=0);this.labelDiv_.style.left=Math.round(t.x)+"px";this.labelDiv_.style.top=Math.round(t.y-n)+"px";this.eventDiv_.style.left=this.labelDiv_.style.left;this.eventDiv_.style.top=this.labelDiv_.style.top;this.setZIndex()};f.prototype.setZIndex=function(){var n=this.marker_.get("labelInBackground")?-1:1;typeof this.marker_.getZIndex()=="undefined"?(this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+n,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex):(this.labelDiv_.style.zIndex=this.marker_.getZIndex()+n,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex)};f.prototype.setVisible=function(){this.labelDiv_.style.display=this.marker_.get("labelVisible")?this.marker_.getVisible()?"block":"none":"none";this.eventDiv_.style.display=this.labelDiv_.style.display};c(h,google.maps.Marker);h.prototype.setMap=function(n){google.maps.Marker.prototype.setMap.apply(this,arguments);this.label.setMap(n)};
1818/**
1819 * @license
1820 * Copyright 2013 Google Inc. All Rights Reserved.
1821 *
1822 * Licensed under the Apache License, Version 2.0 (the "License");
1823 * you may not use this file except in compliance with the License.
1824 * You may obtain a copy of the License at
1825 *
1826 *     http://www.apache.org/licenses/LICENSE-2.0
1827 *
1828 * Unless required by applicable law or agreed to in writing, software
1829 * distributed under the License is distributed on an "AS IS" BASIS,
1830 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1831 * See the License for the specific language governing permissions and
1832 * limitations under the License.
1833 */
1834t.prototype=new google.maps.OverlayView;n.RichMarker=t;t.prototype.getVisible=function(){return this.get("visible")};t.prototype.getVisible=t.prototype.getVisible;t.prototype.setVisible=function(n){this.set("visible",n)};t.prototype.setVisible=t.prototype.setVisible;t.prototype.visible_changed=function(){this.ready_&&(this.markerWrapper_.style.display=this.getVisible()?"":"none",this.draw())};t.prototype.visible_changed=t.prototype.visible_changed;t.prototype.setFlat=function(n){this.set("flat",!!n)};t.prototype.setFlat=t.prototype.setFlat;t.prototype.getFlat=function(){return this.get("flat")};t.prototype.getFlat=t.prototype.getFlat;t.prototype.getWidth=function(){return this.get("width")};t.prototype.getWidth=t.prototype.getWidth;t.prototype.getHeight=function(){return this.get("height")};t.prototype.getHeight=t.prototype.getHeight;t.prototype.setShadow=function(n){this.set("shadow",n);this.flat_changed()};t.prototype.setShadow=t.prototype.setShadow;t.prototype.getShadow=function(){return this.get("shadow")};t.prototype.getShadow=t.prototype.getShadow;t.prototype.flat_changed=function(){this.ready_&&(this.markerWrapper_.style.boxShadow=this.markerWrapper_.style.webkitBoxShadow=this.markerWrapper_.style.MozBoxShadow=this.getFlat()?"":this.getShadow())};t.prototype.flat_changed=t.prototype.flat_changed;t.prototype.setZIndex=function(n){this.set("zIndex",n)};t.prototype.setZIndex=t.prototype.setZIndex;t.prototype.getZIndex=function(){return this.get("zIndex")};t.prototype.getZIndex=t.prototype.getZIndex;t.prototype.zIndex_changed=function(){this.getZIndex()&&this.ready_&&(this.markerWrapper_.style.zIndex=this.getZIndex())};t.prototype.zIndex_changed=t.prototype.zIndex_changed;t.prototype.getDraggable=function(){return this.get("draggable")};t.prototype.getDraggable=t.prototype.getDraggable;t.prototype.setDraggable=function(n){this.set("draggable",!!n)};t.prototype.setDraggable=t.prototype.setDraggable;t.prototype.draggable_changed=function(){this.ready_&&(this.getDraggable()?this.addDragging_(this.markerWrapper_):this.removeDragListeners_())};t.prototype.draggable_changed=t.prototype.draggable_changed;t.prototype.getPosition=function(){return this.get("position")};t.prototype.getPosition=t.prototype.getPosition;t.prototype.setPosition=function(n){this.set("position",n)};t.prototype.setPosition=t.prototype.setPosition;t.prototype.position_changed=function(){this.draw()};t.prototype.position_changed=t.prototype.position_changed;t.prototype.getAnchor=function(){return this.get("anchor")};t.prototype.getAnchor=t.prototype.getAnchor;t.prototype.setAnchor=function(n){this.set("anchor",n)};t.prototype.setAnchor=t.prototype.setAnchor;t.prototype.anchor_changed=function(){this.draw()};t.prototype.anchor_changed=t.prototype.anchor_changed;t.prototype.htmlToDocumentFragment_=function(n){var t=document.createElement("DIV"),i;if(t.innerHTML=n,t.childNodes.length==1)return t.removeChild(t.firstChild);for(i=document.createDocumentFragment();t.firstChild;)i.appendChild(t.firstChild);return i};t.prototype.removeChildren_=function(n){if(n)for(var t;t=n.firstChild;)n.removeChild(t)};t.prototype.setContent=function(n){this.set("content",n)};t.prototype.setContent=t.prototype.setContent;t.prototype.getContent=function(){return this.get("content")};t.prototype.getContent=t.prototype.getContent;t.prototype.content_changed=function(){var n,t,u,i,r;if(this.markerContent_){if(this.removeChildren_(this.markerContent_),n=this.getContent(),n){for(typeof n=="string"&&(n=n.replace(/^\s*([\S\s]*)\b\s*$/,"$1"),n=this.htmlToDocumentFragment_(n)),this.markerContent_.appendChild(n),t=this,u=this.markerContent_.getElementsByTagName("IMG"),i=0;r=u[i];i++)google.maps.event.addDomListener(r,"mousedown",function(n){t.getDraggable()&&(n.preventDefault&&n.preventDefault(),n.returnValue=!1)}),google.maps.event.addDomListener(r,"load",function(){t.draw()});google.maps.event.trigger(this,"domready")}this.ready_&&this.draw()}};t.prototype.content_changed=t.prototype.content_changed;t.prototype.setCursor_=function(n){if(this.ready_){var t="";navigator.userAgent.indexOf("Gecko/")!==-1?(n=="dragging"&&(t="-moz-grabbing"),n=="dragready"&&(t="-moz-grab"),n=="draggable"&&(t="pointer")):((n=="dragging"||n=="dragready")&&(t="move"),n=="draggable"&&(t="pointer"));this.markerWrapper_.style.cursor!=t&&(this.markerWrapper_.style.cursor=t)}};t.prototype.startDrag=function(n){if(this.getDraggable()&&!this.dragging_){this.dragging_=!0;var t=this.getMap();this.mapDraggable_=t.get("draggable");t.set("draggable",!1);this.mouseX_=n.clientX;this.mouseY_=n.clientY;this.setCursor_("dragready");this.markerWrapper_.style.MozUserSelect="none";this.markerWrapper_.style.KhtmlUserSelect="none";this.markerWrapper_.style.WebkitUserSelect="none";this.markerWrapper_.unselectable="on";this.markerWrapper_.onselectstart=function(){return!1};this.addDraggingListeners_();google.maps.event.trigger(this,"dragstart")}};t.prototype.stopDrag=function(){this.getDraggable()&&this.dragging_&&(this.dragging_=!1,this.getMap().set("draggable",this.mapDraggable_),this.mouseX_=this.mouseY_=this.mapDraggable_=null,this.markerWrapper_.style.MozUserSelect="",this.markerWrapper_.style.KhtmlUserSelect="",this.markerWrapper_.style.WebkitUserSelect="",this.markerWrapper_.unselectable="off",this.markerWrapper_.onselectstart=function(){},this.removeDraggingListeners_(),this.setCursor_("draggable"),google.maps.event.trigger(this,"dragend"),this.draw())};t.prototype.drag=function(n){var r,u,t,i;
1834if(!this.getDraggable()||!this.dragging_){this.stopDrag();return}r=this.mouseX_-n.clientX;u=this.mouseY_-n.clientY;this.mouseX_=n.clientX;this.mouseY_=n.clientY;t=parseInt(this.markerWrapper_.style.left,10)-r;i=parseInt(this.markerWrapper_.style.top,10)-u;this.markerWrapper_.style.left=t+"px";this.markerWrapper_.style.top=i+"px";var f=this.getOffset_(),e=new google.maps.Point(t-f.width,i-f.height),o=this.getProjection();this.setPosition(o.fromDivPixelToLatLng(e));this.setCursor_("dragging");google.maps.event.trigger(this,"drag")};t.prototype.removeDragListeners_=function(){this.draggableListener_&&(google.maps.event.removeListener(this.draggableListener_),delete this.draggableListener_);this.setCursor_("")};t.prototype.addDragging_=function(n){if(n){var t=this;this.draggableListener_=google.maps.event.addDomListener(n,"mousedown",function(n){t.startDrag(n)});this.setCursor_("draggable")}};t.prototype.addDraggingListeners_=function(){var t=this;this.markerWrapper_.setCapture?(this.markerWrapper_.setCapture(!0),this.draggingListeners_=[google.maps.event.addDomListener(this.markerWrapper_,"mousemove",function(n){t.drag(n)},!0),google.maps.event.addDomListener(this.markerWrapper_,"mouseup",function(){t.stopDrag();t.markerWrapper_.releaseCapture()},!0)]):this.draggingListeners_=[google.maps.event.addDomListener(n,"mousemove",function(n){t.drag(n)},!0),google.maps.event.addDomListener(n,"mouseup",function(){t.stopDrag()},!0)]};t.prototype.removeDraggingListeners_=function(){if(this.draggingListeners_){for(var n=0,t;t=this.draggingListeners_[n];n++)google.maps.event.removeListener(t);this.draggingListeners_.length=0}};t.prototype.getOffset_=function(){var r=this.getAnchor(),n,t,i;if(typeof r=="object")return r;if(n=new google.maps.Size(0,0),!this.markerContent_)return n;t=this.markerContent_.offsetWidth;i=this.markerContent_.offsetHeight;switch(r){case s.TOP:n.width=-t/2;break;case s.TOP_RIGHT:n.width=-t;break;case s.LEFT:n.height=-i/2;break;case s.MIDDLE:n.width=-t/2;n.height=-i/2;break;case s.RIGHT:n.width=-t;n.height=-i/2;break;case s.BOTTOM_LEFT:n.height=-i;break;case s.BOTTOM:n.width=-t/2;n.height=-i;break;case s.BOTTOM_RIGHT:n.width=-t;n.height=-i}return n};t.prototype.onAdd=function(){var n,t;this.markerWrapper_||(this.markerWrapper_=document.createElement("DIV"),this.markerWrapper_.style.position="absolute");this.getZIndex()&&(this.markerWrapper_.style.zIndex=this.getZIndex());this.markerWrapper_.style.display=this.getVisible()?"":"none";this.markerContent_||(this.markerContent_=document.createElement("DIV"),this.markerWrapper_.appendChild(this.markerContent_),n=this,google.maps.event.addDomListener(this.markerContent_,"click",function(){google.maps.event.trigger(n,"click")}),google.maps.event.addDomListener(this.markerContent_,"mouseover",function(){google.maps.event.trigger(n,"mouseover")}),google.maps.event.addDomListener(this.markerContent_,"mouseout",function(){google.maps.event.trigger(n,"mouseout")}));this.ready_=!0;this.content_changed();this.flat_changed();this.draggable_changed();t=this.getPanes();t&&t.overlayMouseTarget.appendChild(this.markerWrapper_);google.maps.event.trigger(this,"ready")};t.prototype.onAdd=t.prototype.onAdd;t.prototype.draw=function(){var n,t,i;if(this.ready_&&!this.dragging_&&(n=this.getProjection(),n)){var f=this.get("position"),r=n.fromLatLngToDivPixel(f),u=this.getOffset_();this.markerWrapper_.style.top=r.y+u.height+"px";this.markerWrapper_.style.left=r.x+u.width+"px";t=this.markerContent_.offsetHeight;i=this.markerContent_.offsetWidth;i!=this.get("width")&&this.set("width",i);t!=this.get("height")&&this.set("height",t)}};t.prototype.draw=t.prototype.draw;t.prototype.onRemove=function(){this.markerWrapper_&&this.markerWrapper_.parentNode&&this.markerWrapper_.parentNode.removeChild(this.markerWrapper_);this.removeDragListeners_()};t.prototype.onRemove=t.prototype.onRemove;var s={TOP_LEFT:1,TOP:2,TOP_RIGHT:3,LEFT:4,MIDDLE:5,RIGHT:6,BOTTOM_LEFT:7,BOTTOM:8,BOTTOM_RIGHT:9};n.RichMarkerPosition=s;n.InfoBox=u;n.Cluster=e;n.ClusterIcon=o;n.MarkerClusterer=i;n.MarkerLabel_=f;n.MarkerWithLabel=h;n.RichMarker=t}()})}}),function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,i,r){t.module("uiGmapgoogle-maps.wrapped").service("uiGmapDataStructures",function(){return{Graph:r(1).Graph,Queue:r(1).Queue}})},function(n,t,i){(function(){n.exports={Graph:i(2),Heap:i(3),LinkedList:i(4),Map:i(5),Queue:i(6),RedBlackTree:i(7),Trie:i(8)}}).call(this)},function(n){(function(){var i,t={}.hasOwnProperty;i=function(){function n(){this._nodes={};this.nodeSize=0;this.edgeSize=0}return n.prototype.addNode=function(n){if(!this._nodes[n])return this.nodeSize++,this._nodes[n]={_outEdges:{},_inEdges:{}}},n.prototype.getNode=function(n){return this._nodes[n]},n.prototype.removeNode=function(n){var r,i,u,f,e;if(i=this._nodes[n],i){f=i._outEdges;for(u in f)t.call(f,u)&&this.removeEdge(n,u);e=i._inEdges;for(r in e)t.call(e,r)&&this.removeEdge(r,n);this.nodeSize--;delete this._nodes[n]}else return;return i},n.prototype.addEdge=function(n,t,i){var r,u,f;if(i==null&&(i=1),!this.getEdge(n,t))return(u=this._nodes[n],f=this._nodes[t],!u||!f)?void 0:(r={weight:i},u._outEdges[t]=r,f._inEdges[n]=r,this.edgeSize++,r)},n.prototype.getEdge=function(n,t){var i,r;return i=this._nodes[n],r=this._nodes[t],i&&r?i._outEdges[t]:void 0},n.prototype.removeEdge=function(n,t){var i,r,u;if(r=this._nodes[n],u=this._nodes[t],i=this.getEdge(n,t),i)return delete r._outEdges[t],delete u._inEdges[n],this.edgeSize--,i},n.prototype.getInEdgesOf=function(n){var i,r,u,f;u=this._nodes[n];r=[];f=u!=null?u._inEdges:void 0;for(i in f)t.call(f,i)&&r.push(this.getEdge(i,n));return r},n.prototype.getOutEdgesOf=function(n){var i,r,u,f;i=this._nodes[n];r=[];
1834f=i!=null?i._outEdges:void 0;for(u in f)t.call(f,u)&&r.push(this.getEdge(n,u));return r},n.prototype.getAllEdgesOf=function(n){var i,t,f,o,r,u,e;if(t=this.getInEdgesOf(n),f=this.getOutEdgesOf(n),t.length===0)return f;for(o=this.getEdge(n,n),i=r=0,u=t.length;0<=u?r<u:r>u;i=0<=u?++r:--r)if(t[i]===o){e=[t[t.length-1],t[i]];t[i]=e[0];t[t.length-1]=e[1];t.pop();break}return t.concat(f)},n.prototype.forEachNode=function(n){var i,u,r=this._nodes;for(i in r)t.call(r,i)&&(u=r[i],n(u,i))},n.prototype.forEachEdge=function(n){var e,u,o,f,i,r;i=this._nodes;for(u in i)if(t.call(i,u)){o=i[u];r=o._outEdges;for(f in r)t.call(r,f)&&(e=r[f],n(e))}},n}();n.exports=i}).call(this)},function(n){(function(){var u,i,t,r;u=function(){function n(n){var u,f,r,t,e,i;for(n==null&&(n=[]),this._data=[void 0],r=0,e=n.length;r<e;r++)f=n[r],f!=null&&this._data.push(f);if(this._data.length>1)for(u=t=2,i=this._data.length;2<=i?t<i:t>i;u=2<=i?++t:--t)this._upHeap(u);this.size=this._data.length-1}return n.prototype.add=function(n){if(n!=null)return this._data.push(n),this._upHeap(this._data.length-1),this.size++,n},n.prototype.removeMin=function(){var n;if(this._data.length!==1)return(this.size--,this._data.length===2)?this._data.pop():(n=this._data[1],this._data[1]=this._data.pop(),this._downHeap(),n)},n.prototype.peekMin=function(){return this._data[1]},n.prototype._upHeap=function(n){for(var i,r=this._data[n];this._data[n]<this._data[t(n)]&&n>1;)i=[this._data[t(n)],this._data[n]],this._data[n]=i[0],this._data[t(n)]=i[1],n=t(n)},n.prototype._downHeap=function(){for(var t,u,n=1;i(n<this._data.length);)if(t=i(n),t<this._data.length-1&&this._data[r(n)]<this._data[t]&&(t=r(n)),this._data[t]<this._data[n])u=[this._data[n],this._data[t]],this._data[t]=u[0],this._data[n]=u[1],n=t;else break},n}();t=function(n){return n>>1};i=function(n){return n<<1};r=function(n){return(n<<1)+1};n.exports=u}).call(this)},function(n){(function(){var t;t=function(){function n(n){var i,t,r;for(n==null&&(n=[]),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,t=0,r=n.length;t<r;t++)i=n[t],this.add(i)}return n.prototype.at=function(n){var t,i,r,u,f;if(-this.size<=n&&n<this.size){if(n=this._adjust(n),n*2<this.size)for(t=this.head,i=r=1;r<=n;i=r+=1)t=t.next;else for(t=this.tail,i=u=1,f=this.size-n-1;u<=f;i=u+=1)t=t.prev;return t}},n.prototype.add=function(n,t){var r,i,f,u,e;if(t==null&&(t=this.size),-this.size<=t&&t<=this.size)return i={value:n},t=this._adjust(t),this.size===0?this.head=i:t===0?(f=[i,this.head,i],this.head.prev=f[0],i.next=f[1],this.head=f[2]):(r=this.at(t-1),u=[r.next,i,i,r],i.next=u[0],(e=r.next)!=null?e.prev=u[1]:void 0,r.next=u[2],i.prev=u[3]),t===this.size&&(this.tail=i),this.size++,n},n.prototype.removeAt=function(n){var t,i,r;if(n==null&&(n=this.size-1),-this.size<=n&&n<this.size)return this.size===0?void 0:(n=this._adjust(n),this.size===1?(i=this.head.value,this.head.value=this.tail.value=void 0):n===0?(i=this.head.value,this.head=this.head.next,this.head.prev=void 0):(t=this.at(n),i=t.value,t.prev.next=t.next,(r=t.next)!=null&&(r.prev=t.prev),n===this.size-1&&(this.tail=t.prev)),this.size--,i)},n.prototype.remove=function(n){var t;if(n!=null){for(t=this.head;t&&t.value!==n;)t=t.next;if(t)return this.size===1?this.head.value=this.tail.value=void 0:t===this.head?(this.head=this.head.next,this.head.prev=void 0):t===this.tail?(this.tail=this.tail.prev,this.tail.next=void 0):(t.prev.next=t.next,t.next.prev=t.prev),this.size--,n}},n.prototype.indexOf=function(n,t){var i,r;if(t==null&&(t=0),this.head.value==null&&!this.head.next||t>=this.size)return-1;for(t=Math.max(0,this._adjust(t)),i=this.at(t),r=t;i;){if(i.value===n)break;i=i.next;r++}return r===this.size?-1:r},n.prototype._adjust=function(n){return n<0?this.size+n:n},n}();n.exports=t}).call(this)},function(n){(function(){var u,t,i,r,f={}.hasOwnProperty;t="_mapId_";u=function(){function n(t){var i,r;this._content={};this._itemId=0;this._id=n._newMapId();this.size=0;for(i in t)f.call(t,i)&&(r=t[i],this.set(i,r))}return n._mapIdTracker=0,n._newMapId=function(){return this._mapIdTracker++},n.prototype.hash=function(n,u){var f,e;return u==null&&(u=!1),e=i(n),r(n)?(f=t+this._id,u&&!n[f]&&(n[f]=this._itemId++),f+"_"+n[f]):e+"_"+n},n.prototype.set=function(n,t){return this.has(n)||this.size++,this._content[this.hash(n,!0)]=[t,n],t},n.prototype.get=function(n){var t;if((t=this._content[this.hash(n)])!=null)return t[0]},n.prototype.has=function(n){return this.hash(n)in this._content},n.prototype["delete"]=function(n){var i;return(i=this.hash(n),i in this._content)?(delete this._content[i],r(n)&&delete n[t+this._id],this.size--,!0):!1},n.prototype.forEach=function(n){var t,i,r=this._content;for(t in r)f.call(r,t)&&(i=r[t],n(i[1],i[0]))},n}();r=function(n){var r,u,f,t,e;for(r=["Boolean","Number","String","Undefined","Null","RegExp","Function"],f=i(n),t=0,e=r.length;t<e;t++)if(u=r[t],f===u)return!1;return!0};i=function(n){return Object.prototype.toString.apply(n).match(/\[object (.+)\]/)[1]};n.exports=u}).call(this)},function(n){(function(){var t;t=function(){function n(n){n==null&&(n=[]);this._content=n;this._dequeueIndex=0;this.size=this._content.length}return n.prototype.enqueue=function(n){return this.size++,this._content.push(n),n},n.prototype.dequeue=function(){var n;if(this.size!==0)return this.size--,n=this._content[this._dequeueIndex],this._dequeueIndex++,this._dequeueIndex*2>this._content.length&&(this._content=this._content.slice(this._dequeueIndex),this._dequeueIndex=0),n},n.prototype.peek=function(){return this._content[this._dequeueIndex]},n}();n.exports=t}).call(this)},function(n){(function(){var t,f,e,o,i,p,c,s,u,r,h,v,l,a,y;f=0;e=1;o=2;c=3;i=1;t=2;p=function(){function n(n){var i,t,r;for(n==null&&(n=[]),this._root,this.size=0,t=0,r=n.length;t<r;t++)i=n[t],i!=null&&this.add(i)}return n.prototype.add=function(n){var h,a,l,v;if(n!=null){if(this.size++,l={value:n,_color:i},this._root){if(a=s(this._root,function(t){return n===t.value?f:n<t.value?t._left?e:(l._parent=t,t._left=l,c):t._right?o:(l._parent=t,t._right=l,c)}),a!=null)return}else this._root=l;for(h=l;;){if(h===this._root){h._color=t;break}if(h._parent._color===t)break;
1834if(((v=y(h))!=null?v._color:void 0)===i){h._parent._color=t;y(h)._color=t;u(h)._color=i;h=u(h);continue}!r(h)&&r(h._parent)?(this._rotateLeft(h._parent),h=h._left):r(h)&&!r(h._parent)&&(this._rotateRight(h._parent),h=h._right);h._parent._color=t;u(h)._color=i;r(h)?this._rotateRight(u(h)):this._rotateLeft(u(h));break}return n}},n.prototype.has=function(n){var t;return t=s(this._root,function(t){return n===t.value?f:n<t.value?e:o}),t?!0:!1},n.prototype.peekMin=function(){var n;if((n=l(this._root))!=null)return n.value},n.prototype.peekMax=function(){var n;if((n=v(this._root))!=null)return n.value},n.prototype.remove=function(n){var t;if(t=s(this._root,function(t){return n===t.value?f:n<t.value?e:o}),t)return this._removeNode(this._root,t),this.size--,n},n.prototype.removeMin=function(){var n,t;if(n=l(this._root),n)return t=n.value,this._removeNode(this._root,n),t},n.prototype.removeMax=function(){var n,t;if(n=v(this._root),n)return t=n.value,this._removeNode(this._root,n),t},n.prototype._removeNode=function(n,u){var f,e,o,s,c,v,y,p,w,b;if(u._left&&u._right&&(e=l(u._right),u.value=e.value,u=e),e=u._left||u._right,e||(e={color:t,_right:void 0,_left:void 0,isLeaf:!0}),e._parent=u._parent,(o=u._parent)!=null&&(o[h(u)]=e),u._color===t)if(e._color===i)e._color=t,e._parent||(this._root=e);else for(;;){if(!e._parent){this._root=e.isLeaf?void 0:e;break}if(f=a(e),(f!=null?f._color:void 0)===i&&(e._parent._color=i,f._color=t,r(e)?this._rotateLeft(e._parent):this._rotateRight(e._parent)),f=a(e),e._parent._color===t&&(!f||f._color===t&&(!f._left||f._left._color===t)&&(!f._right||f._right._color===t))){f!=null&&(f._color=i);e.isLeaf&&(e._parent[h(e)]=void 0);e=e._parent;continue}if(e._parent._color===i&&(!f||f._color===t&&(!f._left||((s=f._left)!=null?s._color:void 0)===t)&&(!f._right||((c=f._right)!=null?c._color:void 0)===t))){f!=null&&(f._color=i);e._parent._color=t;break}if((f!=null?f._color:void 0)===t){r(e)&&(!f._right||f._right._color===t)&&((v=f._left)!=null?v._color:void 0)===i?(f._color=i,(y=f._left)!=null&&(y._color=t),this._rotateRight(f)):r(e)||f._left&&f._left._color!==t||((p=f._right)!=null?p._color:void 0)!==i||(f._color=i,(w=f._right)!=null&&(w._color=t),this._rotateLeft(f));break}f=a(e);f._color=e._parent._color;r(e)?(f._right._color=t,this._rotateRight(e._parent)):(f._left._color=t,this._rotateLeft(e._parent))}if(e.isLeaf)return(b=e._parent)!=null?b[h(e)]=void 0:void 0},n.prototype._rotateLeft=function(n){var t,i;return(t=n._parent)!=null&&(t[h(n)]=n._right),n._right._parent=n._parent,n._parent=n._right,n._right=n._right._left,n._parent._left=n,(i=n._right)!=null&&(i._parent=n),n._parent._parent==null?this._root=n._parent:void 0},n.prototype._rotateRight=function(n){var t,i;return(t=n._parent)!=null&&(t[h(n)]=n._left),n._left._parent=n._parent,n._parent=n._left,n._left=n._left._right,n._parent._right=n,(i=n._left)!=null&&(i._parent=n),n._parent._parent==null?this._root=n._parent:void 0},n}();r=function(n){return n===n._parent._left};h=function(n){return r(n)?"_left":"_right"};s=function(n,t){for(var r,i=n,u=void 0;i;){if(r=t(i),r===f){u=i;break}if(r===e)i=i._left;else if(r===o)i=i._right;else if(r===c)break}return u};l=function(n){return s(n,function(n){return n._left?e:f})};v=function(n){return s(n,function(n){return n._right?o:f})};u=function(n){var t;if((t=n._parent)!=null)return t._parent};y=function(n){if(u(n))return r(n._parent)?u(n)._right:u(n)._left};a=function(n){return r(n)?n._parent._right:n._parent._left};n.exports=p}).call(this)},function(n,t,i){(function(){var u,f,t,r,e={}.hasOwnProperty;u=i(6);t="end";f=function(){function n(n){var i,t,r;for(n==null&&(n=[]),this._root={},this.size=0,t=0,r=n.length;t<r;t++)i=n[t],this.add(i)}return n.prototype.add=function(n){var i,r,u,f;if(n!=null){for(this.size++,i=this._root,u=0,f=n.length;u<f;u++)r=n[u],i[r]==null&&(i[r]={}),i=i[r];return i[t]=!0,n}},n.prototype.has=function(n){var i,u,r,f;if(n==null)return!1;for(i=this._root,r=0,f=n.length;r<f;r++){if(u=n[r],i[u]==null)return!1;i=i[u]}return i[t]?!0:!1},n.prototype.longestPrefixOf=function(n){var t,i,u,r,f;if(n==null)return"";for(t=this._root,u="",r=0,f=n.length;r<f;r++){if(i=n[r],t[i]==null)break;u+=i;t=t[i]}return u},n.prototype.wordsWithPrefix=function(n){var h,r,i,f,o,a,c,s,v,l;if(n==null)return[];for(n!=null||(n=""),c=[],r=this._root,s=0,v=n.length;s<v;s++)if(i=n[s],r=r[i],r==null)return[];for(o=new u,o.enqueue([r,""]);o.size!==0;){l=o.dequeue();f=l[0];h=l[1];f[t]&&c.push(n+h);
1834for(i in f)e.call(f,i)&&(a=f[i],o.enqueue([a,h+i]))}return c},n.prototype.remove=function(n){var i,f,o,u,s,e,c,h;if(n!=null){for(i=this._root,u=[],s=0,c=n.length;s<c;s++){if(o=n[s],i[o]==null)return;i=i[o];u.push([o,i])}if(i[t]){if(this.size--,delete i[t],r(i,1))return n;for(f=e=h=u.length-1;h<=1?e<=1:e>=1;f=h<=1?++e:--e)if(r(u[f][1],1))break;else delete u[f-1][1][u[f][0]];return r(this._root[u[0][0]],1)||delete this._root[u[0][0]],n}}},n}();r=function(n,t){var r,i;if(t===0)return!0;i=0;for(r in n)if(e.call(n,r)&&(i++,i>=t))return!0;return!1};n.exports=f}).call(this)}]);t.module("uiGmapgoogle-maps.wrapped").service("uiGmapMarkerSpiderfier",["uiGmapGoogleMapApi",function(t){var i=this;return+function(){
1835/** @preserve OverlappingMarkerSpiderfier
1836https://github.com/jawj/OverlappingMarkerSpiderfier
1837Copyright (c) 2011 - 2013 George MacKerron
1838Released under the MIT licence: http://opensource.org/licenses/mit-license
1839Note: The Google Maps API v3 must be included *before* this code
1840 */
1841var t={}.hasOwnProperty,i=[].slice;this.OverlappingMarkerSpiderfier=function(){function l(n,i){var o,r,f,s,e,h;this.map=n;i==null&&(i={});for(r in i)t.call(i,r)&&(h=i[r],this[r]=h);for(this.projHelper=new this.constructor.ProjHelper(this.map),this.initMarkerArrays(),this.listeners={},e=["click","zoom_changed","maptypeid_changed"],f=0,s=e.length;f<s;f++)o=e[f],u.addListener(this.map,o,function(n){return function(){return n.unspiderfy()}}(this))}var u,e,c,o,s,v,f,r,a,h,y;for(r=l.prototype,a=[l,r],c=0,v=a.length;c<v;c++)y=a[c],y.VERSION="0.3.3";return e=void 0,u=void 0,f=void 0,h=Math.PI*2,r.keepSpiderfied=!1,r.markersWontHide=!1,r.markersWontMove=!1,r.nearbyDistance=20,r.circleSpiralSwitchover=9,r.circleFootSeparation=23,r.circleStartAngle=h/12,r.spiralFootSeparation=26,r.spiralLengthStart=11,r.spiralLengthFactor=4,r.spiderfiedZIndex=1e3,r.usualLegZIndex=10,r.highlightedLegZIndex=20,r.event="click",r.minZoomLevel=!1,r.legWeight=1.5,r.legColors={usual:{},highlighted:{}},s=r.legColors.usual,o=r.legColors.highlighted,l.initializeGoogleMaps=function(n){return e=n.maps,u=e.event,f=e.MapTypeId,s[f.HYBRID]=s[f.SATELLITE]="#fff",o[f.HYBRID]=o[f.SATELLITE]="#f00",s[f.TERRAIN]=s[f.ROADMAP]="#444",o[f.TERRAIN]=o[f.ROADMAP]="#f00",this.ProjHelper=function(n){return this.setMap(n)},this.ProjHelper.prototype=new e.OverlayView,this.ProjHelper.prototype.draw=function(){}},r.initMarkerArrays=function(){return this.markers=[],this.markerListenerRefs=[]},r.addMarker=function(n){var t;return n._oms!=null?this:(n._oms=!0,t=[u.addListener(n,this.event,function(t){return function(i){return t.spiderListener(n,i)}}(this))],this.markersWontHide||t.push(u.addListener(n,"visible_changed",function(t){return function(){return t.markerChangeListener(n,!1)}}(this))),this.markersWontMove||t.push(u.addListener(n,"position_changed",function(t){return function(){return t.markerChangeListener(n,!0)}}(this))),this.markerListenerRefs.push(t),this.markers.push(n),this)},r.markerChangeListener=function(n,t){if(n._omsData!=null&&(t||!n.getVisible())&&!(this.spiderfying!=null||this.unspiderfying!=null))return this.unspiderfy(t?n:null)},r.getMarkers=function(){return this.markers.slice(0)},r.removeMarker=function(n){var t,i,f,e,r;if(n._omsData!=null&&this.unspiderfy(),t=this.arrIndexOf(this.markers,n),t<0)return this;for(r=this.markerListenerRefs.splice(t,1)[0],i=0,f=r.length;i<f;i++)e=r[i],u.removeListener(e);return delete n._oms,this.markers.splice(t,1),this},r.clearMarkers=function(){var n,i,e,o,s,r,h,t,f;for(this.unspiderfy(),f=this.markers,n=i=0,e=f.length;i<e;n=++i){for(h=f[n],r=this.markerListenerRefs[n],t=0,o=r.length;t<o;t++)s=r[t],u.removeListener(s);delete h._oms}return this.initMarkerArrays(),this},r.addListener=function(n,t){var i;return((i=this.listeners)[n]!=null?i[n]:i[n]=[]).push(t),this},r.removeListener=function(n,t){var i;return i=this.arrIndexOf(this.listeners[n],t),i<0||this.listeners[n].splice(i,1),this},r.clearListeners=function(n){return this.listeners[n]=[],this},r.trigger=function(){var u,f,e,n,o,s,t,r;for(f=arguments[0],u=2<=arguments.length?i.call(arguments,1):[],t=(s=this.listeners[f])!=null?s:[],r=[],n=0,o=t.length;n<o;n++)e=t[n],r.push(e.apply(null,u));return r},r.generatePtsCircle=function(n,t){var u,c,l,f,i,o,r,s;for(l=this.circleFootSeparation*(2+n),o=l/h,c=h/n,s=[],f=i=0,r=n;0<=r?i<r:i>r;f=0<=r?++i:--i)u=this.circleStartAngle+f*c,s.push(new e.Point(t.x+o*Math.cos(u),t.y+o*Math.sin(u)));return s},r.generatePtsSpiral=function(n,t){var i,o,r,u,c,f,s;for(u=this.spiralLengthStart,i=0,s=[],o=r=0,f=n;0<=f?r<f:r>f;o=0<=f?++r:--r)i+=this.spiralFootSeparation/u+o*.0005,c=new e.Point(t.x+u*Math.cos(i),t.y+u*Math.sin(i)),u+=h*this.spiralLengthFactor/i,s.push(c);return s},r.spiderListener=function(t,i){var a,v,f,y,u,o,p,s,h,e,c,w,l;if(s=t._omsData!=null,s&&this.keepSpiderfied||(this.event==="mouseover"?(a=this,v=function(){return a.unspiderfy()},n.clearTimeout(r.timeout),r.timeout=setTimeout(v,3e3)):this.unspiderfy()),s||this.map.getStreetView().getVisible()||this.map.getMapTypeId()==="GoogleEarthAPI")return this.trigger("click",t,i);for(e=[],c=[],h=this.nearbyDistance,w=h*h,p=this.llToPt(t.position),l=this.markers,f=0,y=l.length;f<y;f++)(u=l[f],u.map!=null&&u.getVisible())&&(o=this.llToPt(u.position),this.ptDistanceSq(o,p)<w?e.push({marker:u,markerPt:o}):c.push(u));return e.length===1?this.trigger("click",t,i):this.spiderfy(e,c)},r.markersNearMarker=function(n,t){var r,o,i,s,h,u,f,c,e,l,a;if(t==null&&(t=!1),this.projHelper.getProjection()==null)throw"Must wait for 'idle' event on map before calling markersNearMarker";for(f=this.nearbyDistance,c=f*f,h=this.llToPt(n.position),u=[],e=this.markers,r=0,o=e.length;r<o;r++)if((i=e[r],i!==n&&i.map!=null&&i.getVisible())&&(s=this.llToPt((l=(a=i._omsData)!=null?a.usualPosition:void 0)!=null?l:i.position),this.ptDistanceSq(s,h)<c&&(u.pu
1841sh(i),t)))break;return u},r.markersNearAnyOtherMarker=function(){var r,n,t,o,b,k,d,i,s,u,h,f,e,c,l,g,a,v,y,p,w;if(this.projHelper.getProjection()==null)throw"Must wait for 'idle' event on map before calling markersNearAnyOtherMarker";for(l=this.nearbyDistance,g=l*l,e=function(){var n,u,t,f,e,r;for(t=this.markers,r=[],n=0,u=t.length;n<u;n++)i=t[n],r.push({pt:this.llToPt((f=(e=i._omsData)!=null?e.usualPosition:void 0)!=null?f:i.position),willSpiderfy:!1});return r}.call(this),v=this.markers,n=o=0,b=v.length;o<b;n=++o)if((s=v[n],s.map!=null&&s.getVisible())&&(u=e[n],!u.willSpiderfy))for(y=this.markers,t=c=0,k=y.length;c<k;t=++c)if((h=y[t],t!==n)&&h.map!=null&&h.getVisible()&&(f=e[t],!(t<n)||f.willSpiderfy)&&this.ptDistanceSq(u.pt,f.pt)<g){u.willSpiderfy=f.willSpiderfy=!0;break}for(p=this.markers,w=[],r=a=0,d=p.length;a<d;r=++a)i=p[r],e[r].willSpiderfy&&w.push(i);return w},r.makeHighlightListenerFuncs=function(n){return{highlight:function(t){return function(){return n._omsData.leg.setOptions({strokeColor:t.legColors.highlighted[t.map.mapTypeId],zIndex:t.highlightedLegZIndex})}}(this),unhighlight:function(t){return function(){return n._omsData.leg.setOptions({strokeColor:t.legColors.usual[t.map.mapTypeId],zIndex:t.usualLegZIndex})}}(this)}},r.spiderfy=function(n,t){var o,s,r,h,c,l,i,a,v,f,y;return this.minZoomLevel&&this.map.getZoom()<this.minZoomLevel?!1:(this.spiderfying=!0,f=n.length,o=this.ptAverage(function(){var t,r,i;for(i=[],t=0,r=n.length;t<r;t++)a=n[t],i.push(a.markerPt);return i}()),h=f>=this.circleSpiralSwitchover?this.generatePtsSpiral(f,o).reverse():this.generatePtsCircle(f,o),y=function(){var t,o,f;for(f=[],t=0,o=h.length;t<o;t++)r=h[t],s=this.ptToLl(r),v=this.minExtract(n,function(n){return function(t){return n.ptDistanceSq(t.markerPt,r)}}(this)),i=v.marker,l=new e.Polyline({map:this.map,path:[i.position,s],strokeColor:this.legColors.usual[this.map.mapTypeId],strokeWeight:this.legWeight,zIndex:this.usualLegZIndex}),i._omsData={usualPosition:i.position,leg:l},this.legColors.highlighted[this.map.mapTypeId]!==this.legColors.usual[this.map.mapTypeId]&&(c=this.makeHighlightListenerFuncs(i),i._omsData.hightlightListeners={highlight:u.addListener(i,"mouseover",c.highlight),unhighlight:u.addListener(i,"mouseout",c.unhighlight)}),i.setPosition(s),i.setZIndex(Math.round(this.spiderfiedZIndex+r.y)),f.push(i);return f}.call(this),delete this.spiderfying,this.spiderfied=!0,this.trigger("spiderfy",y,t))},r.unspiderfy=function(n){var i,s,r,t,f,e,o;if(n==null&&(n=null),this.spiderfied==null)return this;for(this.unspiderfying=!0,o=[],f=[],e=this.markers,i=0,s=e.length;i<s;i++)t=e[i],t._omsData!=null?(t._omsData.leg.setMap(null),t!==n&&t.setPosition(t._omsData.usualPosition),t.setZIndex(null),r=t._omsData.hightlightListeners,r!=null&&(u.removeListener(r.highlight),u.removeListener(r.unhighlight)),delete t._omsData,o.push(t)):f.push(t);return delete this.unspiderfying,delete this.spiderfied,this.trigger("unspiderfy",o,f),this},r.ptDistanceSq=function(n,t){var i,r;return i=n.x-t.x,r=n.y-t.y,i*i+r*r},r.ptAverage=function(n){var t,o,i,r,u,f;for(u=f=0,t=0,o=n.length;t<o;t++)r=n[t],u+=r.x,f+=r.y;return i=n.length,new e.Point(u/i,f/i)},r.llToPt=function(n){return this.projHelper.getProjection().fromLatLngToDivPixel(n)},r.ptToLl=function(n){return this.projHelper.getProjection().fromDivPixelToLatLng(n)},r.minExtract=function(n,t){for(var i,e,o,u,f,r=u=0,s=n.length;u<s;r=++u)o=n[r],f=t(o),(typeof i=="undefined"||i===null||f<e)&&(e=f,i=r);return n.splice(i,1)[0]},r.arrIndexOf=function(n,t){var i,r,u,f;if(n.indexOf!=null)return n.indexOf(t);for(i=r=0,u=n.length;r<u;i=++r)if(f=n[i],f===t)return i;return-1},l}()}.apply(i),t.then(function(){i.OverlappingMarkerSpiderfier.initializeGoogleMaps(n.google)}),this.OverlappingMarkerSpiderfier}]);t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendMarkerClusterer",["uiGmapLodash","uiGmapPropMap",function(t,r){return{init:i.once(function(){(function(){var u={}.hasOwnProperty,i=function(n,t){function r(){this.constructor=n}for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};n.NgMapCluster=function(n){function u(n){u.__super__.constructor.call(this,n);this.markers_=new r}return i(u,n),u.prototype.addMarker=function(n){var i,r,u;if(this.isMarkerAlreadyAdded_(n)&&(u=this.markers_.get(n.key),u.getPosition().lat()==n.getPosition().lat()&&u.getPosition().lon()==n.getPosition().lon()))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,f=(this.center_.lat()*(t-1)+n.getPosition().lat())/t,e=(this.center_.lng()*(t-1)+n.getPosition().lng())/t;this.center_=new google.maps.LatLng(f,e);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();return n.isAdded=!0,this.markers_.push(n),i=this.markers_.length,r=this.markerClusterer_.getMaxZoom(),r!==null&&this.map_.getZoom()>r?n.getMap()!==this.map_&&n.setMap(this.map_):i<this.minClusterSize_?n.getMap()!==this.map_&&n.setMap(this.map_):i===this.minClusterSize_?this.markers_.each(function(n){n.setMap(null)}):n.setMap(null),!0},u.prototype.isMarkerAlreadyAdded_=function(n){return t.isNullOrUndefined(this.markers_.get(n.key))},u.prototype.getBounds=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);return this.getMarkers().each(function(t){n.extend(t.getPosition())}),n},u.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=new r;delete this.markers_},u}(Cluster);n.NgMapMarkerClusterer=function(n){function t(n,i,u){t.__super__.constructor.call(this,n,i,u);this.markers_=new r}return i(t,n),t.prototype.clearMarkers=function(){this.resetViewport_(!0);this.markers_=new r},t.prototype.removeMarker_=function(n){return this.markers_.get(n.key)?(n.setMap(null),this.markers_.remove(n.key),!0):!1}
1841,t.prototype.createClusters_=function(n){var t,i,u,f=this;if(this.ready_){n===0&&(google.maps.event.trigger(this,"clusteringbegin",this),typeof this.timerRefStatic!="undefined"&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));u=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.020707717434718,-178.48388434375),new google.maps.LatLng(-85.081364443845445,178.00048865625));var e=this.getExtendedBounds(u),r=Math.min(n+this.batchSize_,this.markers_.length),o=this.markers_.values();for(t=n;t<r;t++)i=o[t],!i.isAdded&&this.isMarkerInBounds_(i,e)&&(!this.ignoreHidden_||this.ignoreHidden_&&i.getVisible())&&this.addToClosestCluster_(i);if(r<this.markers_.length)this.timerRefStatic=setTimeout(function(){f.createClusters_(r)},0);else{for(t=0;t<this.clusters_.length;t++)this.clusters_[t].updateIcon_();delete this.timerRefStatic;google.maps.event.trigger(this,"clusteringend",this)}}},t.prototype.addToClosestCluster_=function(n){for(var u,t,f,e=4e4,r=null,i=0;
1841i<this.clusters_.length;i++)t=this.clusters_[i],f=t.getCenter(),f&&(u=this.distanceBetweenPoints_(f,n.getPosition()),u<e&&(e=u,r=t));r&&r.isMarkerInClusterBounds(n)?r.addMarker(n):(t=new NgMapCluster(this),t.addMarker(n),this.clusters_.push(t))},t.prototype.redraw_=function(){this.createClusters_(0)},t.prototype.resetViewport_=function(n){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];this.markers_.each(function(t){t.isAdded=!1;n&&t.setMap(null)})},t.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)t!=="constructor"&&(this.prototype[t]=n.prototype[t]);return this}.apply(n,[t])},ClusterIcon.prototype.show=function(){if(this.div_){var n="",r=this.backgroundPosition_.split(" "),t=parseInt(r[0].trim(),10),i=parseInt(r[1].trim(),10),u=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(u);n="<img src='"+this.url_+"' style='position: absolute; top: "+i+"px; left: "+t+"px; ";n+=this.cluster_.getMarkerClusterer().enableRetinaIcons_?"width: "+this.width_+"px;height: "+this.height_+"px;":"clip: rect("+-1*i+"px, "+(-1*t+this.width_)+"px, "+(-1*i+this.height_)+"px, "+-1*t+"px);";n+="'>";this.div_.innerHTML=n+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"<\/div>";this.div_.title=typeof this.sums_.title=="undefined"||this.sums_.title===""?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title;this.div_.style.display=""}this.visible_=!0},t}(MarkerClusterer)}).call(this)})}}])})(window,angular,_);
1842(function e(n,t,i){function r(u,e){var s,h,o;if(!t[u]){if(!n[u]){if(s=typeof require=="function"&&require,!e&&s)return s(u,!0);if(f)return f(u,!0);h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[u]={exports:{}};n[u][0].call(o.exports,function(t){var i=n[u][1][t];return r(i?i:t)},o,o.exports,e,n,t,i)}return t[u].exports}for(var f=typeof require=="function"&&require,u=0;u<i.length;u++)r(i[u]);return r})({1:[function(n){angular.module("nemLogging",[]);angular.module("nemLogging").provider("nemDebug",function(){var t=null;return t=n("debug"),this.$get=function(){return t},this.debug=t,this});var t=function(n,t){return function(){return n.apply(t,arguments)}},i=[].slice;angular.module("nemLogging").provider("nemSimpleLogger",["nemDebugProvider",function(n){var f,s,e,r,h,a,v,c,o,y,l,u;for(l=n.debug,e={},r=["debug","info","warn","error","log"],f={},o=c=0,y=r.length;c<y;o=++c)u=r[o],f[u]=o;return a=function(n,t,i){if(n>=t)return i()},h=function(n){var t,i,f;if(t=!1,!n)return t;for(i=0,f=r.length;i<f;i++)if(u=r[i],t=n[u]!=null&&typeof n[u]=="function",!t)break;return t},v=function(n,t){var o,i,s,f;for(e[n]==null&&(e[n]=l(n)),o=e[n],f={},i=0,s=r.length;i<s;i++)u=r[i],f[u]=u==="debug"?o:t[u];return f},s=function(){function n(n){var o,u,s,c,e;if(this.$log=n,this.spawn=t(this.spawn,this),!this.$log)throw"internalLogger undefined";if(!h(this.$log))throw"@$log is invalid";for(this.doLog=!0,e={},o=function(n){return function(t){return e[t]=function(){var r;return r=1<=arguments.length?i.call(arguments,0):[],n.doLog?a(f[t],n.currentLevel,function(){var i;return(i=n.$log)[t].apply(i,r)}):void 0},n[t]=e[t]}}(this),u=0,s=r.length;u<s;u++)c=r[u],o(c);this.LEVELS=f;this.currentLevel=f.error}return n.prototype.spawn=function(t){if(typeof t=="string"){if(!h(this.$log))throw"@$log is invalid";if(!l)throw"nemDebug is undefined this is probably the light version of this library sep debug logggers is not supported!";return v(t,this.$log)}return new n(t||this.$log)},n}(),this.decorator=["$log",function(n){var t;return t=new s(n),t.currentLevel=f.debug,t}],this.$get=["$log",function(n){return new s(n)}],this}])},{debug:2}],2:[function(n,t,i){function u(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function f(){var n=arguments,t=this.useColors,r,u,f;return(n[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+n[0]+(t?"%c ":" ")+"+"+i.humanize(this.diff),!t)?n:(r="color: "+this.color,n=[n[0],r,"color: inherit"].concat(Array.prototype.slice.call(n,1)),u=0,f=0,n[0].replace(/%[a-z%]/g,function(n){"%%"!==n&&(u++,"%c"===n&&(f=u))}),n.splice(f,0,r),n)}function e(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(n){try{null==n?i.storage.removeItem("debug"):i.storage.debug=n}catch(t){}}function r(){var n;try{n=i.storage.debug}catch(t){}return n}function s(){try{return window.localStorage}catch(n){}}i=t.exports=n("./debug");i.log=e;i.formatArgs=f;i.save=o;i.load=r;i.useColors=u;i.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:s();i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];i.formatters.j=function(n){return JSON.stringify(n)};i.enable(r())},{"./debug":3}],3:[function(n,t,i){function f(){return i.colors[u++%i.colors.length]}function e(n){function u(){}function t(){var u=t,o=+new Date,h=o-(r||o),n,e,s;u.diff=h;u.prev=r;u.curr=o;r=o;null==u.useColors&&(u.useColors=i.useColors());null==u.color&&u.useColors&&(u.color=f());n=Array.prototype.slice.call(arguments);n[0]=i.coerce(n[0]);"string"!=typeof n[0]&&(n=["%o"].concat(n));e=0;n[0]=n[0].replace(/%([a-z%])/g,function(t,r){var f,o;return t==="%%"?t:(e++,f=i.formatters[r],"function"==typeof f&&(o=n[e],t=f.call(u,o),n.splice(e,1),e--),t)});"function"==typeof i.formatArgs&&(n=i.formatArgs.apply(u,n));s=t.log||i.log||console.log.bind(console);s.apply(u,n)}u.enabled=!1;t.enabled=!0;var e=i.enabled(n)?t:u;return e.namespace=n,e}function o(n){var r,u,t;for(i.save(n),r=(n||"").split(/[\s,]+/),u=r.length,t=0;t<u;t++)r[t]&&(n=r[t].replace(/\*/g,".*?"),n[0]==="-"?i.skips.push(new RegExp("^"+n.substr(1)+"$")):i.names.push(new RegExp("^"+n+"$")))}function s(){i.enable("")}function h(n){for(var t=0,r=i.skips.length;t<r;t++)if(i.skips[t].test(n))return!1;for(t=0,r=i.names.length;t<r;t++)if(i.names[t].test(n))return!0;return!1}function c(n){return n instanceof Error?n.stack||n.message:n}i=t.exports=e;i.coerce=c;i.disable=s;i.enable=o;i.enabled=h;i.humanize=n("ms");i.names=[];i.skips=[];i.formatters={};var u=0,r},{ms:4}],4:[function(n,t){function s(n){var e,t,s;if((n=""+n,!(n.length>1e4))&&(e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n),e)){t=parseFloat(e[1]);s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return t*o;case"days":case"day":case"d":return t*f;
1842case"hours":case"hour":case"hrs":case"hr":case"h":return t*u;case"minutes":case"minute":case"mins":case"min":case"m":return t*r;case"seconds":case"second":case"secs":case"sec":case"s":return t*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t}}}function h(n){return n>=f?Math.round(n/f)+"d":n>=u?Math.round(n/u)+"h":n>=r?Math.round(n/r)+"m":n>=i?Math.round(n/i)+"s":n+"ms"}function c(n){return e(n,f,"day")||e(n,u,"hour")||e(n,r,"minute")||e(n,i,"second")||n+" ms"}function e(n,t,i){if(!(n<t))return n<t*1.5?Math.floor(n/t)+" "+i:Math.ceil(n/t)+" "+i+"s"}var i=1e3,r=i*60,u=r*60,f=u*24,o=f*365.25;t.exports=function(n,t){return(t=t||{},"string"==typeof n)?s(n):t.long?c(n):h(n)}},{}]},{},[1]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.