(function ymapsInit(e){var n=this,t={ns:{},supports:{},env:e};t.performance={now:n.performance&&n.performance.now?n.performance.now.bind(n.performance):function(){return Date.now()}},t.count=function(e){function n(){r.push(arguments)}var t={exports:{}},r=(t.exports,[]),o=null,i=function(){(o||n).apply(null,arguments)};return i.provideImplementation=function(e){if(o)throw new Error("ym.count: implementation was already provided.");o=e(r)},t.exports=i,t.exports}(),t.vow=t.ns.vow=function(e){var t,r={exports:{}};r.exports;return function(e){var n,o=function(){var n=[],t=function(e){return n.push(e),1===n.length},r=function(){var e=n,t=0,r=n.length;for(n=[];t1?function(e){t.isResolved()||t._reject(e)}:n,r>2?function(e){t.isResolved()||t._notify(e)}:n)}};m.prototype={valueOf:function(){return this._value},isResolved:function(){return this._status!==h.PENDING},isFulfilled:function(){return this._status===h.FULFILLED},isRejected:function(){return this._status===h.REJECTED},then:function(e,n,t,r){var o=new v;return this._addCallbacks(o,e,n,t,r),o.promise()},"catch":function(e,t){return this.then(n,e,t)},fail:function(e,t){return this.then(n,e,t)},always:function(e,n){var t=this,r=function(){return e.call(this,t)};return this.then(r,r,n)},progress:function(e,t){return this.then(n,n,e,t)},spread:function(e,n,t){return this.then(function(n){return e.apply(this,n)},n,t)},done:function(e,n,t,r){this.then(e,n,t,r).fail(i)},delay:function(e){var n,t=this.then(function(t){var r=new v;return n=setTimeout(function(){r.resolve(t)},e),r.promise()});return t.always(function(){clearTimeout(n)}),t},timeout:function(e){var n=new v,t=setTimeout(function(){n.reject(new _.TimedOutError("timed out"))},e);return this.then(function(e){n.resolve(e)},function(e){n.reject(e)}),n.promise().always(function(){clearTimeout(t)}),n.promise()},_vow:!0,_resolve:function(e){if(!(this._status>h.RESOLVED)){if(e===this)return void this._reject(TypeError("Can't resolve promise with itself"));if(this._status=h.RESOLVED,e&&e._vow)return void(e.isFulfilled()?this._fulfill(e.valueOf()):e.isRejected()?this._reject(e.valueOf()):e.then(this._fulfill,this._reject,this._notify,this));if(a(e)||s(e)){var n;try{n=e.then}catch(t){return void this._reject(t)}if(s(n)){var r=this,o=!1;try{n.call(e,function(e){o||(o=!0,r._resolve(e))},function(e){o||(o=!0,r._reject(e))},function(e){r._notify(e)})}catch(t){o||this._reject(t)}return}}this._fulfill(e)}},_fulfill:function(e){this._status>h.RESOLVED||(this._status=h.FULFILLED,this._value=e,this._callCallbacks(this._fulfilledCallbacks,e),this._fulfilledCallbacks=this._rejectedCallbacks=this._progressCallbacks=n)},_reject:function(e){this._status>h.RESOLVED||(this._status=h.REJECTED,this._value=e,this._callCallbacks(this._rejectedCallbacks,e),this._fulfilledCallbacks=this._rejectedCallbacks=this._progressCallbacks=n)},_notify:function(e){this._callCallbacks(this._progressCallbacks,e)},_addCallbacks:function(e,t,r,o,i){r&&!s(r)?(i=r,r=n):o&&!s(o)&&(i=o,o=n);var a;this.isRejected()||(a={defer:e,fn:s(t)?t:n,ctx:i},this.isFulfilled()?this._callCallbacks([a],this._value):this._fulfilledCallbacks.push(a)),this.isFulfilled()||(a={defer:e,fn:r,ctx:i},this.isRejected()?this._callCallbacks([a],this._value):this._rejectedCallbacks.push(a)),this._status<=h.RESOLVED&&this._progressCallbacks.push({defer:e,fn:o,ctx:i})},_callCallbacks:function(e,n){var t=e.length;if(t){var r=this.isResolved(),i=this.isFulfilled(),s=this.isRejected();o(function(){for(var o,a,u,c=0;c6.1||"IEMobile"==e.name&&e.engineVersion>=6;n?e.eventMapper="pointer":e.eventMapper="touchMouse",e.androidBrokenBuild="AndroidBrowser"==e.name&&"534.30"==e.engineVersion;var r=window.devicePixelRatio||screen.deviceXDPI&&screen.deviceXDPI/96||1,o="iOS"===e.osFamily||"Safari"===e.name||"WebKit"===e.engine&&"Safari"===e.base;"MSIE"==e.name||"IEMobile"==e.name||"Android"==e.osFamily&&"Gecko"==e.engine||o||r>1&&r<2?e.graphicsRenderEngine="svg":e.graphicsRenderEngine="canvas",e.transformTransition="Android"==e.osFamily||"iOS"==e.osFamily||"MSIE"==e.name||e.isChromium,e.css3DTransform="WebKit"==e.engine&&!("Android"==e.osFamily&&parseFloat(e.osVersion)<3)||"Gecko"==e.engine&&parseInt(e.engineVersion.split(".")[0])>=10,e.unsupported="OperaMini"==e.name}();var o=function(e){function n(n){return e[n]}function t(e){this._config=e,this._sandbox=this._config.createSandbox(this),this._definitionsByName=Object.create(null),this._definitionsByStorage=Object.create(null),this._remoteLoadingAllowed=f.defer(),this._initialized=this._remoteLoadingAllowed.promise().then(function(){return this._loadBundle(this._config.initialBudleName)},this)}function r(e,n,t,r,o,i,s,a,u){this.state=e,this.alias=null,this.name=n,this.storage=t,this.key=r,this.depends=o,this.dynamicDepends=a,this.declaration=i,this.context=s,this.exports=e===m.DEFINED?u:void 0,this.resolvingPromise=void 0,this.fetchingDeferred=void 0}function o(e,n){if(!e.dynamicDepends)return h;var t=[];for(var r in e.dynamicDepends)if(p.call(e.dynamicDepends,r))for(var o=0,i=n.length;o=m.DECLARED)return;return t.state!==m.FETCHING&&n(),t.state=m.DECLARED,t.declaration=e.declaration,t.context=e.context,t.storage=e.storage,t.key=e.key,e.depends&&("function"==typeof e.depends&&(e.depends=e.depends.call({name:e.name},this._config.dependenciesContext)),t.depends=e.depends),t.dynamicDepends=e.dynamicDepends,void(t.exports=e.exports)}"function"==typeof e.depends&&(e.depends=e.depends.call({name:e.name},this._config.dependenciesContext)),e.depends=e.depends||h,this._definitionsByName[e.name]=e,this._saveDefinitionToStorage(e)},t.prototype._resolve=function(e,n){if(!e.dynamicDepends){if(e.state===m.DEFINED)return f.resolve(e.exports);if(e.state===m.ERROR)return f.reject(e.exports)}e.state=m.DECLARED?f.resolve():this._loadFullBundle()},t.prototype._loadFullBundle=function(){if(!this._fullBundlePromise){for(var e in this._definitionsByName)this._definitionsByName[e].state===m.MENTIONED&&(this._definitionsByName[e].state=m.FETCHING);this._fullBundlePromise=this._loadBundle("full")}return this._fullBundlePromise},t.prototype._loadBundle=function(e){return this._config.fetchBundle(e).then(function(e){function n(){return f.delay().then(function(){var e=o.splice(0,i);if(e.forEach(function(e){e(t)}),o.length>0)return n()})}e.missingModules.forEach(function(e){var n=new r(m.MENTIONED,e,(void 0),(void 0),[],null,null,(void 0));this._definitionsByName[e]=n},this);var t=this._sandbox,o=e.modules,i=400;return n()},this)["catch"](function(n){throw console.error('ymaps: Failed to bundle "'+e+'".'+(n?n.stack||n.message||"":"")),n})},t.prototype._loadModulesMap=function(){return this._config.fetchMap().spread(function(e,n){this._processLoadedMap(e),n()},this)},l.exports}({vow:t.vow,"./ym.utils":t.utils}),i=t.env.server.url+"/"+t.env.server.path.replace(/\/$/,"")+"/images/";t.modules=new o({dependenciesContext:t,initialBudleName:t.env.preload.bundle,fetchBundle:function(e){var r=("__ymaps_"+t.env.namespace+"_"+Date.now()).replace(/\W/g,"_");n[r]=t.ns;var o=document.createElement("script");o.src=t.env.hosts["static"]+t.env.bundles.PREFIX+t.env.bundles[e],o.setAttribute("data-ymaps-api-ns",r),o.setAttribute("data-ymaps-api-version","2.1.79"),o.async=!0;var i=t.vow.defer();return o.onerror=i.reject.bind(i),t.ns.__provideBundle=i.resolve.bind(i),document.head.appendChild(o),i.promise().always(function(e){return delete n[r],e})},createSandbox:function(e){var n=Object.create(e);n.importImages=function(e){return{get:function(n){return i+e[n].src}}};var r=t.utils.extend({},t,{modules:n}),o={};return Object.defineProperty(r,"__mock__",{get:function(){return t.ns.__mock__||o},configurable:!1}),r}}),t.ns.load=function(e,n,r,o){return"function"==typeof e?n?t.ns.ready(["package.full"],e,n):t.ns.ready(["package.full"],e):("string"==typeof e&&(e=[e]),t.ns.ready.apply(this,arguments))},function(){function e(e){return function(){console.warn("{NS}.modules.{FN} is not a public API and will be removed from {NS}.modules.".replace(/\{NS\}/g,t.env.namespace).replace(/\{FN\}/g,e));var n=t.modules[e].apply(t.modules,arguments);return n===t.modules?t.ns.modules:n}}t.ns.modules={require:function(){return t.modules.require.apply(t.modules,arguments)},isDefined:function(){return t.modules.isDefined.apply(t.modules,arguments)},requireSync:function(){return t.modules.requireSync.apply(t.modules,arguments)},define:function(e,n,r,o){return t.modules.define.apply(t.modules,arguments),t.ns.modules},defineSync:e("defineSync"),getDefinition:e("getDefinition"),getState:e("getState"),setOptions:e("setOptions"),flush:e("flush"),nextTick:e("nextTick"),watchResolving:e("watchResolving"),__modules:t.modules}}(),function(e){function n(){c&&(c=!1);var e={};arguments.length&&(1!=arguments.length||"object"!=typeof arguments[0]||arguments[0].length?"function"!=typeof arguments[0]?(e.require="string"==typeof arguments[0]?[arguments[0]]:arguments[0],e.successCallback=arguments[1],e.errorCallback=arguments[2]&&"function"==typeof arguments[2]?arguments[2]:null,e.context=arguments[2]&&"object"==typeof arguments[2]?arguments[2]:arguments[3]):(e.successCallback=arguments[0],e.errorCallback=arguments[1]&&"function"==typeof arguments[1]?arguments[1]:null,e.context=arguments[1]&&"object"==typeof arguments[1]?arguments[1]:arguments[2]):e=arguments[0]);var n=e.require||[],r=i.all([t.modules.require(n),a,u]).spread(function(e){return t.utils.registerImports(t.ns,n,e),t.ns});return r.then(e.successCallback&&function(n){setTimeout(e.successCallback.bind(e.context),0,n)},e.errorCallback&&function(n){setTimeout(e.errorCallback.bind(e.context),0,n)}),r}function r(n,t){if(n){var r=o(e,n);r&&setTimeout(function(){r.method.call(r.context,t)})}}function o(e,n){var t=e;n=n.split(".");for(var r=0,o=n.length-1;r