@thegetty/quire-cli 0.20.1 → 0.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/bin/.DS_Store +0 -0
- package/bin/go-iiif/.DS_Store +0 -0
- package/bin/index.js +1 -1
- package/bin/starters/.DS_Store +0 -0
- package/bin/starters/default/.gitignore +14 -0
- package/bin/starters/default/config/_default/config.yml +53 -0
- package/bin/starters/default/config/development/config.yml +14 -0
- package/bin/themes/default/.gitignore +13 -0
- package/bin/themes/default/layouts/contents/single.html +2 -2
- package/bin/themes/default/layouts/data/search-index.html +1 -1
- package/bin/themes/default/layouts/partials/cite-this.html +2 -2
- package/bin/themes/default/layouts/partials/contents-list/closing-tags.html +10 -3
- package/bin/themes/default/layouts/partials/contents-list/contents-list.html +24 -9
- package/bin/themes/default/layouts/partials/contents-list/file-dir.html +7 -0
- package/bin/themes/default/layouts/partials/contents-list/file-path.html +10 -0
- package/bin/themes/default/layouts/partials/contents-list.html +207 -0
- package/bin/themes/default/layouts/partials/figure-caption.html +1 -0
- package/bin/themes/default/layouts/partials/figure-fallback.html +31 -0
- package/bin/themes/default/layouts/partials/figure-image.html +44 -0
- package/bin/themes/default/layouts/partials/figure-label.html +15 -0
- package/bin/themes/default/layouts/partials/figure-soundcloud.html +25 -0
- package/bin/themes/default/layouts/partials/figure-table.html +44 -0
- package/bin/themes/default/layouts/partials/figure-vimeo.html +24 -0
- package/bin/themes/default/layouts/partials/figure-website.html +21 -0
- package/bin/themes/default/layouts/partials/figure-youtube.html +23 -0
- package/bin/themes/default/layouts/partials/figures/media-types/vimeo.html +3 -1
- package/bin/themes/default/layouts/partials/menu.html +1 -1
- package/bin/themes/default/layouts/partials/page-bibliography.html +1 -1
- package/bin/themes/default/layouts/shortcodes/q-bibliography.html +8 -8
- package/bin/themes/default/layouts/shortcodes/q-figure-new.html +70 -0
- package/bin/themes/default/package-lock.json +13198 -0
- package/bin/themes/default/source/css/components/quire-contents-list.scss +22 -18
- package/bin/themes/default/source/css/print.scss +1 -1
- package/bin/themes/default/source/js/popup.js +14 -10
- package/bin/themes/default/static/img/icons/baseline-headset-24px.png +0 -0
- package/bin/themes/default/static/img/icons/baseline-videocam-24px.png +0 -0
- package/bin/themes/default/static/img/icons/baseline-website-24px.png +0 -0
- package/bin/themes/default/tests/.gitkeep +0 -0
- package/bin/themes/default/tests/e2e/.eslintrc.js +9 -0
- package/bin/themes/default/tests/e2e/fixtures/blns.json +483 -0
- package/bin/themes/default/tests/e2e/plugins/index.js +22 -0
- package/bin/themes/default/tests/e2e/specs/quire-contents.spec.js +52 -0
- package/bin/themes/default/tests/e2e/specs/quire-contributors.spec.js +66 -0
- package/bin/themes/default/tests/e2e/specs/quire-entry.spec.js +104 -0
- package/bin/themes/default/tests/e2e/specs/quire-essay.spec.js +105 -0
- package/bin/themes/default/tests/e2e/specs/quire-menu.spec.js +38 -0
- package/bin/themes/default/tests/e2e/specs/quire-modal.spec.js +69 -0
- package/bin/themes/default/tests/e2e/specs/quire-next-back-buttons.spec.js +27 -0
- package/bin/themes/default/tests/e2e/specs/quire-page.spec.js +28 -0
- package/bin/themes/default/tests/e2e/specs/quire-search.spec.js +48 -0
- package/bin/themes/default/tests/e2e/specs/quire-splash.spec.js +38 -0
- package/bin/themes/default/tests/e2e/support/commands.js +25 -0
- package/bin/themes/default/tests/e2e/support/index.js +20 -0
- package/package.json +1 -1
- package/bin/themes/default/static/css/application.css +0 -12072
- package/bin/themes/default/static/js/application.js +0 -92
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
!function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="../",r(r.s=355)}([function(t,e,n){var m=n(3),g=n(20),v=n(12),y=n(13),_=n(21),x="prototype",b=function(t,e,n){var i,r,o,s,a=t&b.F,u=t&b.G,l=t&b.S,c=t&b.P,f=t&b.B,h=u?m:l?m[e]||(m[e]={}):(m[e]||{})[x],d=u?g:g[e]||(g[e]={}),p=d[x]||(d[x]={});for(i in u&&(n=e),n)o=((r=!a&&h&&void 0!==h[i])?h:n)[i],s=f&&r?_(o,m):c&&"function"==typeof o?_(Function.call,o):o,h&&y(h,i,o,t&b.U),d[i]!=o&&v(d,i,s),c&&p[i]!=o&&(p[i]=o)};m.core=g,b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,t.exports=b},function(Ge,$e,t){var Ye;
|
|
2
|
-
/*!
|
|
3
|
-
* jQuery JavaScript Library v3.4.1
|
|
4
|
-
* https://jquery.com/
|
|
5
|
-
*
|
|
6
|
-
* Includes Sizzle.js
|
|
7
|
-
* https://sizzlejs.com/
|
|
8
|
-
*
|
|
9
|
-
* Copyright JS Foundation and other contributors
|
|
10
|
-
* Released under the MIT license
|
|
11
|
-
* https://jquery.org/license
|
|
12
|
-
*
|
|
13
|
-
* Date: 2019-05-01T21:04Z
|
|
14
|
-
*/
|
|
15
|
-
!function(t,e){"use strict";"object"==typeof Ge.exports?Ge.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(S,t){"use strict";function m(t){return null!=t&&t===t.window}var e=[],T=S.document,i=Object.getPrototypeOf,a=e.slice,g=e.concat,u=e.push,r=e.indexOf,n={},o=n.toString,v=n.hasOwnProperty,s=v.toString,l=s.call(Object),y={},_=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,o=(n=n||T).createElement("script");if(o.text=t,e)for(i in c)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[o.call(t)]||"object":typeof t}var E=function(t,e){return new E.fn.init(t,e)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!_(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}E.fn=E.prototype={jquery:"3.4.1",constructor:E,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(n){return this.pushStack(E.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:e.sort,splice:e.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||_(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(l&&i&&(E.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||E.isPlainObject(n)?n:{},r=!1,s[e]=E.extend(l,o,i)):void 0!==i&&(s[e]=i));return s},E.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==o.call(t))&&(!(e=i(t))||"function"==typeof(n=v.call(e,"constructor")&&e.constructor)&&s.call(n)===l)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){x(t,{nonce:e&&e.nonce})},each:function(t,e){var n,i=0;if(h(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(f,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(h(Object(t))?E.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:r.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!=s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(h(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return g.apply([],s)},guid:1,support:y}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=e[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var d=
|
|
16
|
-
/*!
|
|
17
|
-
* Sizzle CSS Selector Engine v2.3.4
|
|
18
|
-
* https://sizzlejs.com/
|
|
19
|
-
*
|
|
20
|
-
* Copyright JS Foundation and other contributors
|
|
21
|
-
* Released under the MIT license
|
|
22
|
-
* https://js.foundation/
|
|
23
|
-
*
|
|
24
|
-
* Date: 2019-04-08
|
|
25
|
-
*/
|
|
26
|
-
function(n){function f(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function r(){w()}var t,d,x,o,s,p,h,m,b,u,l,w,S,a,T,g,c,v,y,E="sizzle"+1*new Date,_=n.document,P=0,i=0,L=ut(),C=ut(),k=ut(),I=ut(),M=function(t,e){return t===e&&(l=!0),0},A={}.hasOwnProperty,e=[],O=e.pop,N=e.push,z=e.push,R=e.slice,F=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",q="\\["+D+"*("+B+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+D+"*\\]",Z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",H=new RegExp(D+"+","g"),V=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),W=new RegExp("^"+D+"*,"+D+"*"),U=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),Q=new RegExp(D+"|>"),G=new RegExp(Z),$=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,it=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=xt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{z.apply(e=R.call(_.childNodes),_.childNodes),e[_.childNodes.length].nodeType}catch(t){z={apply:e.length?function(t,e){N.apply(t,R.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(e,t,n,i){var r,o,s,a,u,l,c,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:_)!==S&&w(t),t=t||S,T)){if(11!==h&&(u=et.exec(e)))if(r=u[1]){if(9===h){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(f&&(s=f.getElementById(r))&&y(t,s)&&s.id===r)return n.push(s),n}else{if(u[2])return z.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return z.apply(n,t.getElementsByClassName(r)),n}if(d.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,f=t,1===h&&Q.test(e)){for((a=t.getAttribute("id"))?a=a.replace(rt,ot):t.setAttribute("id",a=E),o=(l=p(e)).length;o--;)l[o]="#"+a+" "+_t(l[o]);c=l.join(","),f=nt.test(e)&&vt(t.parentNode)||t}try{return z.apply(n,f.querySelectorAll(c)),n}catch(t){I(e,!0)}finally{a===E&&t.removeAttribute("id")}}}return m(e.replace(V,"$1"),t,n,i)}function ut(){var i=[];return function t(e,n){return i.push(e+" ")>x.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function lt(t){return t[E]=!0,t}function ct(t){var e=S.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function mt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function gt(s){return lt(function(o){return o=+o,lt(function(t,e){for(var n,i=s([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=at.support={},s=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!X.test(e||n&&n.nodeName||"HTML")},w=at.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:_;return i!==S&&9===i.nodeType&&i.documentElement&&(a=(S=i).documentElement,T=!s(S),_!==S&&(n=S.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),d.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=ct(function(t){return t.appendChild(S.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=tt.test(S.getElementsByClassName),d.getById=ct(function(t){return a.appendChild(t).id=E,!S.getElementsByName||!S.getElementsByName(E).length}),d.getById?(x.filter.ID=function(t){var e=t.replace(it,f);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var n=e.getElementById(t);return n?[n]:[]}}):(x.filter.ID=function(t){var n=t.replace(it,f);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),x.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&T)return e.getElementsByClassName(t)},c=[],g=[],(d.qsa=tt.test(S.querySelectorAll))&&(ct(function(t){a.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+D+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+D+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+E+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||g.push(".#.+[+~]")}),ct(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=S.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+D+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=tt.test(v=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ct(function(t){d.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),c.push("!=",Z)}),g=g.length&&new RegExp(g.join("|")),c=c.length&&new RegExp(c.join("|")),e=tt.test(a.compareDocumentPosition),y=e||tt.test(a.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return l=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===S||t.ownerDocument===_&&y(_,t)?-1:e===S||e.ownerDocument===_&&y(_,e)?1:u?F(u,t)-F(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t===S?-1:e===S?1:r?-1:o?1:u?F(u,t)-F(u,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ht(s[i],a[i]):s[i]===_?-1:a[i]===_?1:0}),S},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==S&&w(t),d.matchesSelector&&T&&!I[e+" "]&&(!c||!c.test(e))&&(!g||!g.test(e)))try{var n=v.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){I(e,!0)}return 0<at(e,S,null,[t]).length},at.contains=function(t,e){return(t.ownerDocument||t)!==S&&w(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==S&&w(t);var n=x.attrHandle[e.toLowerCase()],i=n&&A.call(x.attrHandle,e.toLowerCase())?n(t,e,!T):void 0;return void 0!==i?i:d.attributes||!T?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},at.escape=function(t){return(t+"").replace(rt,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],i=0,r=0;if(l=!d.detectDuplicates,u=!d.sortStable&&t.slice(0),t.sort(M),l){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return u=null,t},o=at.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(x=at.selectors={cacheLength:50,createPseudo:lt,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,f),t[3]=(t[3]||t[4]||t[5]||"").replace(it,f),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=p(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,f).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=L[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&L(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(t){var e=at.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===r:"!="===i?e!==r:"^="===i?r&&0===e.indexOf(r):"*="===i?r&&-1<e.indexOf(r):"$="===i?r&&e.slice(-r.length)===r:"~="===i?-1<(" "+e.replace(H," ")+" ").indexOf(r):"|="===i&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,t,e,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),_="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,s,a,u,l=v!=y?"nextSibling":"previousSibling",c=t.parentNode,f=_&&t.nodeName.toLowerCase(),h=!n&&!_,d=!1;if(c){if(v){for(;l;){for(s=t;s=s[l];)if(_?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;u=l="only"===p&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&h){for(d=(a=(i=(r=(o=(s=c)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===P&&i[1])&&i[2],s=a&&c.childNodes[a];s=++a&&s&&s[l]||(d=a=0)||u.pop();)if(1===s.nodeType&&++d&&s===t){r[p]=[P,a,d];break}}else if(h&&(d=a=(i=(r=(o=(s=t)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===P&&i[1]),!1===d)for(;(s=++a&&s&&s[l]||(d=a=0)||u.pop())&&((_?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++d||(h&&((r=(o=s[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]=[P,d]),s!==t)););return(d-=g)===m||d%m==0&&0<=d/m}}},PSEUDO:function(t,o){var e,s=x.pseudos[t]||x.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return s[E]?s(o):1<s.length?(e=[t,t,"",o],x.setFilters.hasOwnProperty(t.toLowerCase())?lt(function(t,e){for(var n,i=s(t,o),r=i.length;r--;)t[n=F(t,i[r])]=!(e[n]=i[r])}):function(t){return s(t,0,e)}):s}},pseudos:{not:lt(function(t){var i=[],r=[],a=h(t.replace(V,"$1"));return a[E]?lt(function(t,e,n,i){for(var r,o=a(t,null,i,[]),s=t.length;s--;)(r=o[s])&&(t[s]=!(e[s]=r))}):function(t,e,n){return i[0]=t,a(i,null,n,r),i[0]=null,!r.pop()}}),has:lt(function(e){return function(t){return 0<at(e,t).length}}),contains:lt(function(e){return e=e.replace(it,f),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:lt(function(n){return $.test(n||"")||at.error("unsupported lang: "+n),n=n.replace(it,f).toLowerCase(),function(t){var e;do{if(e=T?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt(function(){return[0]}),last:gt(function(t,e){return[e-1]}),eq:gt(function(t,e,n){return[n<0?n+e:n]}),even:gt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:gt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:gt(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:gt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[t]=dt(t);for(t in{submit:!0,reset:!0})x.pseudos[t]=pt(t);function yt(){}function _t(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function xt(a,t,e){var u=t.dir,l=t.next,c=l||u,f=e&&"parentNode"===c,h=i++;return t.first?function(t,e,n){for(;t=t[u];)if(1===t.nodeType||f)return a(t,e,n);return!1}:function(t,e,n){var i,r,o,s=[P,h];if(n){for(;t=t[u];)if((1===t.nodeType||f)&&a(t,e,n))return!0}else for(;t=t[u];)if(1===t.nodeType||f)if(r=(o=t[E]||(t[E]={}))[t.uniqueID]||(o[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[u]||t;else{if((i=r[c])&&i[0]===P&&i[1]===h)return s[2]=i[2];if((r[c]=s)[2]=a(t,e,n))return!0}return!1}}function bt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function wt(t,e,n,i,r){for(var o,s=[],a=0,u=t.length,l=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),l&&e.push(a)));return s}function St(d,p,m,g,v,t){return g&&!g[E]&&(g=St(g)),v&&!v[E]&&(v=St(v,t)),lt(function(t,e,n,i){var r,o,s,a=[],u=[],l=e.length,c=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)at(t,e[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),f=!d||!t&&p?c:wt(c,a,d,n,i),h=m?v||(t?d:l||g)?[]:e:f;if(m&&m(f,h,n,i),g)for(r=wt(h,u),g(r,[],n,i),o=r.length;o--;)(s=r[o])&&(h[u[o]]=!(f[u[o]]=s));if(t){if(v||d){if(v){for(r=[],o=h.length;o--;)(s=h[o])&&r.push(f[o]=s);v(null,h=[],r,i)}for(o=h.length;o--;)(s=h[o])&&-1<(r=v?F(t,s):a[o])&&(t[r]=!(e[r]=s))}}else h=wt(h===e?h.splice(l,h.length):h),v?v(null,e,h,i):z.apply(e,h)})}function Tt(t){for(var r,e,n,i=t.length,o=x.relative[t[0].type],s=o||x.relative[" "],a=o?1:0,u=xt(function(t){return t===r},s,!0),l=xt(function(t){return-1<F(r,t)},s,!0),c=[function(t,e,n){var i=!o&&(n||e!==b)||((r=e).nodeType?u(t,e,n):l(t,e,n));return r=null,i}];a<i;a++)if(e=x.relative[t[a].type])c=[xt(bt(c),e)];else{if((e=x.filter[t[a].type].apply(null,t[a].matches))[E]){for(n=++a;n<i&&!x.relative[t[n].type];n++);return St(1<a&&bt(c),1<a&&_t(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(V,"$1"),e,a<n&&Tt(t.slice(a,n)),n<i&&Tt(t=t.slice(n)),n<i&&_t(t))}c.push(e)}return bt(c)}function Et(g,v){function t(t,e,n,i,r){var o,s,a,u=0,l="0",c=t&&[],f=[],h=b,d=t||_&&x.find.TAG("*",r),p=P+=null==h?1:Math.random()||.1,m=d.length;for(r&&(b=e===S||e||r);l!==m&&null!=(o=d[l]);l++){if(_&&o){for(s=0,e||o.ownerDocument===S||(w(o),n=!T);a=g[s++];)if(a(o,e||S,n)){i.push(o);break}r&&(P=p)}y&&((o=!a&&o)&&u--,t&&c.push(o))}if(u+=l,y&&l!==u){for(s=0;a=v[s++];)a(c,f,e,n);if(t){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=O.call(i));f=wt(f)}z.apply(i,f),r&&!t&&0<f.length&&1<u+v.length&&at.uniqueSort(i)}return r&&(P=p,b=h),c}var y=0<v.length,_=0<g.length;return y?lt(t):t}return yt.prototype=x.filters=x.pseudos,x.setFilters=new yt,p=at.tokenize=function(t,e){var n,i,r,o,s,a,u,l=C[t+" "];if(l)return e?0:l.slice(0);for(s=t,a=[],u=x.preFilter;s;){for(o in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(r=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),x.filter)!(i=Y[o].exec(s))||u[o]&&!(i=u[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?at.error(t):C(t,a).slice(0)},h=at.compile=function(t,e){var n,i=[],r=[],o=k[t+" "];if(!o){for(n=(e=e||p(t)).length;n--;)(o=Tt(e[n]))[E]?i.push(o):r.push(o);(o=k(t,Et(r,i))).selector=t}return o},m=at.select=function(t,e,n,i){var r,o,s,a,u,l="function"==typeof t&&t,c=!i&&p(t=l.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===e.nodeType&&T&&x.relative[o[1].type]){if(!(e=(x.find.ID(s.matches[0].replace(it,f),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=Y.needsContext.test(t)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((u=x.find[a])&&(i=u(s.matches[0].replace(it,f),nt.test(o[0].type)&&vt(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&_t(o)))return z.apply(n,i),n;break}}return(l||h(t,c))(i,e,!T,n,!e||nt.test(t)&&vt(e.parentNode)||e),n},d.sortStable=E.split("").sort(M).join("")===E,d.detectDuplicates=!!l,w(),d.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(S.createElement("fieldset"))}),ct(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ft("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&ct(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ft("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||ft(j,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),at}(S);E.find=d,E.expr=d.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=d.uniqueSort,E.text=d.getText,E.isXMLDoc=d.isXML,E.contains=d.contains,E.escapeSelector=d.escape;function p(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i}function w(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var P=E.expr.match.needsContext;function L(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(t,n,i){return _(n)?E.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?E.grep(t,function(t){return t===n!==i}):"string"!=typeof n?E.grep(t,function(t){return-1<r.call(n,t)!==i}):E.filter(n,t,i)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,r[e],n);return 1<i?E.uniqueSort(n):n},filter:function(t){return this.pushStack(k(this,t||[],!1))},not:function(t){return this.pushStack(k(this,t||[],!0))},is:function(t){return!!k(this,"string"==typeof t&&P.test(t)?E(t):t||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||I,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):_(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:M.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),C.test(i[1])&&E.isPlainObject(e))for(i in e)_(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=T.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=E.fn,I=E(T);var A=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&E(t);if(!P.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?r.call(E(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return p(t,"parentNode")},parentsUntil:function(t,e,n){return p(t,"parentNode",n)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return p(t,"nextSibling")},prevAll:function(t){return p(t,"previousSibling")},nextUntil:function(t,e,n){return p(t,"nextSibling",n)},prevUntil:function(t,e,n){return p(t,"previousSibling",n)},siblings:function(t){return w((t.parentNode||{}).firstChild,t)},children:function(t){return w(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(L(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(i,r){E.fn[i]=function(t,e){var n=E.map(this,r,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=E.filter(e,n)),1<this.length&&(O[i]||E.uniqueSort(n),A.test(i)&&n.reverse()),this.pushStack(n)}});var z=/[^\x20\t\r\n\f]+/g;function R(t){return t}function F(t){throw t}function j(t,e,n,i){var r;try{t&&_(r=t.promise)?r.call(t).done(e).fail(n):t&&_(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(i){i="string"==typeof i?function(t){var n={};return E.each(t.match(z)||[],function(t,e){n[e]=!0}),n}(i):E.extend({},i);function n(){for(o=o||i.once,e=r=!0;a.length;u=-1)for(t=a.shift();++u<s.length;)!1===s[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=s.length,t=!1);i.memory||(t=!1),r=!1,o&&(s=t?[]:"")}var r,t,e,o,s=[],a=[],u=-1,l={add:function(){return s&&(t&&!r&&(u=s.length-1,a.push(t)),function n(t){E.each(t,function(t,e){_(e)?i.unique&&l.has(e)||s.push(e):e&&e.length&&"string"!==b(e)&&n(e)})}(arguments),t&&!r&&n()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;-1<(n=E.inArray(e,s,n));)s.splice(n,1),n<=u&&u--}),this},has:function(t){return t?-1<E.inArray(t,s):0<s.length},empty:function(){return s=s&&[],this},disable:function(){return o=a=[],s=t="",this},disabled:function(){return!s},lock:function(){return o=a=[],t||r||(s=t=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),r||n()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!e}};return l},E.extend({Deferred:function(t){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var r=arguments;return E.Deferred(function(i){E.each(o,function(t,e){var n=_(r[e[4]])&&r[e[4]];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&_(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),r=null}).promise()},then:function(e,n,i){var u=0;function l(r,o,s,a){return function(){function t(){var t,e;if(!(r<u)){if((t=s.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,_(e)?a?e.call(t,l(u,o,R,a),l(u,o,F,a)):(u++,e.call(t,l(u,o,R,a),l(u,o,F,a),l(u,o,R,o.notifyWith))):(s!==R&&(n=void 0,i=[t]),(a||o.resolveWith)(n,i))}}var n=this,i=arguments,e=a?t:function(){try{t()}catch(t){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(t,e.stackTrace),u<=r+1&&(s!==F&&(n=void 0,i=[t]),o.rejectWith(n,i))}};r?e():(E.Deferred.getStackHook&&(e.stackTrace=E.Deferred.getStackHook()),S.setTimeout(e))}}return E.Deferred(function(t){o[0][3].add(l(0,t,_(i)?i:R,t.notifyWith)),o[1][3].add(l(0,t,_(e)?e:R)),o[2][3].add(l(0,t,_(n)?n:F))}).promise()},promise:function(t){return null!=t?E.extend(t,s):s}},a={};return E.each(o,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){r=i},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),n.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){r[e]=this,o[e]=1<arguments.length?a.call(arguments):t,--n||s.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=a.call(arguments),s=E.Deferred();if(n<=1&&(j(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||_(o[i]&&o[i].then)))return s.then();for(;i--;)j(o[i],e(i),s.reject);return s.promise()}});var D=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){S.console&&S.console.warn&&t&&D.test(t.name)&&S.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){S.setTimeout(function(){throw t})};var B=E.Deferred();function q(){T.removeEventListener("DOMContentLoaded",q),S.removeEventListener("load",q),E.ready()}E.fn.ready=function(t){return B.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0)!==t&&0<--E.readyWait||B.resolveWith(T,[E])}}),E.ready.then=B.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?S.setTimeout(E.ready):(T.addEventListener("DOMContentLoaded",q),S.addEventListener("load",q));var Z=function(t,e,n,i,r,o,s){var a=0,u=t.length,l=null==n;if("object"===b(n))for(a in r=!0,n)Z(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,_(i)||(s=!0),l&&(e=s?(e.call(t,i),null):(l=e,function(t,e,n){return l.call(E(t),n)})),e))for(;a<u;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:l?e.call(t):u?e(t[0],n):o},H=/^-ms-/,V=/-([a-z])/g;function W(t,e){return e.toUpperCase()}function U(t){return t.replace(H,"ms-").replace(V,W)}function Q(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function G(){this.expando=E.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Q(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[U(e)]=n;else for(i in e)r[U(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][U(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(U):(e=U(e))in i?[e]:e.match(z)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!E.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var $=new G,Y=new G,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function J(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:X.test(t)?JSON.parse(t):t)}(n)}catch(t){}Y.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return Y.hasData(t)||$.hasData(t)},data:function(t,e,n){return Y.access(t,e,n)},removeData:function(t,e){Y.remove(t,e)},_data:function(t,e,n){return $.access(t,e,n)},_removeData:function(t,e){$.remove(t,e)}}),E.fn.extend({data:function(n,t){var e,i,r,o=this[0],s=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Y.set(this,n)}):Z(this,function(t){var e;if(o&&void 0===t)return void 0!==(e=Y.get(o,n))?e:void 0!==(e=J(o,n))?e:void 0;this.each(function(){Y.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=Y.get(o),1===o.nodeType&&!$.get(o,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=U(i.slice(5)),J(o,i,r[i]));$.set(o,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){Y.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=$.get(t,e),n&&(!i||Array.isArray(n)?i=$.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){E.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return $.get(t,n)||$.access(t,n,{empty:E.Callbacks("once memory").add(function(){$.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===n?this:this.each(function(){var t=E.queue(this,e,n);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(s,[s])}var i,r=1,o=E.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=$.get(s[a],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=T.documentElement,rt=function(t){return E.contains(t.ownerDocument,t)},ot={composed:!0};it.getRootNode&&(rt=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});function st(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=s[o];return r}var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===E.css(t,"display")};function ut(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return E.css(t,e,"")},u=a(),l=n&&n[3]||(E.cssNumber[e]?"":"px"),c=t.nodeType&&(E.cssNumber[e]||"px"!==l&&+u)&&et.exec(E.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)E.style(t,e,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,E.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}var lt={};function ct(t){var e,n=t.ownerDocument,i=t.nodeName,r=lt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=E.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),lt[i]=r)}function ft(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=$.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&at(i)&&(r[o]=ct(i))):"none"!==n&&(r[o]="none",$.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}E.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){at(this)?E(this).show():E(this).hide()})}});var ht=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function gt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&L(t,e)?E.merge([t],n):n}function vt(t,e){for(var n=0,i=t.length;n<i;n++)$.set(t[n],"globalEval",!e||$.get(e[n],"globalEval"))}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var yt=/<|&#?\w+;/;function _t(t,e,n,i,r){for(var o,s,a,u,l,c,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===b(o))E.merge(h,o.nodeType?[o]:o);else if(yt.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(dt.exec(o)||["",""])[1].toLowerCase(),u=mt[a]||mt._default,s.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;E.merge(h,s.childNodes),(s=f.firstChild).textContent=""}else h.push(e.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(i&&-1<E.inArray(o,i))r&&r.push(o);else if(l=rt(o),s=gt(f.appendChild(o),"script"),l&&vt(s),n)for(c=0;o=s[c++];)pt.test(o.type||"")&&n.push(o);return f}!function(){var t=T.createDocumentFragment().appendChild(T.createElement("div")),e=T.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var xt=/^key/,bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function Tt(){return!1}function Et(t,e){return t===function(){try{return T.activeElement}catch(t){}}()==("focus"===e)}function Pt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Pt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Tt;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return E().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),t.each(function(){E.event.add(this,e,r,i,n)})}function Lt(t,r,o){o?($.set(t,r,!1),E.event.add(t,r,{namespace:!1,handler:function(t){var e,n,i=$.get(this,r);if(1&t.isTrigger&&this[r]){if(i.length)(E.event.special[r]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),$.set(this,r,i),e=o(this,r),this[r](),i!==(n=$.get(this,r))||e?$.set(this,r,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n.value}else i.length&&($.set(this,r,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===$.get(t,r)&&E.event.add(t,r,St)}E.event={global:{},add:function(e,t,n,i,r){var o,s,a,u,l,c,f,h,d,p,m,g=$.get(e);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(it,r),n.guid||(n.guid=E.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(z)||[""]).length;l--;)d=m=(a=wt.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,s,a,u,l,c,f,h,d,p,m,g=$.hasData(t)&&$.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(z)||[""]).length;l--;)if(d=m=(a=wt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),d){for(f=E.event.special[d]||{},h=u[d=(i?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,g.handle)||E.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)E.event.remove(t,d+e[l],n,i,!0);E.isEmptyObject(u)&&$.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=E.event.fix(t),u=new Array(arguments.length),l=($.get(this,"events")||{})[a.type]||[],c=E.event.special[a.type]||{};for(u[0]=a,e=1;e<arguments.length;e++)u[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=E.event.handlers.call(this,a,l),e=0;(r=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,u))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,r,o,s,a=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&1<=t.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?-1<E(r,this).index(l):E.find(r,this,null,[l]).length),s[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,u<e.length&&a.push({elem:l,handlers:e.slice(u)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:_(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&L(e,"input")&&Lt(e,"click",St),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&L(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&L(e,"input")&&$.get(e,"click")||L(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?St:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=St,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=St,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=St,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&xt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&bt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return Lt(this,t,Et),!1},trigger:function(){return Lt(this,t),!0},delegateType:e}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){E.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||E.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),E.fn.extend({on:function(t,e,n,i){return Pt(this,t,e,n,i)},one:function(t,e,n,i){return Pt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Tt),this.each(function(){E.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r]);return this}});var Ct=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,kt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function At(t,e){return L(t,"table")&&L(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,i,r,o,s,a,u,l;if(1===e.nodeType){if($.hasData(t)&&(o=$.access(t),s=$.set(e,o),l=o.events))for(r in delete s.handle,s.events={},l)for(n=0,i=l[r].length;n<i;n++)E.event.add(e,r,l[r][n]);Y.hasData(t)&&(a=Y.access(t),u=E.extend({},a),Y.set(e,u))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ht.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(n,i,r,o){i=g.apply([],i);var t,e,s,a,u,l,c=0,f=n.length,h=f-1,d=i[0],p=_(d);if(p||1<f&&"string"==typeof d&&!y.checkClone&&It.test(d))return n.each(function(t){var e=n.eq(t);p&&(i[0]=d.call(this,t,e.html())),Ft(e,i,r,o)});if(f&&(e=(t=_t(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(a=(s=E.map(gt(t,"script"),Ot)).length;c<f;c++)u=t,c!==h&&(u=E.clone(u,!0,!0),a&&E.merge(s,gt(u,"script"))),r.call(n[c],u,c);if(a)for(l=s[s.length-1].ownerDocument,E.map(s,Nt),c=0;c<a;c++)u=s[c],pt.test(u.type||"")&&!$.access(u,"globalEval")&&E.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):x(u.textContent.replace(Mt,""),u,l))}return n}function jt(t,e,n){for(var i,r=e?E.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(gt(i)),i.parentNode&&(n&&rt(i)&&vt(gt(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t.replace(Ct,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),u=rt(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(s=gt(a),i=0,r=(o=gt(t)).length;i<r;i++)Rt(o[i],s[i]);if(e)if(n)for(o=o||gt(t),s=s||gt(a),i=0,r=o.length;i<r;i++)zt(o[i],s[i]);else zt(t,a);return 0<(s=gt(a,"script")).length&&vt(s,!u&>(t,"script")),a},cleanData:function(t){for(var e,n,i,r=E.event.special,o=0;void 0!==(n=t[o]);o++)if(Q(n)){if(e=n[$.expando]){if(e.events)for(i in e.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[$.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),E.fn.extend({detach:function(t){return jt(this,t,!0)},remove:function(t){return jt(this,t)},text:function(t){return Z(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ft(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||At(this,t).appendChild(t)})},prepend:function(){return Ft(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=At(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return Z(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!kt.test(t)&&!mt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return Ft(this,arguments,function(t){var e=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(gt(this)),e&&e.replaceChild(t,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){E.fn[t]=function(t){for(var e,n=[],i=E(t),r=i.length-1,o=0;o<=r;o++)e=o===r?this:this.clone(!0),E(i[o])[s](e),u.apply(n,e.get());return this.pushStack(n)}});var Dt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=S),e.getComputedStyle(t)},qt=new RegExp(nt.join("|"),"i");function Zt(t,e,n){var i,r,o,s,a=t.style;return(n=n||Bt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||rt(t)||(s=E.style(t,e)),!y.pixelBoxStyles()&&Dt.test(s)&&qt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Ht(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){a.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(a).appendChild(u);var t=S.getComputedStyle(u);n="1%"!==t.top,s=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),i=36===e(t.width),u.style.position="absolute",r=12===e(u.offsetWidth/3),it.removeChild(a),u=null}}function e(t){return Math.round(parseFloat(t))}var n,i,r,o,s,a=T.createElement("div"),u=T.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(y,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),r}}))}();var Vt=["Webkit","Moz","ms"],Wt=T.createElement("div").style,Ut={};function Qt(t){var e=E.cssProps[t]||Ut[t];return e||(t in Wt?t:Ut[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Vt.length;n--;)if((t=Vt[n]+e)in Wt)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,$t=/^--/,Yt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Jt(t,e,n,i,r,o){var s="width"===e?1:0,a=0,u=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=E.css(t,n+nt[s],!0,r)),i?("content"===n&&(u-=E.css(t,"padding"+nt[s],!0,r)),"margin"!==n&&(u-=E.css(t,"border"+nt[s]+"Width",!0,r))):(u+=E.css(t,"padding"+nt[s],!0,r),"padding"!==n?u+=E.css(t,"border"+nt[s]+"Width",!0,r):a+=E.css(t,"border"+nt[s]+"Width",!0,r));return!i&&0<=o&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-a-.5))||0),u}function te(t,e,n){var i=Bt(t),r=(!y.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),o=r,s=Zt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Dt.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&r||"auto"===s||!parseFloat(s)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+Jt(t,e,n||(r?"border":"content"),o,i,s)+"px"}function ee(t,e,n,i,r){return new ee.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=U(e),u=$t.test(e),l=t.style;if(u||(e=Qt(a)),s=E.cssHooks[e]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e];"string"===(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=ut(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=r&&r[3]||(E.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,o,s,a=U(e);return $t.test(e)||(e=Qt(a)),(s=E.cssHooks[e]||E.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Zt(t,e,i)),"normal"===r&&e in Xt&&(r=Xt[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),E.each(["height","width"],function(t,u){E.cssHooks[u]={get:function(t,e,n){if(e)return!Gt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,u,n):st(t,Yt,function(){return te(t,u,n)})},set:function(t,e,n){var i,r=Bt(t),o=!y.scrollboxSize()&&"absolute"===r.position,s=(o||n)&&"border-box"===E.css(t,"boxSizing",!1,r),a=n?Jt(t,u,n,s,r):0;return s&&o&&(a-=Math.ceil(t["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(r[u])-Jt(t,u,"border",!1,r)-.5)),a&&(i=et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[u]=e,e=E.css(t,u)),Kt(0,e,a)}}}),E.cssHooks.marginLeft=Ht(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(r,o){E.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+nt[e]+o]=i[e]||i[e-2]||i[0];return n}},"margin"!==r&&(E.cssHooks[r+o].set=Kt)}),E.fn.extend({css:function(t,e){return Z(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Bt(t),r=e.length;s<r;s++)o[e[s]]=E.css(t,e[s],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,1<arguments.length)}}),((E.Tween=ee).prototype={constructor:ee,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}}).init.prototype=ee.prototype,(ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Qt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=ee.prototype.init,E.fx.step={};var ne,ie,re=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function se(){ie&&(!1===T.hidden&&S.requestAnimationFrame?S.requestAnimationFrame(se):S.setTimeout(se,E.fx.interval),E.fx.tick())}function ae(){return S.setTimeout(function(){ne=void 0}),ne=Date.now()}function ue(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function le(t,e,n){for(var i,r=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function ce(o,t,e){var n,s,i=0,r=ce.prefilters.length,a=E.Deferred().always(function(){delete u.elem}),u=function(){if(s)return!1;for(var t=ne||ae(),e=Math.max(0,l.startTime+l.duration-t),n=1-(e/l.duration||0),i=0,r=l.tweens.length;i<r;i++)l.tweens[i].run(n);return a.notifyWith(o,[l,n,e]),n<1&&r?e:(r||a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l]),!1)},l=a.promise({elem:o,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:t,originalOptions:e,startTime:ne||ae(),duration:e.duration,tweens:[],createTween:function(t,e){var n=E.Tween(o,l.opts,t,e,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var e=0,n=t?l.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)l.tweens[e].run(1);return t?(a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l,t])):a.rejectWith(o,[l,t]),this}}),c=l.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=U(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=E.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,l.opts.specialEasing);i<r;i++)if(n=ce.prefilters[i].call(l,o,c,l.opts))return _(n.stop)&&(E._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return E.map(c,le,l),_(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),E.fx.timer(E.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}E.Animation=E.extend(ce,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ut(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,r=(t=_(t)?(e=t,["*"]):t.match(z)).length;i<r;i++)n=t[i],ce.tweeners[n]=ce.tweeners[n]||[],ce.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,u,l,c,f="width"in e||"height"in e,h=this,d={},p=t.style,m=t.nodeType&&at(t),g=$.get(t,"fxshow");for(i in n.queue||(null==(s=E._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,E.queue(t,"fx").length||s.empty.fire()})})),e)if(r=e[i],re.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}d[i]=g&&g[i]||E.style(t,i)}if((u=!E.isEmptyObject(e))||!E.isEmptyObject(d))for(i in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=$.get(t,"display")),"none"===(c=E.css(t,"display"))&&(l?c=l:(ft([t],!0),l=t.style.display||l,c=E.css(t,"display"),ft([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===E.css(t,"float")&&(u||(h.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=$.access(t,"fxshow",{display:l}),o&&(g.hidden=!m),m&&ft([t],!0),h.done(function(){for(i in m||ft([t]),$.remove(t,"fxshow"),d)E.style(t,i,d[i])})),u=le(m?g[i]:0,i,h),i in g||(g[i]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||_(t)&&t,duration:t,easing:n&&e||e&&!_(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){_(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function r(){var t=ce(this,E.extend({},e),s);(o||$.get(this,"finish"))&&t.stop(!0)}var o=E.isEmptyObject(e),s=E.speed(t,n,i);return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(r,t,o){function s(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=E.timers,i=$.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&oe.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||E.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=$.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],r=E.timers,o=n?n.length:0;for(e.finish=!0,E.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===s&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,i){var r=E.fn[i];E.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(ue(i,!0),t,e,n)}}),E.each({slideDown:ue("show"),slideUp:ue("hide"),slideToggle:ue("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){E.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(ne=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),ne=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ie||(ie=!0,se())},E.fx.stop=function(){ie=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,t){return i=E.fx&&E.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=S.setTimeout(t,i);e.stop=function(){S.clearTimeout(n)}})},function(){var t=T.createElement("input"),e=T.createElement("select").appendChild(T.createElement("option"));t.type="checkbox",y.checkOn=""!==t.value,y.optSelected=e.selected,(t=T.createElement("input")).value="t",t.type="radio",y.radioValue="t"===t.value}();var fe,he=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return Z(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&L(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(z);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var s=he[e]||E.find.attr;he[e]=function(t,e,n){var i,r,o=e.toLowerCase();return n||(r=he[o],he[o]=i,i=null!=s(t,e,n)?o:null,he[o]=r),i}});var de=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function me(t){return(t.match(z)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}E.fn.extend({prop:function(t,e){return Z(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,u=0;if(_(e))return this.each(function(t){E(this).addClass(e.call(this,t,ge(this)))});if((t=ve(e)).length)for(;n=this[u++];)if(r=ge(n),i=1===n.nodeType&&" "+me(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=me(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,u=0;if(_(e))return this.each(function(t){E(this).removeClass(e.call(this,t,ge(this)))});if(!arguments.length)return this.attr("class","");if((t=ve(e)).length)for(;n=this[u++];)if(r=ge(n),i=1===n.nodeType&&" "+me(r)+" "){for(s=0;o=t[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(a=me(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,e){var o=typeof r,s="string"==o||Array.isArray(r);return"boolean"==typeof e&&s?e?this.addClass(r):this.removeClass(r):_(r)?this.each(function(t){E(this).toggleClass(r.call(this,t,ge(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=E(this),i=ve(r);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==r&&"boolean"!=o||((t=ge(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===r?"":$.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+me(ge(n))+" ").indexOf(e))return!0;return!1}});var ye=/\r/g;E.fn.extend({val:function(n){var i,t,r,e=this[0];return arguments.length?(r=_(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=r?n.call(this,t,E(this).val()):n)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=E.map(e,function(t){return null==t?"":t+""})),(i=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=E.valHooks[e.type]||E.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(ye,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:me(E.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:r.length;for(i=o<0?u:s?o:0;i<u;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(e=E(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),s=r.length;s--;)((i=r[s]).selected=-1<E.inArray(E.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<E.inArray(E(t).val(),e)}},y.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in S;function _e(t){t.stopPropagation()}var xe=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(t,e,n,i){var r,o,s,a,u,l,c,f,h=[n||T],d=v.call(t,"type")?t.type:t,p=v.call(t,"namespace")?t.namespace.split("."):[];if(o=f=s=n=n||T,3!==n.nodeType&&8!==n.nodeType&&!xe.test(d+E.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),u=d.indexOf(":")<0&&"on"+d,(t=t[E.expando]?t:new E.Event(d,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),c=E.event.special[d]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!m(n)){for(a=c.delegateType||d,xe.test(a+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||T)&&h.push(s.defaultView||s.parentWindow||S)}for(r=0;(o=h[r++])&&!t.isPropagationStopped();)f=o,t.type=1<r?a:c.bindType||d,(l=($.get(o,"events")||{})[t.type]&&$.get(o,"handle"))&&l.apply(o,e),(l=u&&o[u])&&l.apply&&Q(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),e)||!Q(n)||u&&_(n[d])&&!m(n)&&((s=n[u])&&(n[u]=null),E.event.triggered=d,t.isPropagationStopped()&&f.addEventListener(d,_e),n[d](),t.isPropagationStopped()&&f.removeEventListener(d,_e),E.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,n){var i=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(i,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),y.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){E.event.simulate(i,t.target,E.event.fix(t))}E.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=$.access(t,i);e||t.addEventListener(n,r,!0),$.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=$.access(t,i)-1;e?$.access(t,i,e):(t.removeEventListener(n,r,!0),$.remove(t,i))}}});var be=S.location,we=Date.now(),Se=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new S.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var Te=/\[\]$/,Ee=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function Ce(n,t,i,r){var e;if(Array.isArray(t))E.each(t,function(t,e){i||Te.test(n)?r(n,e):Ce(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,r)});else if(i||"object"!==b(t))r(n,t);else for(e in t)Ce(n+"["+e+"]",t[e],i,r)}E.param=function(t,e){function n(t,e){var n=_(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)}var i,r=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){n(this.name,this.value)});else for(i in t)Ce(i,t[i],e,n);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Le.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}}):{name:e.name,value:n.replace(Ee,"\r\n")}}).get()}});var ke=/%20/g,Ie=/#.*$/,Me=/([?&])_=[^&]*/,Ae=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:GET|HEAD)$/,Ne=/^\/\//,ze={},Re={},Fe="*/".concat("*"),je=T.createElement("a");function De(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(z)||[];if(_(e))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Be(e,r,o,s){var a={},u=e===Re;function l(t){var i;return a[t]=!0,E.each(e[t]||[],function(t,e){var n=e(r,o,s);return"string"!=typeof n||u||a[n]?u?!(i=n):void 0:(r.dataTypes.unshift(n),l(n),!1)}),i}return l(r.dataTypes[0])||!a["*"]&&l("*")}function qe(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i=i||{})[n]=e[n]);return i&&E.extend(!0,t,i),t}je.href=be.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,E.ajaxSettings),e):qe(E.ajaxSettings,t)},ajaxPrefilter:De(ze),ajaxTransport:De(Re),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var c,f,h,n,d,i,p,m,r,o,g=E.ajaxSetup({},e),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?E(v):E.event,_=E.Deferred(),x=E.Callbacks("once memory"),b=g.statusCode||{},s={},a={},u="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=Ae.exec(h);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(t,e){return null==p&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,s[t]=e),this},overrideMimeType:function(t){return null==p&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(p)w.always(t[w.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||u;return c&&c.abort(e),l(0,e),this}};if(_.promise(w),g.url=((t||g.url||be.href)+"").replace(Ne,be.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(z)||[""],null==g.crossDomain){i=T.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=je.protocol+"//"+je.host!=i.protocol+"//"+i.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=E.param(g.data,g.traditional)),Be(ze,g,e,w),p)return w;for(r in(m=E.event&&g.global)&&0==E.active++&&E.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Oe.test(g.type),f=g.url.replace(Ie,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(ke,"+")):(o=g.url.slice(f.length),g.data&&(g.processData||"string"==typeof g.data)&&(f+=(Se.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(f=f.replace(Me,"$1"),o=(Se.test(f)?"&":"?")+"_="+we+++o),g.url=f+o),g.ifModified&&(E.lastModified[f]&&w.setRequestHeader("If-Modified-Since",E.lastModified[f]),E.etag[f]&&w.setRequestHeader("If-None-Match",E.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Fe+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(v,w,g)||p))return w.abort();if(u="abort",x.add(g.complete),w.done(g.success),w.fail(g.error),c=Be(Re,g,e,w)){if(w.readyState=1,m&&y.trigger("ajaxSend",[w,g]),p)return w;g.async&&0<g.timeout&&(d=S.setTimeout(function(){w.abort("timeout")},g.timeout));try{p=!1,c.send(s,l)}catch(t){if(p)throw t;l(-1,t)}}else l(-1,"No Transport");function l(t,e,n,i){var r,o,s,a,u,l=e;p||(p=!0,d&&S.clearTimeout(d),c=void 0,h=i||"",w.readyState=0<t?4:0,r=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,r,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||t.converters[r+" "+u[0]]){o=r;break}s=s||r}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(g,w,n)),a=function(t,e,n,i){var r,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(r in l)if((a=r.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[r]:!0!==l[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(g,a,w,r),r?(g.ifModified&&((u=w.getResponseHeader("Last-Modified"))&&(E.lastModified[f]=u),(u=w.getResponseHeader("etag"))&&(E.etag[f]=u)),204===t||"HEAD"===g.type?l="nocontent":304===t?l="notmodified":(l=a.state,o=a.data,r=!(s=a.error))):(s=l,!t&&l||(l="error",t<0&&(t=0))),w.status=t,w.statusText=(e||l)+"",r?_.resolveWith(v,[o,l,w]):_.rejectWith(v,[w,l,s]),w.statusCode(b),b=void 0,m&&y.trigger(r?"ajaxSuccess":"ajaxError",[w,g,r?o:s]),x.fireWith(v,[w,l]),m&&(y.trigger("ajaxComplete",[w,g]),--E.active||E.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,r){E[r]=function(t,e,n,i){return _(e)&&(i=i||n,n=e,e=void 0),E.ajax(E.extend({url:t,type:r,dataType:i,data:e,success:n},E.isPlainObject(t)&&t))}}),E._evalUrl=function(t,e){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(_(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return _(n)?this.each(function(t){E(this).wrapInner(n.call(this,t))}):this.each(function(){var t=E(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=_(e);return this.each(function(t){E(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new S.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},He=E.ajaxSettings.xhr();y.cors=!!He&&"withCredentials"in He,y.ajax=He=!!He,E.ajaxTransport(function(r){var o,s;if(y.cors||He&&!r.crossDomain)return{send:function(t,e){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ze[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),s=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&S.setTimeout(function(){o&&s()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(i[0])},abort:function(){r&&r()}}});var Ve=[],We=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||E.expando+"_"+we++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,s=!1!==t.jsonp&&(We.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=_(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(We,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=S[i],S[i]=function(){o=arguments},n.always(function(){void 0===r?E(S).removeProp(i):S[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ve.push(i)),o&&_(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=function(){var t=T.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(y.createHTMLDocument?((i=(e=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,e.head.appendChild(i)):e=T),o=!n&&[],(r=C.exec(t))?[e.createElement(r[1])]:(r=_t([t],e,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return-1<a&&(i=me(t.slice(a)),t=t.slice(0,a)),_(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<s.length&&E.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(t,e,n){var i,r,o,s,a,u,l=E.css(t,"position"),c=E(t),f={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=E.css(t,"top"),u=E.css(t,"left"),r=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(s=(i=c.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(u)||0),_(e)&&(e=e.call(t,n,E.extend({},a))),null!=e.top&&(f.top=e.top-a.top+s),null!=e.left&&(f.left=e.left-a.left+r),"using"in e?e.using.call(t,f):c.css(f)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),r.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-E.css(i,"marginTop",!0),left:e.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||it})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;E.fn[e]=function(t){return Z(this,function(t,e,n){var i;if(m(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[r]:t[e];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),E.each(["top","left"],function(t,n){E.cssHooks[n]=Ht(y.pixelPosition,function(t,e){if(e)return e=Zt(t,n),Dt.test(e)?E(t).position()[n]+"px":e})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){E.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return Z(this,function(t,e,n){var i;return m(t)?0===o.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(t,e,r):E.style(t,e,n,r)},a,n?t:void 0,n)}})}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){E.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),E.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),E.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),_(t))return i=a.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(a.call(arguments)))}).guid=t.guid=t.guid||E.guid++,r},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=L,E.isFunction=_,E.isWindow=m,E.camelCase=U,E.type=b,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(Ye=function(){return E}.apply($e,[]))||(Ge.exports=Ye);var Ue=S.jQuery,Qe=S.$;return E.noConflict=function(t){return S.$===E&&(S.$=Qe),t&&S.jQuery===E&&(S.jQuery=Ue),E},t||(S.jQuery=S.$=E),E})},function(t,e,n){var i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(49)("wks"),r=n(35),o=n(3).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e,n){var i=n(23),r=Math.min;t.exports=function(t){return 0<t?r(i(t),9007199254740991):0}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(2),r=n(100),o=n(25),s=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(26);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(9),r=n(34);t.exports=n(8)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(3),s=n(12),a=n(15),u=n(35)("src"),i=n(149),r="toString",l=(""+i).split(r);n(20).inspectSource=function(t){return i.call(t)},(t.exports=function(t,e,n,i){var r="function"==typeof n;r&&(a(n,"name")||s(n,"name",e)),t[e]!==n&&(r&&(a(n,u)||s(n,u,t[e]?""+t[e]:l.join(String(e)))),t===o?t[e]=n:i?t[e]?t[e]=n:s(t,e,n):(delete t[e],s(t,e,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[u]||i.call(this)})},function(t,e,n){function i(t,e,n,i){var r=String(s(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(i).replace(a,""")+'"'),o+">"+r+"</"+e+">"}var r=n(0),o=n(4),s=n(26),a=/"/g;t.exports=function(e,t){var n={};n[e]=t(i),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(50),r=n(26);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(51),r=n(34),o=n(16),s=n(25),a=n(15),u=n(100),l=Object.getOwnPropertyDescriptor;e.f=n(8)?l:function(t,e){if(t=o(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(15),r=n(10),o=n(74)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){
|
|
27
|
-
/* @preserve
|
|
28
|
-
* Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com
|
|
29
|
-
* (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
30
|
-
*/
|
|
31
|
-
!function(){!function(t){"use strict";var e="1.6.0",n=Object.freeze;function u(t){var e,n,i,r;for(n=1,i=arguments.length;n<i;n++){r=arguments[n];for(e in r){t[e]=r[e]}}return t}Object.freeze=function(t){return t};var o=Object.create||function(){function e(){}return function(t){e.prototype=t;return new e}}();function a(t,e){var n=Array.prototype.slice;if(t.bind){return t.bind.apply(t,n.call(arguments,1))}var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var i=0;function l(t){t._leaflet_id=t._leaflet_id||++i;return t._leaflet_id}function r(t,e,n){var i,r,o,s;s=function(){i=false;if(r){o.apply(n,r);r=false}};o=function(){if(i){r=arguments}else{t.apply(n,arguments);setTimeout(s,e);i=true}};return o}function s(t,e,n){var i=e[1],r=e[0],o=i-r;return t===i&&n?t:((t-r)%o+o)%o+r}function c(){return false}function f(t,e){var n=Math.pow(10,e===undefined?6:e);return Math.round(t*n)/n}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return h(t).split(/\s+/)}function p(t,e){if(!t.hasOwnProperty("options")){t.options=t.options?o(t.options):{}}for(var n in e){t.options[n]=e[n]}return t.options}function m(t,e,n){var i=[];for(var r in t){i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]))}return(!e||e.indexOf("?")===-1?"?":"&")+i.join("&")}var g=/\{ *([\w_-]+) *\}/g;function v(t,i){return t.replace(g,function(t,e){var n=i[e];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(i)}return n})}var y=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function _(t,e){for(var n=0;n<t.length;n++){if(t[n]===e){return n}}return-1}var x="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function S(t){var e=+new Date,n=Math.max(0,16-(e-w));w=e+n;return window.setTimeout(t,n)}var T=window.requestAnimationFrame||b("RequestAnimationFrame")||S,E=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,n){if(n&&T===S){t.call(e)}else{return T.call(window,a(t,e))}}function C(t){if(t){E.call(window,t)}}var k=(Object.freeze||Object)({freeze:n,extend:u,create:o,bind:a,lastId:i,stamp:l,throttle:r,wrapNum:s,falseFn:c,formatNum:f,trim:h,splitWords:d,setOptions:p,getParamString:m,template:v,isArray:y,indexOf:_,emptyImageUrl:x,requestFn:T,cancelFn:E,requestAnimFrame:P,cancelAnimFrame:C});function I(){}function M(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=y(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}I.extend=function(t){var e=function(){if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var n=e.__super__=this.prototype;var i=o(n);i.constructor=e;e.prototype=i;for(var r in this){if(this.hasOwnProperty(r)&&r!=="prototype"&&r!=="__super__"){e[r]=this[r]}}if(t.statics){u(e,t.statics);delete t.statics}if(t.includes){M(t.includes);u.apply(null,[i].concat(t.includes));delete t.includes}if(i.options){t.options=u(o(i.options),t.options)}u(i,t);i._initHooks=[];i.callInitHooks=function(){if(this._initHooksCalled){return}if(n.callInitHooks){n.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=i._initHooks.length;t<e;t++){i._initHooks[t].call(this)}};return e},I.include=function(t){u(this.prototype,t);return this},I.mergeOptions=function(t){u(this.prototype.options,t);return this},I.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var n=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(n);return this};var A={on:function(t,e,n){if(typeof t==="object"){for(var i in t){this._on(i,t[i],e)}}else{t=d(t);for(var r=0,o=t.length;r<o;r++){this._on(t[r],e,n)}}return this},off:function(t,e,n){if(!t){delete this._events}else if(typeof t==="object"){for(var i in t){this._off(i,t[i],e)}}else{t=d(t);for(var r=0,o=t.length;r<o;r++){this._off(t[r],e,n)}}return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];if(!i){i=[];this._events[t]=i}if(n===this){n=undefined}var r={fn:e,ctx:n},o=i;for(var s=0,a=o.length;s<a;s++){if(o[s].fn===e&&o[s].ctx===n){return}}o.push(r)},_off:function(t,e,n){var i,r,o;if(!this._events){return}i=this._events[t];if(!i){return}if(!e){for(r=0,o=i.length;r<o;r++){i[r].fn=c}delete this._events[t];return}if(n===this){n=undefined}if(i){for(r=0,o=i.length;r<o;r++){var s=i[r];if(s.ctx!==n){continue}if(s.fn===e){s.fn=c;if(this._firingCount){this._events[t]=i=i.slice()}i.splice(r,1);return}}}},fire:function(t,e,n){if(!this.listens(t,n)){return this}var i=u({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var o=0,s=r.length;o<s;o++){var a=r[o];a.fn.call(a.ctx||this,i)}this._firingCount--}}if(n){this._propagateEvent(i)}return this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length){return true}if(e){for(var i in this._eventParents){if(this._eventParents[i].listens(t,e)){return true}}}return false},once:function(t,e,n){if(typeof t==="object"){for(var i in t){this.once(i,t[i],e)}return this}var r=a(function(){this.off(t,e,n).off(t,r,n)},this);return this.on(t,e,n).on(t,r,n)},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[l(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[l(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,u({layer:t.target,propagatedFrom:t.target},t),true)}}};A.addEventListener=A.on,A.removeEventListener=A.clearAllEventListeners=A.off,A.addOneTimeEventListener=A.once,A.fireEvent=A.fire,A.hasEventListeners=A.listens;var O=I.extend(A);function N(t,e,n){this.x=n?Math.round(t):t;this.y=n?Math.round(e):e}var z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function R(t,e,n){if(t instanceof N){return t}if(y(t)){return new N(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new N(t.x,t.y)}return new N(t,e,n)}function F(t,e){if(!t){return}var n=e?[t,e]:t;for(var i=0,r=n.length;i<r;i++){this.extend(n[i])}}function j(t,e){if(!t||t instanceof F){return t}return new F(t,e)}function D(t,e){if(!t){return}var n=e?[t,e]:t;for(var i=0,r=n.length;i<r;i++){this.extend(n[i])}}function B(t,e){if(t instanceof D){return t}return new D(t,e)}function q(t,e,n){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(n!==undefined){this.alt=+n}}function Z(t,e,n){if(t instanceof q){return t}if(y(t)&&typeof t[0]!=="object"){if(t.length===3){return new q(t[0],t[1],t[2])}if(t.length===2){return new q(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new q(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new q(t,e,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(t){return this.clone()._add(R(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(R(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new N(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new N(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=z(this.x);this.y=z(this.y);return this},distanceTo:function(t){t=R(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){t=R(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=R(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}},F.prototype={extend:function(t){t=R(t);if(!this.min&&!this.max){this.min=t.clone();this.max=t.clone()}else{this.min.x=Math.min(t.x,this.min.x);this.max.x=Math.max(t.x,this.max.x);this.min.y=Math.min(t.y,this.min.y);this.max.y=Math.max(t.y,this.max.y)}return this},getCenter:function(t){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;if(typeof t[0]==="number"||t instanceof N){t=R(t)}else{t=j(t)}if(t instanceof F){e=t.min;n=t.max}else{e=n=t}return e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=j(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,s=r.y>=e.y&&i.y<=n.y;return o&&s},overlaps:function(t){t=j(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.x<n.x,s=r.y>e.y&&i.y<n.y;return o&&s},isValid:function(){return!!(this.min&&this.max)}},D.prototype={extend:function(t){var e=this._southWest,n=this._northEast,i,r;if(t instanceof q){i=t;r=t}else if(t instanceof D){i=t._southWest;r=t._northEast;if(!i||!r){return this}}else{return t?this.extend(Z(t)||B(t)):this}if(!e&&!n){this._southWest=new q(i.lat,i.lng);this._northEast=new q(r.lat,r.lng)}else{e.lat=Math.min(i.lat,e.lat);e.lng=Math.min(i.lng,e.lng);n.lat=Math.max(r.lat,n.lat);n.lng=Math.max(r.lng,n.lng)}return this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new D(new q(e.lat-i,e.lng-r),new q(n.lat+i,n.lng+r))},getCenter:function(){return new q((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new q(this.getNorth(),this.getWest())},getSouthEast:function(){return new q(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof q||"lat"in t){t=Z(t)}else{t=B(t)}var e=this._southWest,n=this._northEast,i,r;if(t instanceof D){i=t.getSouthWest();r=t.getNorthEast()}else{i=r=t}return i.lat>=e.lat&&r.lat<=n.lat&&i.lng>=e.lng&&r.lng<=n.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,s=r.lng>=e.lng&&i.lng<=n.lng;return o&&s},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.lat<n.lat,s=r.lng>e.lng&&i.lng<n.lng;return o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=B(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}},q.prototype={equals:function(t,e){if(!t){return false}t=Z(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+f(this.lat,t)+", "+f(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,Z(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new q(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,n=this.scale(t),i=this.transformation.transform(e.min,n),r=this.transformation.transform(e.max,n);return new F(i,r)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?s(t.lng,this.wrapLng,true):t.lng,n=this.wrapLat?s(t.lat,this.wrapLat,true):t.lat,i=t.alt;return new q(n,e,i)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,r=e.lng-n.lng;if(i===0&&r===0){return t}var o=t.getSouthWest(),s=t.getNorthEast(),a=new q(o.lat-i,o.lng-r),u=new q(s.lat-i,s.lng-r);return new D(a,u)}},V=u({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,r=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=o*o+Math.cos(i)*Math.cos(r)*s*s,u=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*u}}),W=6378137,U={R:W,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),r=Math.sin(i*e);return new N(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new q((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=W*Math.PI;return new F([-t,-t],[t,t])}()};function Q(t,e,n,i){if(y(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=n;this._d=i}function G(t,e,n,i){return new Q(t,e,n,i)}Q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new N((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var $=u({},V,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return G(t,.5,-t,.5)}()}),Y=u({},$,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var n="",i,r,o,s,a,u;for(i=0,o=t.length;i<o;i++){a=t[i];for(r=0,s=a.length;r<s;r++){u=a[r];n+=(r?"L":"M")+u.x+" "+u.y}n+=e?It?"z":"x":""}return n||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),it=At("webkit"),rt=At("android"),ot=At("android 2")||At("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=rt&&At("Google")&&st<537&&!("AudioNode"in window),ut=!!window.opera,lt=At("chrome"),ct=At("gecko")&&!it&&!ut&&!tt,ft=!lt&&At("safari"),ht=At("phantom"),dt="OTransition"in J,pt=navigator.platform.indexOf("Win")===0,mt=tt&&"transition"in J,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in J,yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!dt&&!ht,_t=typeof orientation!=="undefined"||At("mobile"),xt=_t&&it,bt=_t&>,wt=!window.PointerEvent&&window.MSPointerEvent,St=!it&&!!(window.PointerEvent||wt),Tt=!window.L_NO_TOUCH&&(St||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Et=_t&&ut,Pt=_t&&ct,Lt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ct=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,e);window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t},kt=function(){return!!document.createElement("canvas").getContext}(),It=!!(document.createElementNS&&X("svg").createSVGRect),Mt=!It&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(t){return false}}();function At(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot=(Object.freeze||Object)({ie:tt,ielt9:et,edge:nt,webkit:it,android:rt,android23:ot,androidStock:at,opera:ut,chrome:lt,gecko:ct,safari:ft,phantom:ht,opera12:dt,win:pt,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:_t,mobileWebkit:xt,mobileWebkit3d:bt,msPointer:wt,pointer:St,touch:Tt,mobileOpera:Et,mobileGecko:Pt,retina:Lt,passiveEvents:Ct,canvas:kt,svg:It,vml:Mt}),Nt=wt?"MSPointerDown":"pointerdown",zt=wt?"MSPointerMove":"pointermove",Rt=wt?"MSPointerUp":"pointerup",Ft=wt?"MSPointerCancel":"pointercancel",jt=["INPUT","SELECT","OPTION"],Dt={},Bt=false,qt=0;function Zt(t,e,n,i){if(e==="touchstart"){Vt(t,n,i)}else if(e==="touchmove"){$t(t,n,i)}else if(e==="touchend"){Yt(t,n,i)}return this}function Ht(t,e,n){var i=t["_leaflet_"+e+n];if(e==="touchstart"){t.removeEventListener(Nt,i,false)}else if(e==="touchmove"){t.removeEventListener(zt,i,false)}else if(e==="touchend"){t.removeEventListener(Rt,i,false);t.removeEventListener(Ft,i,false)}return this}function Vt(t,e,n){var i=a(function(t){if(t.pointerType!=="mouse"&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(jt.indexOf(t.target.tagName)<0){Ve(t)}else{return}}Gt(t,e)});t["_leaflet_touchstart"+n]=i;t.addEventListener(Nt,i,false);if(!Bt){document.documentElement.addEventListener(Nt,Wt,true);document.documentElement.addEventListener(zt,Ut,true);document.documentElement.addEventListener(Rt,Qt,true);document.documentElement.addEventListener(Ft,Qt,true);Bt=true}}function Wt(t){Dt[t.pointerId]=t;qt++}function Ut(t){if(Dt[t.pointerId]){Dt[t.pointerId]=t}}function Qt(t){delete Dt[t.pointerId];qt--}function Gt(t,e){t.touches=[];for(var n in Dt){t.touches.push(Dt[n])}t.changedTouches=[t];e(t)}function $t(t,e,n){var i=function(t){if((t.pointerType===t.MSPOINTER_TYPE_MOUSE||t.pointerType==="mouse")&&t.buttons===0){return}Gt(t,e)};t["_leaflet_touchmove"+n]=i;t.addEventListener(zt,i,false)}function Yt(t,e,n){var i=function(t){Gt(t,e)};t["_leaflet_touchend"+n]=i;t.addEventListener(Rt,i,false);t.addEventListener(Ft,i,false)}var Xt=wt?"MSPointerDown":St?"pointerdown":"touchstart",Kt=wt?"MSPointerUp":St?"pointerup":"touchend",Jt="_leaflet_";function te(t,r,e){var o,s,a=false,u=250;function n(t){var e;if(St){if(!nt||t.pointerType==="mouse"){return}e=qt}else{e=t.touches.length}if(e>1){return}var n=Date.now(),i=n-(o||n);s=t.touches?t.touches[0]:t;a=i>0&&i<=u;o=n}function i(t){if(a&&!s.cancelBubble){if(St){if(!nt||t.pointerType==="mouse"){return}var e={},n,i;for(i in s){n=s[i];e[i]=n&&n.bind?n.bind(s):n}s=e}s.type="dblclick";s.button=0;r(s);o=null}}t[Jt+Xt+e]=n;t[Jt+Kt+e]=i;t[Jt+"dblclick"+e]=r;t.addEventListener(Xt,n,Ct?{passive:false}:false);t.addEventListener(Kt,i,Ct?{passive:false}:false);t.addEventListener("dblclick",r,false);return this}function ee(t,e){var n=t[Jt+Xt+e],i=t[Jt+Kt+e],r=t[Jt+"dblclick"+e];t.removeEventListener(Xt,n,Ct?{passive:false}:false);t.removeEventListener(Kt,i,Ct?{passive:false}:false);if(!nt){t.removeEventListener("dblclick",r,false)}return this}var ne=Te(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ie=Te(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),re=ie==="webkitTransition"||ie==="OTransition"?ie+"End":"transitionend",oe,se,ae,ue,le;function ce(t){return typeof t==="string"?document.getElementById(t):t}function fe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return n==="auto"?null:n}function he(t,e,n){var i=document.createElement(t);i.className=e||"";if(n){n.appendChild(i)}return i}function de(t){var e=t.parentNode;if(e){e.removeChild(t)}}function pe(t){while(t.firstChild){t.removeChild(t.firstChild)}}function me(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function ge(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function ve(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var n=be(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ye(t,e){if(t.classList!==undefined){var n=d(e);for(var i=0,r=n.length;i<r;i++){t.classList.add(n[i])}}else if(!ve(t,e)){var o=be(t);xe(t,(o?o+" ":"")+e)}}function _e(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{xe(t,h((" "+be(t)+" ").replace(" "+e+" "," ")))}}function xe(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function be(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function we(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){Se(t,e)}}function Se(t,e){var n=false,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(e===1){return}}e=Math.round(e*100);if(n){n.Enabled=e!==100;n.Opacity=e}else{t.style.filter+=" progid:"+i+"(opacity="+e+")"}}function Te(t){var e=document.documentElement.style;for(var n=0;n<t.length;n++){if(t[n]in e){return t[n]}}return false}function Ee(t,e,n){var i=e||new N(0,0);t.style[ne]=(mt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Pe(t,e){t._leaflet_pos=e;if(yt){Ee(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function Le(t){return t._leaflet_pos||new N(0,0)}if("onselectstart"in document){oe=function(){Re(window,"selectstart",Ve)};se=function(){je(window,"selectstart",Ve)}}else{var Ce=Te(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=function(){if(Ce){var t=document.documentElement.style;ae=t[Ce];t[Ce]="none"}};se=function(){if(Ce){document.documentElement.style[Ce]=ae;ae=undefined}}}function ke(){Re(window,"dragstart",Ve)}function Ie(){je(window,"dragstart",Ve)}function Me(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ae();ue=t;le=t.style.outline;t.style.outline="none";Re(window,"keydown",Ae)}function Ae(){if(!ue){return}ue.style.outline=le;ue=undefined;le=undefined;je(window,"keydown",Ae)}function Oe(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ne(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ze=(Object.freeze||Object)({TRANSFORM:ne,TRANSITION:ie,TRANSITION_END:re,get:ce,getStyle:fe,create:he,remove:de,empty:pe,toFront:me,toBack:ge,hasClass:ve,addClass:ye,removeClass:_e,setClass:xe,getClass:be,setOpacity:we,testProp:Te,setTransform:Ee,setPosition:Pe,getPosition:Le,disableTextSelection:oe,enableTextSelection:se,disableImageDrag:ke,enableImageDrag:Ie,preventOutline:Me,restoreOutline:Ae,getSizedParentNode:Oe,getScale:Ne});function Re(t,e,n,i){if(typeof e==="object"){for(var r in e){De(t,r,e[r],n)}}else{e=d(e);for(var o=0,s=e.length;o<s;o++){De(t,e[o],n,i)}}return this}var Fe="_leaflet_events";function je(t,e,n,i){if(typeof e==="object"){for(var r in e){Be(t,r,e[r],n)}}else if(e){e=d(e);for(var o=0,s=e.length;o<s;o++){Be(t,e[o],n,i)}}else{for(var a in t[Fe]){Be(t,a,t[Fe][a])}delete t[Fe]}return this}function De(e,t,n,i){var r=t+l(n)+(i?"_"+l(i):"");if(e[Fe]&&e[Fe][r]){return this}var o=function(t){return n.call(i||e,t||window.event)};var s=o;if(St&&t.indexOf("touch")===0){Zt(e,t,o,r)}else if(Tt&&t==="dblclick"&&te&&!(St&<)){te(e,o,r)}else if("addEventListener"in e){if(t==="mousewheel"){e.addEventListener("onwheel"in e?"wheel":"mousewheel",o,Ct?{passive:false}:false)}else if(t==="mouseenter"||t==="mouseleave"){o=function(t){t=t||window.event;if(Je(e,t)){s(t)}};e.addEventListener(t==="mouseenter"?"mouseover":"mouseout",o,false)}else{if(t==="click"&&rt){o=function(t){tn(t,s)}}e.addEventListener(t,o,false)}}else if("attachEvent"in e){e.attachEvent("on"+t,o)}e[Fe]=e[Fe]||{};e[Fe][r]=o}function Be(t,e,n,i){var r=e+l(n)+(i?"_"+l(i):""),o=t[Fe]&&t[Fe][r];if(!o){return this}if(St&&e.indexOf("touch")===0){Ht(t,e,r)}else if(Tt&&e==="dblclick"&&ee&&!(St&<)){ee(t,r)}else if("removeEventListener"in t){if(e==="mousewheel"){t.removeEventListener("onwheel"in t?"wheel":"mousewheel",o,Ct?{passive:false}:false)}else{t.removeEventListener(e==="mouseenter"?"mouseover":e==="mouseleave"?"mouseout":e,o,false)}}else if("detachEvent"in t){t.detachEvent("on"+e,o)}t[Fe][r]=null}function qe(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}Ke(t);return this}function Ze(t){De(t,"mousewheel",qe);return this}function He(t){Re(t,"mousedown touchstart dblclick",qe);De(t,"click",Xe);return this}function Ve(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function We(t){Ve(t);qe(t);return this}function Ue(t,e){if(!e){return new N(t.clientX,t.clientY)}var n=Ne(e),i=n.boundingClientRect;return new N((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Qe=pt&<?2*window.devicePixelRatio:ct?window.devicePixelRatio:1;function Ge(t){return nt?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Qe:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}var $e={},Ye;function Xe(t){$e[t.type]=true}function Ke(t){var e=$e[t.type];$e[t.type]=false;return e}function Je(t,e){var n=e.relatedTarget;if(!n){return true}try{while(n&&n!==t){n=n.parentNode}}catch(t){return false}return n!==t}function tn(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,i=Ye&&n-Ye;if(i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated){We(t);return}Ye=n;e(t)}var en=(Object.freeze||Object)({on:Re,off:je,stopPropagation:qe,disableScrollPropagation:Ze,disableClickPropagation:He,preventDefault:Ve,stop:We,getMousePosition:Ue,getWheelDelta:Ge,fakeStop:Xe,skipped:Ke,isExternalTarget:Je,addListener:Re,removeListener:je}),nn=O.extend({run:function(t,e,n,i){this.stop();this._el=t;this._inProgress=true;this._duration=n||.25;this._easeOutPower=1/Math.max(i||.5,.2);this._startPos=Le(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=P(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;if(e<n){this._runFrame(this._easeOut(e/n),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));if(e){n._round()}Pe(this._el,n);this.fire("step")},_complete:function(){C(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=O.extend({options:{crs:$,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=p(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=a(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(Z(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ie&&yt&&!Et&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Re(this._proxy,re,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(Z(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=u({animate:n.animate},n.zoom);n.pan=u({animate:n.animate,duration:n.duration},n.pan)}var i=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(i){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(yt?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(yt?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),r=this.getSize().divideBy(2),o=t instanceof N?t:this.latLngToContainerPoint(t),s=o.subtract(r).multiplyBy(1-1/i),a=this.containerPointToLatLng(r.add(s));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():B(t);var n=R(e.paddingTopLeft||e.padding||[0,0]),i=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,false,n.add(i));r=typeof e.maxZoom==="number"?Math.min(e.maxZoom,r):r;if(r===Infinity){return{center:t.getCenter(),zoom:r}}var o=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),r),a=this.project(t.getNorthEast(),r),u=this.unproject(s.add(a).divideBy(2).add(o),r);return{center:u,zoom:r}},fitBounds:function(t,e){t=B(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=R(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new nn;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){ye(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(n,i,t){t=t||{};if(t.animate===false||!yt){return this.setView(n,i,t)}this._stop();var r=this.project(this.getCenter()),o=this.project(n),e=this.getSize(),s=this._zoom;n=Z(n);i=i===undefined?s:i;var u=Math.max(e.x,e.y),l=u*this.getZoomScale(s,i),c=o.distanceTo(r)||1,a=1.42,f=a*a;function h(t){var e=t?-1:1,n=t?l:u,i=l*l-u*u+e*f*f*c*c,r=2*n*f*c,o=i/r,s=Math.sqrt(o*o+1)-o;var a=s<1e-9?-18:Math.log(s);return a}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return d(t)/p(t)}var g=h(0);function v(t){return u*(p(g)/p(g+a*t))}function y(t){return u*(p(g)*m(g+a*t)-d(g))/f}function _(t){return 1-Math.pow(1-t,1.5)}var x=Date.now(),b=(h(1)-g)/a,w=t.duration?1e3*t.duration:1e3*b*.8;function S(){var t=(Date.now()-x)/w,e=_(t)*b;if(t<=1){this._flyToFrame=P(S,this);this._move(this.unproject(r.add(o.subtract(r).multiplyBy(y(e)/c)),s),this.getScaleZoom(u/v(e),s),{flyTo:true})}else{this._move(n,i)._moveEnd(true)}}this._moveStart(true,t.noMoveStart);S.call(this);return this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){t=B(t);if(!t.isValid()){this.options.maxBounds=null;return this.off("moveend",this._panInsideMaxBounds)}else if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,B(t));if(!n.equals(i)){this.panTo(i,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var n=R(e.paddingTopLeft||e.padding||[0,0]),i=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),s=this.project(t),a=this.getPixelBounds(),u=a.getSize().divideBy(2),l=j([a.min.add(n),a.max.subtract(i)]);if(!l.contains(s)){this._enforcingBounds=true;var c=o.subtract(s),f=R(s.x+c.x,s.y+c.y);if(s.x<l.min.x||s.x>l.max.x){f.x=o.x-c.x;if(c.x>0){f.x+=u.x-n.x}else{f.x-=u.x-i.x}}if(s.y<l.min.y||s.y>l.max.y){f.y=o.y-c.y;if(c.y>0){f.y+=u.y-n.y}else{f.y-=u.y-i.y}}this.panTo(this.unproject(f),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=u({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),i=e.divideBy(2).round(),r=n.divideBy(2).round(),o=i.subtract(r);if(!o.x&&!o.y){return this}if(t.animate&&t.pan){this.panBy(o)}else{if(t.pan){this._rawPanBy(o)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=u({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=a(this._handleGeolocationResponse,this),n=a(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new q(e,n),r=i.toBounds(t.coords.accuracy*2),o=this._locateOptions;if(o.setView){var s=this.getBoundsZoom(r);this.setView(i,o.maxZoom?Math.min(s,o.maxZoom):s)}var a={latlng:i,bounds:r,timestamp:t.timestamp};for(var u in t.coords){if(typeof t.coords[u]==="number"){a[u]=t.coords[u]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var n=this[t]=new e(this);this._handlers.push(n);if(this.options[t]){n.enable()}return this},remove:function(){this._initEvents(true);if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(t){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();de(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){C(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){de(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=he("div",n,e||this._mapPane);if(t){this._panes[t]=i}return i},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new D(e,n)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=B(t);n=R(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),u=this.getSize().subtract(n),l=j(this.project(a,i),this.project(s,i)).getSize(),c=yt?this.options.zoomSnap:1,f=u.x/l.x,h=u.y/l.y,d=e?Math.max(f,h):Math.min(f,h);i=this.getScaleZoom(d,i);if(c){i=Math.round(i/(c/100))*(c/100);i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c}return Math.max(r,Math.min(o,i))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;e=e===undefined?this._zoom:e;return n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===undefined?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?Infinity:i},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(R(t),e)},layerPointToLatLng:function(t){var e=R(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Z(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return R(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return R(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(R(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Ue(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ce(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}Re(e,"scroll",this._onScroll,this);this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt;ye(t,"leaflet-container"+(Tt?" leaflet-touch":"")+(Lt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ft?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=fe(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);Pe(this._mapPane,new N(0,0));this.createPane("tilePane");this.createPane("shadowPane");this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){ye(t.markerPane,"leaflet-zoom-hide");ye(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){Pe(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,false)._move(t,e)._moveEnd(i);this.fire("viewreset");if(n){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,n){if(e===undefined){e=this._zoom}var i=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(i||n&&n.pinch){this.fire("zoom",n)}return this.fire("move",n)},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){C(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){Pe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[l(this._container)]=this;var e=t?je:Re;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(yt&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){C(this._resizeRequest);this._resizeRequest=P(function(){this.invalidateSize({debounceMoveend:true})},this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var n=[],i,r=e==="mouseout"||e==="mouseover",o=t.target||t.srcElement,s=false;while(o){i=this._targets[l(o)];if(i&&(e==="click"||e==="preclick")&&!t._simulated&&this._draggableMoved(i)){s=true;break}if(i&&i.listens(e,true)){if(r&&!Je(o,t)){break}n.push(i);if(r){break}}if(o===this._container){break}o=o.parentNode}if(!n.length&&!s&&!r&&Je(o,t)){n=[this]}return n},_handleDOMEvent:function(t){if(!this._loaded||Ke(t)){return}var e=t.type;if(e==="mousedown"||e==="keypress"||e==="keyup"||e==="keydown"){Me(t.target||t.srcElement)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var i=u({},t);i.type="preclick";this._fireDOMEvent(i,i.type,n)}if(t._stopped){return}n=(n||[]).concat(this._findEventTargets(t,e));if(!n.length){return}var r=n[0];if(e==="contextmenu"&&r.listens(e,true)){Ve(t)}var o={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var s=r.getLatLng&&(!r._radius||r._radius<=10);o.containerPoint=s?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t);o.layerPoint=this.containerPointToLayerPoint(o.containerPoint);o.latlng=s?r.getLatLng():this.layerPointToLatLng(o.layerPoint)}for(var a=0;a<n.length;a++){n[a].fire(e,o,true);if(o.originalEvent._stopped||n[a].options.bubblingMouseEvents===false&&_(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return Le(this._mapPane)||new N(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return j([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n){return t}var i=this.project(t,e),r=this.getSize().divideBy(2),o=new F(i.subtract(r),i.add(r)),s=this._getBoundsOffset(o,n,e);if(s.round().equals([0,0])){return t}return this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e){return t}var n=this.getPixelBounds(),i=new F(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=j(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=i.min.subtract(t.min),o=i.max.subtract(t.max),s=this._rebound(r.x,-o.x),a=this._rebound(r.y,-o.y);return new N(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=yt?this.options.zoomSnap:1;if(i){t=Math.round(t/i)*i}return Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){_e(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(n)){return false}this.panBy(n,e);return true},_createAnimProxy:function(){var t=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",function(t){var e=ne,n=this._proxy.style[e];Ee(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(n===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}},this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){de(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ee(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom){return true}n=n||{};if(!this._zoomAnimated||n.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);if(n.animate!==true&&!this.getSize().contains(r)){return false}P(function(){this._moveStart(true,false)._animateZoom(t,e,true)},this);return true},_animateZoom:function(t,e,n,i){if(!this._mapPane){return}if(n){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;ye(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:i});setTimeout(a(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){_e(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom);P(function(){this._moveEnd(true)},this)}});function on(t,e){return new rn(t,e)}var sn=I.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];ye(e,"leaflet-control");if(n.indexOf("bottom")!==-1){i.insertBefore(e,i.firstChild)}else{i.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}de(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}}),an=function(t){return new sn(t)};rn.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var i=this._controlCorners={},r="leaflet-",o=this._controlContainer=he("div",r+"control-container",this._container);function t(t,e){var n=r+t+" "+r+e;i[t+e]=he("div",n,o)}t("top","left");t("top","right");t("bottom","left");t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){de(this._controlCorners[t])}de(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var un=sn.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){p(this,n);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;for(var i in t){this._addLayer(t[i],i)}for(i in e){this._addLayer(e[i],i,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){sn.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(l(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){ye(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){ye(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{_e(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){_e(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=he("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",true);He(e);Ze(e);var i=this._section=he("section",t+"-list");if(n){this._map.on("click",this.collapse,this);if(!rt){Re(e,{mouseenter:this.expand,mouseleave:this.collapse},this)}}var r=this._layersLink=he("a",t+"-toggle",e);r.href="#";r.title="Layers";if(Tt){Re(r,"click",We);Re(r,"click",this.expand,this)}else{Re(r,"focus",this.expand,this)}if(!n){this.expand()}this._baseLayersList=he("div",t+"-base",i);this._separator=he("div",t+"-separator",i);this._overlaysList=he("div",t+"-overlays",i);e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&l(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,n){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:n});if(this.options.sortLayers){this._layers.sort(a(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}pe(this._baseLayersList);pe(this._overlaysList);this._layerControlInputs=[];var t,e,n,i,r=0;for(n=0;n<this._layers.length;n++){i=this._layers[n];this._addItem(i);e=e||i.overlay;t=t||!i.overlay;r+=!i.overlay?1:0}if(this.options.hideSingleBase){t=t&&r>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(l(t.target));var n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(n){this._map.fire(n,e)}},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var i=document.createElement("div");i.innerHTML=n;return i.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),i;if(t.overlay){i=document.createElement("input");i.type="checkbox";i.className="leaflet-control-layers-selector";i.defaultChecked=n}else{i=this._createRadioElement("leaflet-base-layers_"+l(this),n)}this._layerControlInputs.push(i);i.layerId=l(t.layer);Re(i,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");e.appendChild(o);o.appendChild(i);o.appendChild(r);var s=t.overlay?this._overlaysList:this._baseLayersList;s.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,n;var i=[],r=[];this._handlingClick=true;for(var o=t.length-1;o>=0;o--){e=t[o];n=this._getLayer(e.layerId).layer;if(e.checked){i.push(n)}else if(!e.checked){r.push(n)}}for(o=0;o<r.length;o++){if(this._map.hasLayer(r[o])){this._map.removeLayer(r[o])}}for(o=0;o<i.length;o++){if(!this._map.hasLayer(i[o])){this._map.addLayer(i[o])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,n,i=this._map.getZoom();for(var r=t.length-1;r>=0;r--){e=t[r];n=this._getLayer(e.layerId).layer;e.disabled=n.options.minZoom!==undefined&&i<n.options.minZoom||n.options.maxZoom!==undefined&&i>n.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ln=function(t,e,n){return new un(t,e,n)},cn=sn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=he("div",e+" leaflet-bar"),i=this.options;this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn);this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,n,i,r){var o=he("a",n,i);o.innerHTML=t;o.href="#";o.title=e;o.setAttribute("role","button");o.setAttribute("aria-label",e);He(o);Re(o,"click",We);Re(o,"click",r,this);Re(o,"click",this._refocusOnMap,this);return o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";_e(this._zoomInButton,e);_e(this._zoomOutButton,e);if(this._disabled||t._zoom===t.getMinZoom()){ye(this._zoomOutButton,e)}if(this._disabled||t._zoom===t.getMaxZoom()){ye(this._zoomInButton,e)}}});rn.mergeOptions({zoomControl:true}),rn.addInitHook(function(){if(this.options.zoomControl){this.zoomControl=new cn;this.addControl(this.zoomControl)}});var fn=function(t){return new cn(t)},hn=sn.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",n=he("div",e),i=this.options;this._addScales(i,e+"-line",n);t.on(i.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){if(t.metric){this._mScale=he("div",e,n)}if(t.imperial){this._iScale=he("div",e,n)}},_update:function(){var t=this._map,e=t.getSize().y/2;var n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e=t*3.2808399,n,i,r;if(e>5280){n=e/5280;i=this._getRoundNum(n);this._updateScale(this._iScale,i+" mi",i/n)}else{r=this._getRoundNum(e);this._updateScale(this._iScale,r+" ft",r/e)}},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1;return e*n}}),dn=function(t){return new hn(t)},pn=sn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=he("div","leaflet-control-attribution");He(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();return this._container},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var n=[];if(this.options.prefix){n.push(this.options.prefix)}if(t.length){n.push(t.join(", "))}this._container.innerHTML=n.join(" | ")}});rn.mergeOptions({attributionControl:true}),rn.addInitHook(function(){if(this.options.attributionControl){(new pn).addTo(this)}});var mn=function(t){return new pn(t)};sn.Layers=un,sn.Zoom=cn,sn.Scale=hn,sn.Attribution=pn,an.layers=ln,an.zoom=fn,an.scale=dn,an.attribution=mn;var gn=I.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});gn.addTo=function(t,e){t.addHandler(e,this);return this};var vn={Events:A},yn=Tt?"touchstart mousedown":"mousedown",_n={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},xn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=O.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i);this._element=t;this._dragStartTarget=e||t;this._preventOutline=n},enable:function(){if(this._enabled){return}Re(this._dragStartTarget,yn,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(bn._dragging===this){this.finishDrag()}je(this._dragStartTarget,yn,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(t._simulated||!this._enabled){return}this._moved=false;if(ve(this._element,"leaflet-zoom-anim")){return}if(bn._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}bn._dragging=this;if(this._preventOutline){Me(this._element)}ke();oe();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,n=Oe(this._element);this._startPoint=new N(e.clientX,e.clientY);this._parentScale=Ne(n);Re(document,xn[t.type],this._onMove,this);Re(document,_n[t.type],this._onUp,this)},_onMove:function(t){if(t._simulated||!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new N(e.clientX,e.clientY)._subtract(this._startPoint);if(!n.x&&!n.y){return}if(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance){return}n.x/=this._parentScale.x;n.y/=this._parentScale.y;Ve(t);if(!this._moved){this.fire("dragstart");this._moved=true;this._startPos=Le(this._element).subtract(n);ye(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}ye(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(n);this._moving=true;C(this._animRequest);this._lastEvent=t;this._animRequest=P(this._updatePosition,this,true)},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);Pe(this._element,this._newPos);this.fire("drag",t)},_onUp:function(t){if(t._simulated||!this._enabled){return}this.finishDrag()},finishDrag:function(){_e(document.body,"leaflet-dragging");if(this._lastTarget){_e(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}for(var t in xn){je(document,xn[t],this._onMove,this);je(document,_n[t],this._onUp,this)}Ie();se();if(this._moved&&this._moving){C(this._animRequest);this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;bn._dragging=false}}),wn;function Sn(t,e){if(!e||!t.length){return t.slice()}var n=e*e;t=Cn(t,n);t=Pn(t,n);return t}function Tn(t,e,n){return Math.sqrt(On(t,e,n,true))}function En(t,e,n){return On(t,e,n)}function Pn(t,e){var n=t.length,i=typeof Uint8Array!==undefined+""?Uint8Array:Array,r=new i(n);r[0]=r[n-1]=1;Ln(t,r,e,0,n-1);var o,s=[];for(o=0;o<n;o++){if(r[o]){s.push(t[o])}}return s}function Ln(t,e,n,i,r){var o=0,s,a,u;for(a=i+1;a<=r-1;a++){u=On(t[a],t[i],t[r],true);if(u>o){s=a;o=u}}if(o>n){e[s]=1;Ln(t,e,n,i,s);Ln(t,e,n,s,r)}}function Cn(t,e){var n=[t[0]];for(var i=1,r=0,o=t.length;i<o;i++){if(An(t[i],t[r])>e){n.push(t[i]);r=i}}if(r<o-1){n.push(t[o-1])}return n}function kn(t,e,n,i,r){var o=i?wn:Mn(t,n),s=Mn(e,n),a,u,l;wn=s;while(true){if(!(o|s)){return[t,e]}if(o&s){return false}a=o||s;u=In(t,e,a,n,r);l=Mn(u,n);if(a===o){t=u;o=l}else{e=u;s=l}}}function In(t,e,n,i,r){var o=e.x-t.x,s=e.y-t.y,a=i.min,u=i.max,l,c;if(n&8){l=t.x+o*(u.y-t.y)/s;c=u.y}else if(n&4){l=t.x+o*(a.y-t.y)/s;c=a.y}else if(n&2){l=u.x;c=t.y+s*(u.x-t.x)/o}else if(n&1){l=a.x;c=t.y+s*(a.x-t.x)/o}return new N(l,c,r)}function Mn(t,e){var n=0;if(t.x<e.min.x){n|=1}else if(t.x>e.max.x){n|=2}if(t.y<e.min.y){n|=4}else if(t.y>e.max.y){n|=8}return n}function An(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function On(t,e,n,i){var r=e.x,o=e.y,s=n.x-r,a=n.y-o,u=s*s+a*a,l;if(u>0){l=((t.x-r)*s+(t.y-o)*a)/u;if(l>1){r=n.x;o=n.y}else if(l>0){r+=s*l;o+=a*l}}s=t.x-r;a=t.y-o;return i?s*s+a*a:new N(r,o)}function Nn(t){return!y(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function zn(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Nn(t)}var Rn=(Object.freeze||Object)({simplify:Sn,pointToSegmentDistance:Tn,closestPointOnSegment:En,clipSegment:kn,_getEdgeIntersection:In,_getBitCode:Mn,_sqClosestPointOnSegment:On,isFlat:Nn,_flat:zn});function Fn(t,e,n){var i,r=[1,4,2,8],o,s,a,u,l,c,f,h;for(o=0,c=t.length;o<c;o++){t[o]._code=Mn(t[o],e)}for(a=0;a<4;a++){f=r[a];i=[];for(o=0,c=t.length,s=c-1;o<c;s=o++){u=t[o];l=t[s];if(!(u._code&f)){if(l._code&f){h=In(l,u,f,e,n);h._code=Mn(h,e);i.push(h)}i.push(u)}else if(!(l._code&f)){h=In(l,u,f,e,n);h._code=Mn(h,e);i.push(h)}}t=i}return t}var jn=(Object.freeze||Object)({clipPolygon:Fn}),Dn={project:function(t){return new N(t.lng,t.lat)},unproject:function(t){return new q(t.y,t.x)},bounds:new F([-180,-90],[180,90])},Bn={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),s=o*Math.sin(i);var a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),o/2);i=-n*Math.log(Math.max(a,1e-10));return new N(t.lng*e*n,i)},unproject:function(t){var e=180/Math.PI,n=this.R,i=this.R_MINOR/n,r=Math.sqrt(1-i*i),o=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(o);for(var a=0,u=.1,l;a<15&&Math.abs(u)>1e-7;a++){l=r*Math.sin(s);l=Math.pow((1-l)/(1+l),r/2);u=Math.PI/2-2*Math.atan(o*l)-s;s+=u}return new q(s*e,t.x*e/n)}},qn=(Object.freeze||Object)({LonLat:Dn,Mercator:Bn,SphericalMercator:U}),Zn=u({},V,{code:"EPSG:3395",projection:Bn,transformation:function(){var t=.5/(Math.PI*Bn.R);return G(t,.5,-t,.5)}()}),Hn=u({},V,{code:"EPSG:4326",projection:Dn,transformation:G(1/180,1,-1/180,.5)}),Vn=u({},H,{projection:Dn,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:true});H.Earth=V,H.EPSG3395=Zn,H.EPSG3857=$,H.EPSG900913=Y,H.EPSG4326=Hn,H.Simple=Vn;var Wn=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[l(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[l(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var n=this.getEvents();e.on(n,this);this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e);if(this.getAttribution&&e.attributionControl){e.attributionControl.addAttribution(this.getAttribution())}this.fire("add");e.fire("layeradd",{layer:this})}});rn.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=l(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=l(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}if(t.getAttribution&&this.attributionControl){this.attributionControl.removeAttribution(t.getAttribution())}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return!!t&&l(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers){t.call(e,this._layers[n])}return this},_addLayers:function(t){t=t?y(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[l(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=l(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;t=r.minZoom===undefined?t:Math.min(t,r.minZoom);e=r.maxZoom===undefined?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(n!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Un=Wn.extend({initialize:function(t,e){p(this,e);this._layers={};var n,i;if(t){for(n=0,i=t.length;n<i;n++){this.addLayer(t[n])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),n,i;for(n in this._layers){i=this._layers[n];if(i[t]){i[t].apply(i,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers){t.call(e,this._layers[n])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return l(t)}}),Qn=function(t,e){return new Un(t,e)},Gn=Un.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Un.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Un.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new D;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),$n=function(t){return new Gn(t)},Yn=I.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var i=this._createImg(n,e&&e.tagName==="IMG"?e:null);this._setIconStyles(i,t);return i},_setIconStyles:function(t,e){var n=this.options;var i=n[e+"Size"];if(typeof i==="number"){i=[i,i]}var r=R(i),o=R(e==="shadow"&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(n.className||"");if(o){t.style.marginLeft=-o.x+"px";t.style.marginTop=-o.y+"px"}if(r){t.style.width=r.x+"px";t.style.height=r.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Lt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Xn(t){return new Yn(t)}var Kn=Yn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(!Kn.imagePath){Kn.imagePath=this._detectIconPath()}return(this.options.imagePath||Kn.imagePath)+Yn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=he("div","leaflet-default-icon-path",document.body);var e=fe(t,"background-image")||fe(t,"backgroundImage");document.body.removeChild(t);if(e===null||e.indexOf("url")!==0){e=""}else{e=e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}return e}}),Jn=gn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new bn(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();ye(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){_e(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=Le(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin();var u=j(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!u.contains(o)){var l=R((Math.max(u.max.x,o.x)-u.max.x)/(s.max.x-u.max.x)-(Math.min(u.min.x,o.x)-u.min.x)/(s.min.x-u.min.x),(Math.max(u.max.y,o.y)-u.max.y)/(s.max.y-u.max.y)-(Math.min(u.min.y,o.y)-u.min.y)/(s.min.y-u.min.y)).multiplyBy(i);n.panBy(l,{animate:false});this._draggable._newPos._add(l);this._draggable._startPos._add(l);Pe(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){C(this._panRequest);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Le(e._icon),r=e._map.layerPointToLatLng(i);if(n){Pe(n,i)}e._latlng=r;t.latlng=r;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}}),ti=Wn.extend({options:{icon:new Kn,interactive:true,keyboard:true,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e);this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var n=t.icon.createIcon(this._icon),i=false;if(n!==this._icon){if(this._icon){this._removeIcon()}i=true;if(t.title){n.title=t.title}if(n.tagName==="IMG"){n.alt=t.alt||""}}ye(n,e);if(t.keyboard){n.tabIndex="0"}this._icon=n;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}var r=t.icon.createShadow(this._shadow),o=false;if(r!==this._shadow){this._removeShadow();o=true}if(r){ye(r,e);r.alt=""}this._shadow=r;if(t.opacity<1){this._updateOpacity()}if(i){this.getPane().appendChild(this._icon)}this._initInteraction();if(r&&o){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}de(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){de(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){Pe(this._icon,t)}if(this._shadow){Pe(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}ye(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Jn){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Jn(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){we(this._icon,t)}if(this._shadow){we(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ei(t,e){return new ti(t,e)}var ni=Wn.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){p(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&t.hasOwnProperty("weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),ii=ni.extend({options:{fill:true,radius:10},initialize:function(t,e){p(this,e);this._latlng=Z(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=Z(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;ni.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new F(this._point.subtract(i),this._point.add(i))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ri(t,e){return new ii(t,e)}var oi=ii.extend({initialize:function(t,e,n){if(typeof e==="number"){e=u({},n,{radius:e})}p(this,e);this._latlng=Z(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ni.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===V.distance){var r=Math.PI/180,o=this._mRadius/V.R/r,s=n.project([e+o,t]),a=n.project([e-o,t]),u=s.add(a).divideBy(2),l=n.unproject(u).lat,c=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(l*r))/(Math.cos(e*r)*Math.cos(l*r)))/r;if(isNaN(c)||c===0){c=o/Math.cos(Math.PI/180*e)}this._point=u.subtract(n.getPixelOrigin());this._radius=isNaN(c)?0:u.x-n.project([l,t-c]).x;this._radiusY=u.y-s.y}else{var f=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng);this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});function si(t,e,n){return new oi(t,e,n)}var ai=ni.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){p(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,n=null,i=On,r,o;for(var s=0,a=this._parts.length;s<a;s++){var u=this._parts[s];for(var l=1,c=u.length;l<c;l++){r=u[l-1];o=u[l];var f=i(t,r,o,true);if(f<e){e=f;n=i(t,r,o)}}}if(n){n.distance=Math.sqrt(e)}return n},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,n,i,r,o,s,a=this._rings[0],u=a.length;if(!u){return null}for(t=0,e=0;t<u-1;t++){e+=a[t].distanceTo(a[t+1])/2}if(e===0){return this._map.layerPointToLatLng(a[0])}for(t=0,i=0;t<u-1;t++){r=a[t];o=a[t+1];n=r.distanceTo(o);i+=n;if(i>e){s=(i-e)/n;return this._map.layerPointToLatLng([o.x-s*(o.x-r.x),o.y-s*(o.y-r.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=Z(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new D;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Nn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],n=Nn(t);for(var i=0,r=t.length;i<r;i++){if(n){e[i]=Z(t[i]);this._bounds.extend(e[i])}else{e[i]=this._convertLatLngs(t[i])}}return e},_project:function(){var t=new F;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new N(t,t);this._pxBounds=new F([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i=t[0]instanceof q,r=t.length,o,s;if(i){s=[];for(o=0;o<r;o++){s[o]=this._map.latLngToLayerPoint(t[o]);n.extend(s[o])}e.push(s)}else{for(o=0;o<r;o++){this._projectLatlngs(t[o],e,n)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,n,i,r,o,s,a,u;for(n=0,r=0,o=this._rings.length;n<o;n++){u=this._rings[n];for(i=0,s=u.length;i<s-1;i++){a=kn(u[i],u[i+1],t,i,true);if(!a){continue}e[r]=e[r]||[];e[r].push(a[0]);if(a[1]!==u[i+1]||i===s-2){e[r].push(a[1]);r++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var n=0,i=t.length;n<i;n++){t[n]=Sn(t[n],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,r,o,s,a,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(n=0,o=this._parts.length;n<o;n++){a=this._parts[n];for(i=0,s=a.length,r=s-1;i<s;r=i++){if(!e&&i===0){continue}if(Tn(t,a[r],a[i])<=u){return true}}}return false}});function ui(t,e){return new ai(t,e)}ai._flat=zn;var li=ai.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,n,i,r,o,s,a,u,l=this._rings[0],c=l.length;if(!c){return null}o=s=a=0;for(t=0,e=c-1;t<c;e=t++){n=l[t];i=l[e];r=n.y*i.x-i.y*n.x;s+=(n.x+i.x)*r;a+=(n.y+i.y)*r;o+=r*3}if(o===0){u=l[0]}else{u=[s/o,a/o]}return this._map.layerPointToLatLng(u)},_convertLatLngs:function(t){var e=ai.prototype._convertLatLngs.call(this,t),n=e.length;if(n>=2&&e[0]instanceof q&&e[0].equals(e[n-1])){e.pop()}return e},_setLatLngs:function(t){ai.prototype._setLatLngs.call(this,t);if(Nn(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Nn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new N(e,e);t=new F(t.min.subtract(n),t.max.add(n));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var i=0,r=this._rings.length,o;i<r;i++){o=Fn(this._rings[i],t,true);if(o.length){this._parts.push(o)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,n,i,r,o,s,a,u,l;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(o=0,u=this._parts.length;o<u;o++){n=this._parts[o];for(s=0,l=n.length,a=l-1;s<l;a=s++){i=n[s];r=n[a];if(i.y>t.y!==r.y>t.y&&t.x<(r.x-i.x)*(t.y-i.y)/(r.y-i.y)+i.x){e=!e}}}return e||ai.prototype._containsPoint.call(this,t,true)}});function ci(t,e){return new li(t,e)}var fi=Gn.extend({initialize:function(t,e){p(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=y(t)?t:t.features,n,i,r;if(e){for(n=0,i=e.length;n<i;n++){r=e[n];if(r.geometries||r.geometry||r.features||r.coordinates){this.addData(r)}}return this}var o=this.options;if(o.filter&&!o.filter(t)){return this}var s=hi(t,o);if(!s){return this}s.feature=_i(t);s.defaultOptions=s.options;this.resetStyle(s);if(o.onEachFeature){o.onEachFeature(t,s)}return this.addLayer(s)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=u({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function hi(t,e){var n=t.type==="Feature"?t.geometry:t,i=n?n.coordinates:null,r=[],o=e&&e.pointToLayer,s=e&&e.coordsToLatLng||pi,a,u,l,c;if(!i&&!n){return null}switch(n.type){case"Point":a=s(i);return di(o,t,a,e);case"MultiPoint":for(l=0,c=i.length;l<c;l++){a=s(i[l]);r.push(di(o,t,a,e))}return new Gn(r);case"LineString":case"MultiLineString":u=mi(i,n.type==="LineString"?0:1,s);return new ai(u,e);case"Polygon":case"MultiPolygon":u=mi(i,n.type==="Polygon"?1:2,s);return new li(u,e);case"GeometryCollection":for(l=0,c=n.geometries.length;l<c;l++){var f=hi({geometry:n.geometries[l],type:"Feature",properties:t.properties},e);if(f){r.push(f)}}return new Gn(r);default:throw new Error("Invalid GeoJSON object.")}}function di(t,e,n,i){return t?t(e,n):new ti(n,i&&i.markersInheritOptions&&i)}function pi(t){return new q(t[1],t[0],t[2])}function mi(t,e,n){var i=[];for(var r=0,o=t.length,s;r<o;r++){s=e?mi(t[r],e-1,n):(n||pi)(t[r]);i.push(s)}return i}function gi(t,e){e=typeof e==="number"?e:6;return t.alt!==undefined?[f(t.lng,e),f(t.lat,e),f(t.alt,e)]:[f(t.lng,e),f(t.lat,e)]}function vi(t,e,n,i){var r=[];for(var o=0,s=t.length;o<s;o++){r.push(e?vi(t[o],e-1,n,i):gi(t[o],i))}if(!e&&n){r.push(r[0])}return r}function yi(t,e){return t.feature?u({},t.feature,{geometry:e}):_i(e)}function _i(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var xi={toGeoJSON:function(t){return yi(this,{type:"Point",coordinates:gi(this.getLatLng(),t)})}};function bi(t,e){return new fi(t,e)}ti.include(xi),oi.include(xi),ii.include(xi),ai.include({toGeoJSON:function(t){var e=!Nn(this._latlngs);var n=vi(this._latlngs,e?1:0,false,t);return yi(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),li.include({toGeoJSON:function(t){var e=!Nn(this._latlngs),n=e&&!Nn(this._latlngs[0]);var i=vi(this._latlngs,n?2:e?1:0,true,t);if(!e){i=[i]}return yi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Un.include({toMultiPoint:function(e){var n=[];this.eachLayer(function(t){n.push(t.toGeoJSON(e).geometry.coordinates)});return yi(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(i){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t==="MultiPoint"){return this.toMultiPoint(i)}var r=t==="GeometryCollection",o=[];this.eachLayer(function(t){if(t.toGeoJSON){var e=t.toGeoJSON(i);if(r){o.push(e.geometry)}else{var n=_i(e);if(n.type==="FeatureCollection"){o.push.apply(o,n.features)}else{o.push(n)}}}});if(r){return yi(this,{geometries:o,type:"GeometryCollection"})}return{type:"FeatureCollection",features:o}}});var wi=bi,Si=Wn.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t;this._bounds=B(e);p(this,n)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){ye(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){de(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){me(this._image)}return this},bringToBack:function(){if(this._map){ge(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=B(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:he("img");ye(e,"leaflet-image-layer");if(this._zoomAnimated){ye(e,"leaflet-zoom-animated")}if(this.options.className){ye(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onload=a(this.fire,this,"load");e.onerror=a(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ee(this._image,n,e)},_reset:function(){var t=this._image,e=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Pe(t,e.min);t.style.width=n.x+"px";t.style.height=n.y+"px"},_updateOpacity:function(){we(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}}}),Ti=function(t,e,n){return new Si(t,e,n)},Ei=Si.extend({options:{autoplay:true,loop:true,keepAspectRatio:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:he("video");ye(e,"leaflet-image-layer");if(this._zoomAnimated){ye(e,"leaflet-zoom-animated")}if(this.options.className){ye(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onloadeddata=a(this.fire,this,"load");if(t){var n=e.getElementsByTagName("source");var i=[];for(var r=0;r<n.length;r++){i.push(n[r].src)}this._url=n.length>0?i:[e.src];return}if(!y(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;for(var o=0;o<this._url.length;o++){var s=he("source");s.src=this._url[o];e.appendChild(s)}}});function Pi(t,e,n){return new Ei(t,e,n)}var Li=Si.extend({_initImage:function(){var t=this._image=this._url;ye(t,"leaflet-image-layer");if(this._zoomAnimated){ye(t,"leaflet-zoom-animated")}if(this.options.className){ye(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Ci(t,e,n){return new Li(t,e,n)}var ki=Wn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t);this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){we(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){we(this._container,1)}this.bringToFront()},onRemove:function(t){if(t._fadeAnimated){we(this._container,0);this._removeTimeout=setTimeout(a(de,undefined,this._container),200)}else{de(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=Z(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){me(this._container)}return this},bringToBack:function(){if(this._map){ge(this._container)}return this},_prepareOpen:function(t,e,n){if(!(e instanceof Wn)){n=e;e=t}if(e instanceof Gn){for(var i in t._layers){e=t._layers[i];break}}if(!n){if(e.getCenter){n=e.getCenter()}else if(e.getLatLng){n=e.getLatLng()}else{throw new Error("Unable to get source layer LatLng.")}}this._source=e;this.update();return n},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=R(this.options.offset),n=this._getAnchor();if(this._zoomAnimated){Pe(this._container,t.add(n))}else{e=e.add(t).add(n)}var i=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px";this._container.style.left=r+"px"},_getAnchor:function(){return[0,0]}}),Ii=ki.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t.openPopup(this);return this},onAdd:function(t){ki.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof ni)){this._source.on("preclick",qe)}}},onRemove:function(t){ki.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof ni)){this._source.off("preclick",qe)}}},getEvents:function(){var t=ki.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this._close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_close:function(){if(this._map){this._map.closePopup(this)}},_initLayout:function(){var t="leaflet-popup",e=this._container=he("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var n=this._wrapper=he("div",t+"-content-wrapper",e);this._contentNode=he("div",t+"-content",n);He(n);Ze(this._contentNode);Re(n,"contextmenu",qe);this._tipContainer=he("div",t+"-tip-container",e);this._tip=he("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var i=this._closeButton=he("a",t+"-close-button",e);i.href="#close";i.innerHTML="×";Re(i,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth);n=Math.max(n,this.options.minWidth);e.width=n+1+"px";e.whiteSpace="";e.height="";var i=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";if(r&&i>r){e.height=r+"px";ye(t,o)}else{_e(t,o)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Pe(this._container,e.add(n))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}var t=this._map,e=parseInt(fe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new N(this._containerLeft,-n-this._containerBottom);r._add(Le(this._container));var o=t.layerPointToContainerPoint(r),s=R(this.options.autoPanPadding),a=R(this.options.autoPanPaddingTopLeft||s),u=R(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),c=0,f=0;if(o.x+i+u.x>l.x){c=o.x+i-l.x+u.x}if(o.x-c-a.x<0){c=o.x-a.x}if(o.y+n+u.y>l.y){f=o.y+n-l.y+u.y}if(o.y-f-a.y<0){f=o.y-a.y}if(c||f){t.fire("autopanstart").panBy([c,f])}},_onCloseButtonClick:function(t){this._close();We(t)},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Mi=function(t,e){return new Ii(t,e)};rn.mergeOptions({closePopupOnClick:true}),rn.include({openPopup:function(t,e,n){if(!(t instanceof Ii)){t=new Ii(n).setContent(t)}if(e){t.setLatLng(e)}if(this.hasLayer(t)){return this}if(this._popup&&this._popup.options.autoClose){this.closePopup()}this._popup=t;return this.addLayer(t)},closePopup:function(t){if(!t||t===this._popup){t=this._popup;this._popup=null}if(t){this.removeLayer(t)}return this}}),Wn.include({bindPopup:function(t,e){if(t instanceof Ii){p(t,e);this._popup=t;t._source=this}else{if(!this._popup||e){this._popup=new Ii(e,this)}this._popup.setContent(t)}if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t,e){if(this._popup&&this._map){e=this._popup._prepareOpen(this,t,e);this._map.openPopup(this._popup,e)}return this},closePopup:function(){if(this._popup){this._popup._close()}return this},togglePopup:function(t){if(this._popup){if(this._popup._map){this.closePopup()}else{this.openPopup(t)}}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;if(!this._popup){return}if(!this._map){return}We(t);if(e instanceof ni){this.openPopup(t.layer||t.target,t.latlng);return}if(this._map.hasLayer(this._popup)&&this._popup._source===e){this.closePopup()}else{this.openPopup(e,t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var Ai=ki.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,interactive:false,opacity:.9},onAdd:function(t){ki.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){ki.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=ki.prototype.getEvents.call(this);if(Tt&&!this.options.permanent){t.preclick=this._close}return t},_close:function(){if(this._map){this._map.closeTooltip(this)}},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),r=e.layerPointToContainerPoint(t),o=this.options.direction,s=n.offsetWidth,a=n.offsetHeight,u=R(this.options.offset),l=this._getAnchor();if(o==="top"){t=t.add(R(-s/2+u.x,-a+u.y+l.y,true))}else if(o==="bottom"){t=t.subtract(R(s/2-u.x,-u.y,true))}else if(o==="center"){t=t.subtract(R(s/2+u.x,a/2-l.y+u.y,true))}else if(o==="right"||o==="auto"&&r.x<i.x){o="right";t=t.add(R(u.x+l.x,l.y-a/2+u.y,true))}else{o="left";t=t.subtract(R(s+l.x-u.x,a/2-l.y-u.y,true))}_e(n,"leaflet-tooltip-right");_e(n,"leaflet-tooltip-left");_e(n,"leaflet-tooltip-top");_e(n,"leaflet-tooltip-bottom");ye(n,"leaflet-tooltip-"+o);Pe(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){we(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Oi=function(t,e){return new Ai(t,e)};rn.include({openTooltip:function(t,e,n){if(!(t instanceof Ai)){t=new Ai(n).setContent(t)}if(e){t.setLatLng(e)}if(this.hasLayer(t)){return this}return this.addLayer(t)},closeTooltip:function(t){if(t){this.removeLayer(t)}return this}}),Wn.include({bindTooltip:function(t,e){if(t instanceof Ai){p(t,e);this._tooltip=t;t._source=this}else{if(!this._tooltip||e){this._tooltip=new Ai(e,this)}this._tooltip.setContent(t)}this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){n.mouseover=this._openTooltip;n.mouseout=this.closeTooltip;if(this._tooltip.options.sticky){n.mousemove=this._moveTooltip}if(Tt){n.click=this._openTooltip}}else{n.add=this._openTooltip}this[e](n);this._tooltipHandlersAdded=!t},openTooltip:function(t,e){if(this._tooltip&&this._map){e=this._tooltip._prepareOpen(this,t,e);this._map.openTooltip(this._tooltip,e);if(this._tooltip.options.interactive&&this._tooltip._container){ye(this._tooltip._container,"leaflet-clickable");this.addInteractiveTarget(this._tooltip._container)}}return this},closeTooltip:function(){if(this._tooltip){this._tooltip._close();if(this._tooltip.options.interactive&&this._tooltip._container){_e(this._tooltip._container,"leaflet-clickable");this.removeInteractiveTarget(this._tooltip._container)}}return this},toggleTooltip:function(t){if(this._tooltip){if(this._tooltip._map){this.closeTooltip()}else{this.openTooltip(t)}}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;if(!this._tooltip||!this._map){return}this.openTooltip(e,this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,n,i;if(this._tooltip.options.sticky&&t.originalEvent){n=this._map.mouseEventToContainerPoint(t.originalEvent);i=this._map.containerPointToLayerPoint(n);e=this._map.layerPointToLatLng(i)}this._tooltip.setLatLng(e)}});var Ni=Yn.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),n=this.options;if(n.html instanceof Element){pe(e);e.appendChild(n.html)}else{e.innerHTML=n.html!==false?n.html:""}if(n.bgPos){var i=R(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function zi(t){return new Ni(t)}Yn.Default=Kn;var Ri=Wn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:_t,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView();this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();de(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){me(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){ge(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof N?t:new N(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,n=-t(-Infinity,Infinity);for(var i=0,r=e.length,o;i<r;i++){o=e[i].style.zIndex;if(e[i]!==this._container&&o){n=t(n,+o)}}if(isFinite(n)){this.options.zIndex=n+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(et){return}we(this._container,this.options.opacity);var t=+new Date,e=false,n=false;for(var i in this._tiles){var r=this._tiles[i];if(!r.current||!r.loaded){continue}var o=Math.min(1,(t-r.loaded)/200);we(r.el,o);if(o<1){e=true}else{if(r.active){n=true}else{this._onOpaqueTile(r)}r.active=true}}if(n&&!this._noPrune){this._pruneTiles()}if(e){C(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=he("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var n in this._levels){if(this._levels[n].el.children.length||n===t){this._levels[n].el.style.zIndex=e-Math.abs(t-n);this._onUpdateLevel(n)}else{de(this._levels[n].el);this._removeTilesAtZoom(n);this._onRemoveLevel(n);delete this._levels[n]}}var i=this._levels[t],r=this._map;if(!i){i=this._levels[t]={};i.el=he("div","leaflet-tile-container leaflet-zoom-animated",this._container);i.el.style.zIndex=e;i.origin=r.project(r.unproject(r.getPixelOrigin()),t).round();i.zoom=t;this._setZoomTransform(i,r.getCenter(),r.getZoom());c(i.el.offsetWidth);this._onCreateLevel(i)}this._level=i;return i},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(!this._map){return}var t,e;var n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var i=e.coords;if(!this._retainParent(i.x,i.y,i.z,i.z-5)){this._retainChildren(i.x,i.y,i.z,i.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){de(this._levels[t].el);this._onRemoveLevel(t);delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,n,i){var r=Math.floor(t/2),o=Math.floor(e/2),s=n-1,a=new N(+r,+o);a.z=+s;var u=this._tileCoordsToKey(a),l=this._tiles[u];if(l&&l.active){l.retain=true;return true}else if(l&&l.loaded){l.retain=true}if(s>i){return this._retainParent(r,o,s,i)}return false},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++){for(var o=2*e;o<2*e+2;o++){var s=new N(r,o);s.z=n+1;var a=this._tileCoordsToKey(s),u=this._tiles[a];if(u&&u.active){u.retain=true;continue}else if(u&&u.loaded){u.retain=true}if(n+1<i){this._retainChildren(r,o,n+1,i)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,n,i){var r=this._clampZoom(Math.round(e));if(this.options.maxZoom!==undefined&&r>this.options.maxZoom||this.options.minZoom!==undefined&&r<this.options.minZoom){r=undefined}var o=this.options.updateWhenZooming&&r!==this._tileZoom;if(!i||o){this._tileZoom=r;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(r!==undefined){this._update(t)}if(!n){this._pruneTiles()}this._noPrune=!!n}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels){this._setZoomTransform(this._levels[n],t,e)}},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();if(yt){Ee(t.el,r,i)}else{Pe(t.el,r)}},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom;var r=this._map.getPixelWorldBounds(this._tileZoom);if(r){this._globalTileRange=this._pxBoundsToTileRange(r)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(i*2);return new F(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(!e){return}var n=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var i=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(i),o=r.getCenter(),s=[],a=this.options.keepBuffer,u=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var l in this._tiles){var c=this._tiles[l].coords;if(c.z!==this._tileZoom||!u.contains(new N(c.x,c.y))){this._tiles[l].current=false}}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var f=r.min.y;f<=r.max.y;f++){for(var h=r.min.x;h<=r.max.x;h++){var d=new N(h,f);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var p=this._tiles[this._tileCoordsToKey(d)];if(p){p.current=true}else{s.push(d)}}}s.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)});if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(h=0;h<s.length;h++){this._addTile(s[h],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y)){return false}}if(!this.options.bounds){return true}var i=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n),o=e.unproject(i,t.z),s=e.unproject(r,t.z);return[o,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new D(e[0],e[1]);if(!this.options.noWrap){n=this._map.wrapLatLngBounds(n)}return n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new N(+e[0],+e[1]);n.z=+e[2];return n},_removeTile:function(t){var e=this._tiles[t];if(!e){return}de(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){ye(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=c;t.onmousemove=c;if(et&&this.options.opacity<1){we(t,this.options.opacity)}if(rt&&!ot){t.style.WebkitBackfaceVisibility="hidden"}},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t);var r=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(r);if(this.createTile.length<2){P(a(this._tileReady,this,t,null,r))}Pe(r,n);this._tiles[i]={el:r,coords:t,current:true};e.appendChild(r);this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){if(e){this.fire("tileerror",{error:e,tile:n,coords:t})}var i=this._tileCoordsToKey(t);n=this._tiles[i];if(!n){return}n.loaded=+new Date;if(this._map._fadeAnimated){we(n.el,0);C(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}else{n.active=true;this._pruneTiles()}if(!e){ye(n.el,"leaflet-tile-loaded");this.fire("tileload",{tile:n.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(et||!this._map._fadeAnimated){P(this._pruneTiles,this)}else{setTimeout(a(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new N(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new F(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Fi(t){return new Ri(t)}var ji=Ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false},initialize:function(t,e){this._url=t;e=p(this,e);if(e.detectRetina&&Lt&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom--}else{e.zoomOffset--;e.minZoom++}e.minZoom=Math.max(0,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}if(!rt){this.on("tileunload",this._onTileRemove)}},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var n=document.createElement("img");Re(n,"load",a(this._tileOnLoad,this,e,n));Re(n,"error",a(this._tileOnError,this,e,n));if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}n.alt="";n.setAttribute("role","presentation");n.src=this.getTileUrl(t);return n},getTileUrl:function(t){var e={r:Lt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return v(this._url,u(e,this.options))},_tileOnLoad:function(t,e){if(et){setTimeout(a(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;if(i&&e.getAttribute("src")!==i){e.src=i}t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;if(n){t=e-t}return t+i},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=c;e.onerror=c;if(!e.complete){e.src=x;de(e);delete this._tiles[t]}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}if(!at){e.el.setAttribute("src",x)}return Ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!this._map||n&&n.getAttribute("src")===x){return}return Ri.prototype._tileReady.call(this,t,e,n)}});function Di(t,e){return new ji(t,e)}var Bi=ji.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=u({},this.defaultWmsParams);for(var i in e){if(!(i in this.options)){n[i]=e[i]}}e=p(this,e);var r=e.detectRetina&&Lt?2:1;var o=this.getTileSize();n.width=o.x*r;n.height=o.y*r;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;ji.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=j(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,s=(this._wmsVersion>=1.3&&this._crs===Hn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),a=ji.prototype.getTileUrl.call(this,t);return a+m(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){u(this.wmsParams,t);if(!e){this.redraw()}return this}});function qi(t,e){return new Bi(t,e)}ji.WMS=Bi,Di.wms=qi;var Zi=Wn.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t);l(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){ye(this._container,"leaflet-zoom-animated")}}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=Le(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=this._map.project(t,e),a=s.subtract(o),u=r.multiplyBy(-n).add(i).add(r).subtract(a);if(yt){Ee(this._container,u,n)}else{Pe(this._container,u)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new F(n,n.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}}),Hi=Zi.extend({getEvents:function(){var t=Zi.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Zi.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this);Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Re(t,"mouseout",this._handleMouseOut,this);this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest);delete this._ctx;de(this._container);je(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Zi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Lt?2:1;Pe(e,t.min);e.width=i*n.x;e.height=i*n.y;e.style.width=n.x+"px";e.style.height=n.y+"px";if(Lt){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Zi.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[l(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var n=e.next;var i=e.prev;if(n){n.prev=i}else{this._drawLast=i}if(i){i.next=n}else{this._drawFirst=n}delete t._order;delete this._layers[l(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],i,r;for(r=0;r<e.length;r++){i=Number(e[r]);if(isNaN(i)){return}n.push(i)}t.options._dashArray=n}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||P(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.clearRect(0,0,this._container.width,this._container.height)}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var n=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,n.x,n.y);this._ctx.clip()}this._drawing=true;for(var i=this._drawFirst;i;i=i.next){t=i.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var n,i,r,o,s=t._parts,a=s.length,u=this._ctx;if(!a){return}u.beginPath();for(n=0;n<a;n++){for(i=0,r=s[n].length;i<r;i++){o=s[n][i];u[i?"lineTo":"moveTo"](o.x,o.y)}if(e){u.closePath()}}this._fillStroke(u,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||i)/i;if(r!==1){n.save();n.scale(1,r)}n.beginPath();n.arc(e.x,e.y/r,i,0,Math.PI*2,false);if(r!==1){n.restore()}this._fillStroke(n,t)},_fillStroke:function(t,e){var n=e.options;if(n.fill){t.globalAlpha=n.fillOpacity;t.fillStyle=n.fillColor||n.color;t.fill(n.fillRule||"evenodd")}if(n.stroke&&n.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=n.opacity;t.lineWidth=n.weight;t.strokeStyle=n.color;t.lineCap=n.lineCap;t.lineJoin=n.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),n,i;for(var r=this._drawFirst;r;r=r.next){n=r.layer;if(n.options.interactive&&n._containsPoint(e)&&!this._map._draggableMoved(n)){i=n}}if(i){Xe(t);this._fireEvent([i],t)}},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){_e(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var n,i;for(var r=this._drawFirst;r;r=r.next){n=r.layer;if(n.options.interactive&&n._containsPoint(e)){i=n}}if(i!==this._hoveredLayer){this._handleMouseOut(t);if(i){ye(this._container,"leaflet-interactive");this._fireEvent([i],t,"mouseover");this._hoveredLayer=i}}if(this._hoveredLayer){this._fireEvent([this._hoveredLayer],t)}this._mouseHoverThrottled=true;setTimeout(L.bind(function(){this._mouseHoverThrottled=false},this),32)},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var n=e.next;var i=e.prev;if(n){n.prev=i}else{return}if(i){i.next=n}else if(n){this._drawFirst=n}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var n=e.next;var i=e.prev;if(i){i.next=n}else{return}if(n){n.prev=i}else if(i){this._drawLast=i}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Vi(t){return kt?new Hi(t):null}var Wi=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Ui={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Zi.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Wi("shape");ye(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Wi("path");e.appendChild(t._path);this._updateStyle(t);this._layers[l(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;de(e);t.removeInteractiveTarget(e);delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke;r.filled=!!i.fill;if(i.stroke){if(!e){e=t._stroke=Wi("stroke")}r.appendChild(e);e.weight=i.weight+"px";e.color=i.color;e.opacity=i.opacity;if(i.dashArray){e.dashStyle=y(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=i.lineCap.replace("butt","flat");e.joinstyle=i.lineJoin}else if(e){r.removeChild(e);t._stroke=null}if(i.fill){if(!n){n=t._fill=Wi("fill")}r.appendChild(n);n.color=i.fillColor||i.color;n.opacity=i.fillOpacity}else if(n){r.removeChild(n);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){me(t._container)},_bringToBack:function(t){ge(t._container)}},Qi=Mt?Wi:X,Gi=Zi.extend({getEvents:function(){var t=Zi.prototype.getEvents.call(this);t.zoomstart=this._onZoomStart;return t},_initContainer:function(){this._container=Qi("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Qi("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){de(this._container);je(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Zi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;n.setAttribute("width",e.x);n.setAttribute("height",e.y)}Pe(n,t.min);n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=Qi("path");if(t.options.className){ye(e,t.options.className)}if(t.options.interactive){ye(e,"leaflet-interactive")}this._updateStyle(t);this._layers[l(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){de(t._path);t.removeInteractiveTarget(t._path);delete this._layers[l(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,n=t.options;if(!e){return}if(n.stroke){e.setAttribute("stroke",n.color);e.setAttribute("stroke-opacity",n.opacity);e.setAttribute("stroke-width",n.weight);e.setAttribute("stroke-linecap",n.lineCap);e.setAttribute("stroke-linejoin",n.lineJoin);if(n.dashArray){e.setAttribute("stroke-dasharray",n.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(n.dashOffset){e.setAttribute("stroke-dashoffset",n.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(n.fill){e.setAttribute("fill",n.fillColor||n.color);e.setAttribute("fill-opacity",n.fillOpacity);e.setAttribute("fill-rule",n.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i=Math.max(Math.round(t._radiusY),1)||n,r="a"+n+","+i+" 0 1,0 ";var o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+n*2+",0 "+r+-n*2+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){me(t._path)},_bringToBack:function(t){ge(t._path)}});if(Mt){Gi.include(Ui)}function $i(t){return It||Mt?new Gi(t):null}rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Vi(t)||$i(t)}});var Yi=li.extend({initialize:function(t,e){li.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=B(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Xi(t,e){return new Yi(t,e)}Gi.create=Qi,Gi.pointsToPath=K,fi.geometryToLayer=hi,fi.coordsToLatLng=pi,fi.coordsToLatLngs=mi,fi.latLngToCoords=gi,fi.latLngsToCoords=vi,fi.getFeature=yi,fi.asFeature=_i,rn.mergeOptions({boxZoom:true});var Ki=gn.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){de(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();oe();ke();this._startPoint=this._map.mouseEventToContainerPoint(t);Re(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=he("div","leaflet-zoom-box",this._container);ye(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new F(this._point,this._startPoint),n=e.getSize();Pe(this._box,e.min);this._box.style.width=n.x+"px";this._box.style.height=n.y+"px"},_finish:function(){if(this._moved){de(this._box);_e(this._container,"leaflet-crosshair")}se();Ie();je(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish()}}});rn.addInitHook("addHandler","boxZoom",Ki),rn.mergeOptions({doubleClickZoom:true});var Ji=gn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;if(e.options.doubleClickZoom==="center"){e.setZoom(r)}else{e.setZoomAround(t.containerPoint,r)}}});rn.addInitHook("addHandler","doubleClickZoom",Ji),rn.mergeOptions({dragging:true,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var tr=gn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bn(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}ye(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){_e(this._map._container,"leaflet-grab");_e(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=j(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,s=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;e.fire("dragend",t);if(i){e.fire("moveend")}else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/o),u=a.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,u),c=a.multiplyBy(l/u),f=l/(n.inertiaDeceleration*s),h=c.multiplyBy(-f/2).round();if(!h.x&&!h.y){e.fire("moveend")}else{h=e._limitOffset(h,e.options.maxBounds);P(function(){e.panBy(h,{duration:f,easeLinearity:s,noMoveStart:true,animate:true})})}}}});rn.addInitHook("addHandler","dragging",tr),rn.mergeOptions({keyboard:true,keyboardPanDelta:80});var er=gn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}Re(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();je(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(i,n)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},n=this.keyCodes,i,r;for(i=0,r=n.left.length;i<r;i++){e[n.left[i]]=[-1*t,0]}for(i=0,r=n.right.length;i<r;i++){e[n.right[i]]=[t,0]}for(i=0,r=n.down.length;i<r;i++){e[n.down[i]]=[0,t]}for(i=0,r=n.up.length;i<r;i++){e[n.up[i]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},n=this.keyCodes,i,r;for(i=0,r=n.zoomIn.length;i<r;i++){e[n.zoomIn[i]]=t}for(i=0,r=n.zoomOut.length;i<r;i++){e[n.zoomOut[i]]=-t}},_addHooks:function(){Re(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){je(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,n=this._map,i;if(e in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress){i=this._panKeys[e];if(t.shiftKey){i=R(i).multiplyBy(3)}n.panBy(i);if(n.options.maxBounds){n.panInsideBounds(n.options.maxBounds)}}}else if(e in this._zoomKeys){n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&n._popup&&n._popup.options.closeOnEscapeKey){n.closePopup()}else{return}We(t)}});rn.addInitHook("addHandler","keyboard",er),rn.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nr=gn.extend({addHooks:function(){Re(this._map._container,"mousewheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){je(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ge(t);var n=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(a(this._performZoom,this),i);We(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(this._map.options.wheelPxPerZoomLevel*4),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,s=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});rn.addInitHook("addHandler","scrollWheelZoom",nr),rn.mergeOptions({tap:true,tapTolerance:15});var ir=gn.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(!t.touches){return}Ve(t);this._fireClick=true;if(t.touches.length>1){this._fireClick=false;clearTimeout(this._holdTimeout);return}var e=t.touches[0],n=e.target;this._startPos=this._newPos=new N(e.clientX,e.clientY);if(n.tagName&&n.tagName.toLowerCase()==="a"){ye(n,"leaflet-active")}this._holdTimeout=setTimeout(a(function(){if(this._isTapValid()){this._fireClick=false;this._onUp();this._simulateEvent("contextmenu",e)}},this),1e3);this._simulateEvent("mousedown",e);Re(document,{touchmove:this._onMove,touchend:this._onUp},this)},_onUp:function(t){clearTimeout(this._holdTimeout);je(document,{touchmove:this._onMove,touchend:this._onUp},this);if(this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;if(n&&n.tagName&&n.tagName.toLowerCase()==="a"){_e(n,"leaflet-active")}this._simulateEvent("mouseup",e);if(this._isTapValid()){this._simulateEvent("click",e)}}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new N(e.clientX,e.clientY);this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=true;e.target._simulatedClick=true;n.initMouseEvent(t,true,true,window,1,e.screenX,e.screenY,e.clientX,e.clientY,false,false,false,false,0,null);e.target.dispatchEvent(n)}});if(Tt&&!St){rn.addInitHook("addHandler","tap",ir)}rn.mergeOptions({touchZoom:Tt&&!ot,bounceAtZoomLimits:true});var rr=gn.extend({addHooks:function(){ye(this._map._container,"leaflet-touch-zoom");Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_e(this._map._container,"leaflet-touch-zoom");je(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))}this._startDist=n.distanceTo(i);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();Re(document,"touchmove",this._onTouchMove,this);Re(document,"touchend",this._onTouchEnd,this);Ve(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;this._zoom=e.getScaleZoom(r,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(r===1){return}}else{var o=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(r===1&&o.x===0&&o.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}C(this._animRequest);var s=a(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=P(s,this,true);Ve(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;C(this._animRequest);je(document,"touchmove",this._onTouchMove);je(document,"touchend",this._onTouchEnd);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});rn.addInitHook("addHandler","touchZoom",rr),rn.BoxZoom=Ki,rn.DoubleClickZoom=Ji,rn.Drag=tr,rn.Keyboard=er,rn.ScrollWheelZoom=nr,rn.Tap=ir,rn.TouchZoom=rr,Object.freeze=n,t.version=e,t.Control=sn,t.control=an,t.Browser=Ot,t.Evented=O,t.Mixin=vn,t.Util=k,t.Class=I,t.Handler=gn,t.extend=u,t.bind=a,t.stamp=l,t.setOptions=p,t.DomEvent=en,t.DomUtil=ze,t.PosAnimation=nn,t.Draggable=bn,t.LineUtil=Rn,t.PolyUtil=jn,t.Point=N,t.point=R,t.Bounds=F,t.bounds=j,t.Transformation=Q,t.transformation=G,t.Projection=qn,t.LatLng=q,t.latLng=Z,t.LatLngBounds=D,t.latLngBounds=B,t.CRS=H,t.GeoJSON=fi,t.geoJSON=bi,t.geoJson=wi,t.Layer=Wn,t.LayerGroup=Un,t.layerGroup=Qn,t.FeatureGroup=Gn,t.featureGroup=$n,t.ImageOverlay=Si,t.imageOverlay=Ti,t.VideoOverlay=Ei,t.videoOverlay=Pi,t.SVGOverlay=Li,t.svgOverlay=Ci,t.DivOverlay=ki,t.Popup=Ii,t.popup=Mi,t.Tooltip=Ai,t.tooltip=Oi,t.Icon=Yn,t.icon=Xn,t.DivIcon=Ni,t.divIcon=zi,t.Marker=ti,t.marker=ei,t.TileLayer=ji,t.tileLayer=Di,t.GridLayer=Ri,t.gridLayer=Fi,t.SVG=Gi,t.svg=$i,t.Renderer=Zi,t.Canvas=Hi,t.canvas=Vi,t.Path=ni,t.CircleMarker=ii,t.circleMarker=ri,t.Circle=oi,t.circle=si,t.Polyline=ai,t.polyline=ui,t.Polygon=li,t.polygon=ci,t.Rectangle=Yi,t.rectangle=Xi,t.Map=rn,t.map=on;var or=window.L;t.noConflict=function(){window.L=or;return this},window.L=t}(e)}()},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(11);t.exports=function(i,r,t){if(o(i),void 0===r)return i;switch(t){case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?i:n)(t)}},function(t,e,n){"use strict";var i=n(4);t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(20),s=n(4);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*s(function(){n(1)}),"Object",i)}},function(t,e,n){var _=n(21),x=n(50),b=n(10),w=n(7),i=n(90);t.exports=function(f,t){var h=1==f,d=2==f,p=3==f,m=4==f,g=6==f,v=5==f||g,y=t||i;return function(t,e,n){for(var i,r,o=b(t),s=x(o),a=_(e,n,3),u=w(s.length),l=0,c=h?y(t,u):d?y(t,0):void 0;l<u;l++)if((v||l in s)&&(r=a(i=s[l],l,o),f))if(h)c[l]=r;else if(r)switch(f){case 3:return!0;case 5:return i;case 6:return l;case 2:c.push(i)}else if(m)return!1;return g?-1:p||m?m:c}}},function(t,e,n){"use strict";if(n(8)){var v=n(31),y=n(3),_=n(4),x=n(0),b=n(66),i=n(98),p=n(21),w=n(41),r=n(34),S=n(12),o=n(43),s=n(23),T=n(7),E=n(128),a=n(37),u=n(25),l=n(15),P=n(46),L=n(5),m=n(10),g=n(87),C=n(38),k=n(18),I=n(39).f,M=n(89),c=n(35),f=n(6),h=n(28),d=n(56),A=n(53),O=n(92),N=n(48),z=n(61),R=n(40),F=n(91),j=n(117),D=n(9),B=n(17),q=D.f,Z=B.f,H=y.RangeError,V=y.TypeError,W=y.Uint8Array,U="ArrayBuffer",Q="Shared"+U,G="BYTES_PER_ELEMENT",$="prototype",Y=Array[$],X=i.ArrayBuffer,K=i.DataView,J=h(0),tt=h(2),et=h(3),nt=h(4),it=h(5),rt=h(6),ot=d(!0),st=d(!1),at=O.values,ut=O.keys,lt=O.entries,ct=Y.lastIndexOf,ft=Y.reduce,ht=Y.reduceRight,dt=Y.join,pt=Y.sort,mt=Y.slice,gt=Y.toString,vt=Y.toLocaleString,yt=f("iterator"),_t=f("toStringTag"),xt=c("typed_constructor"),bt=c("def_constructor"),wt=b.CONSTR,St=b.TYPED,Tt=b.VIEW,Et="Wrong length!",Pt=h(1,function(t,e){return Mt(A(t,t[bt]),e)}),Lt=_(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ct=!!W&&!!W[$].set&&_(function(){new W(1).set({})}),kt=function(t,e){var n=s(t);if(n<0||n%e)throw H("Wrong offset!");return n},It=function(t){if(L(t)&&St in t)return t;throw V(t+" is not a typed array!")},Mt=function(t,e){if(!(L(t)&&xt in t))throw V("It is not a typed array constructor!");return new t(e)},At=function(t,e){return Ot(A(t,t[bt]),e)},Ot=function(t,e){for(var n=0,i=e.length,r=Mt(t,i);n<i;)r[n]=e[n++];return r},Nt=function(t,e,n){q(t,e,{get:function(){return this._d[n]}})},zt=function(t,e,n){var i,r,o,s,a,u,l=m(t),c=arguments.length,f=1<c?e:void 0,h=void 0!==f,d=M(l);if(null!=d&&!g(d)){for(u=d.call(l),o=[],i=0;!(a=u.next()).done;i++)o.push(a.value);l=o}for(h&&2<c&&(f=p(f,n,2)),i=0,r=T(l.length),s=Mt(this,r);i<r;i++)s[i]=h?f(l[i],i):l[i];return s},Rt=function(){for(var t=0,e=arguments.length,n=Mt(this,e);t<e;)n[t]=arguments[t++];return n},Ft=!!W&&_(function(){vt.call(new W(1))}),jt=function(){return vt.apply(Ft?mt.call(It(this)):It(this),arguments)},Dt={copyWithin:function(t,e,n){return j.call(It(this),t,e,2<arguments.length?n:void 0)},every:function(t,e){return nt(It(this),t,1<arguments.length?e:void 0)},fill:function(t){return F.apply(It(this),arguments)},filter:function(t,e){return At(this,tt(It(this),t,1<arguments.length?e:void 0))},find:function(t,e){return it(It(this),t,1<arguments.length?e:void 0)},findIndex:function(t,e){return rt(It(this),t,1<arguments.length?e:void 0)},forEach:function(t,e){J(It(this),t,1<arguments.length?e:void 0)},indexOf:function(t,e){return st(It(this),t,1<arguments.length?e:void 0)},includes:function(t,e){return ot(It(this),t,1<arguments.length?e:void 0)},join:function(t){return dt.apply(It(this),arguments)},lastIndexOf:function(t){return ct.apply(It(this),arguments)},map:function(t,e){return Pt(It(this),t,1<arguments.length?e:void 0)},reduce:function(t){return ft.apply(It(this),arguments)},reduceRight:function(t){return ht.apply(It(this),arguments)},reverse:function(){for(var t,e=It(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this},some:function(t,e){return et(It(this),t,1<arguments.length?e:void 0)},sort:function(t){return pt.call(It(this),t)},subarray:function(t,e){var n=It(this),i=n.length,r=a(t,i);return new(A(n,n[bt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,T((void 0===e?i:a(e,i))-r))}},Bt=function(t,e){return At(this,mt.call(It(this),t,e))},qt=function(t,e){It(this);var n=kt(e,1),i=this.length,r=m(t),o=T(r.length),s=0;if(i<o+n)throw H(Et);for(;s<o;)this[n+s]=r[s++]},Zt={entries:function(){return lt.call(It(this))},keys:function(){return ut.call(It(this))},values:function(){return at.call(It(this))}},Ht=function(t,e){return L(t)&&t[St]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Vt=function(t,e){return Ht(t,e=u(e,!0))?r(2,t[e]):Z(t,e)},Wt=function(t,e,n){return!(Ht(t,e=u(e,!0))&&L(n)&&l(n,"value"))||l(n,"get")||l(n,"set")||n.configurable||l(n,"writable")&&!n.writable||l(n,"enumerable")&&!n.enumerable?q(t,e,n):(t[e]=n.value,t)};wt||(B.f=Vt,D.f=Wt),x(x.S+x.F*!wt,"Object",{getOwnPropertyDescriptor:Vt,defineProperty:Wt}),_(function(){gt.call({})})&&(gt=vt=function(){return dt.call(this)});var Ut=o({},Dt);o(Ut,Zt),S(Ut,yt,Zt.values),o(Ut,{slice:Bt,set:qt,constructor:function(){},toString:gt,toLocaleString:jt}),Nt(Ut,"buffer","b"),Nt(Ut,"byteOffset","o"),Nt(Ut,"byteLength","l"),Nt(Ut,"length","e"),q(Ut,_t,{get:function(){return this[St]}}),t.exports=function(t,f,e,r){function h(t,e){q(t,e,{get:function(){return function(t,e){var n=t._d;return n.v[i](e*f+n.o,Lt)}(this,e)},set:function(t){return function(t,e,n){var i=t._d;r&&(n=(n=Math.round(n))<0?0:255<n?255:255&n),i.v[o](e*f+i.o,n,Lt)}(this,e,t)},enumerable:!0})}var d=t+((r=!!r)?"Clamped":"")+"Array",i="get"+t,o="set"+t,p=y[d],s=p||{},n=p&&k(p),a=!p||!b.ABV,u={},l=p&&p[$];a?(p=e(function(t,e,n,i){w(t,p,d,"_d");var r,o,s,a,u=0,l=0;if(L(e)){if(!(e instanceof X||(a=P(e))==U||a==Q))return St in e?Ot(p,e):zt.call(p,e);r=e,l=kt(n,f);var c=e.byteLength;if(void 0===i){if(c%f)throw H(Et);if((o=c-l)<0)throw H(Et)}else if(c<(o=T(i)*f)+l)throw H(Et);s=o/f}else s=E(e),r=new X(o=s*f);for(S(t,"_d",{b:r,o:l,l:o,e:s,v:new K(r)});u<s;)h(t,u++)}),l=p[$]=C(Ut),S(l,"constructor",p)):_(function(){p(1)})&&_(function(){new p(-1)})&&z(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=e(function(t,e,n,i){var r;return w(t,p,d),L(e)?e instanceof X||(r=P(e))==U||r==Q?void 0!==i?new s(e,kt(n,f),i):void 0!==n?new s(e,kt(n,f)):new s(e):St in e?Ot(p,e):zt.call(p,e):new s(E(e))}),J(n!==Function.prototype?I(s).concat(I(n)):I(s),function(t){t in p||S(p,t,s[t])}),p[$]=l,v||(l.constructor=p));var c=l[yt],m=!!c&&("values"==c.name||null==c.name),g=Zt.values;S(p,xt,!0),S(l,St,d),S(l,Tt,!0),S(l,bt,p),(r?new p(1)[_t]==d:_t in l)||q(l,_t,{get:function(){return d}}),u[d]=p,x(x.G+x.W+x.F*(p!=s),u),x(x.S,d,{BYTES_PER_ELEMENT:f}),x(x.S+x.F*_(function(){s.of.call(p,1)}),d,{from:zt,of:Rt}),G in l||S(l,G,f),x(x.P,d,Dt),R(d),x(x.P+x.F*Ct,d,{set:qt}),x(x.P+x.F*!m,d,Zt),v||l.toString==gt||(l.toString=gt),x(x.P+x.F*_(function(){new p(1).slice()}),d,{slice:Bt}),x(x.P+x.F*(_(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!_(function(){l.toLocaleString.call([1,2])})),d,{toLocaleString:jt}),N[d]=m?c:g,v||m||S(l,yt,g)}}else t.exports=function(){}},function(t,e,n){function r(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new o)}var r=i.get(e);if(!r){if(!n)return;i.set(e,r=new o)}return r}var o=n(123),i=n(0),s=n(49)("metadata"),a=s.store||(s.store=new(n(126)));t.exports={store:a,map:r,has:function(t,e,n){var i=r(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=r(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){r(n,i,!0).set(t,e)},keys:function(t,e){var n=r(t,e,!1),i=[];return n&&n.forEach(function(t,e){i.push(e)}),i},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){i(i.S,"Reflect",t)}}},function(t,e){t.exports=!1},function(t,e,n){function i(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})}var r=n(35)("meta"),o=n(5),s=n(15),a=n(9).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(4)(function(){return l(Object.preventExtensions({}))}),f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,r)){if(!l(t))return"F";if(!e)return"E";i(t)}return t[r].i},getWeak:function(t,e){if(!s(t,r)){if(!l(t))return!0;if(!e)return!1;i(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&l(t)&&!s(t,r)&&i(t),t}}},function(t,e,n){var i=n(6)("unscopables"),r=Array.prototype;null==r[i]&&n(12)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(102),r=n(75);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(23),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},function(t,e,i){function r(){}var o=i(2),s=i(103),a=i(75),u=i(74)("IE_PROTO"),l="prototype",c=function(){var t,e=i(72)("iframe"),n=a.length;for(e.style.display="none",i(76).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c[l][a[n]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(r[l]=o(t),n=new r,r[l]=null,n[u]=t):n=c(),void 0===e?n:s(n,e)}},function(t,e,n){var i=n(102),r=n(75).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(3),r=n(9),o=n(8),s=n(6)("species");t.exports=function(t){var e=i[t];o&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var h=n(21),d=n(115),p=n(87),m=n(2),g=n(7),v=n(89),y={},_={};(e=t.exports=function(t,e,n,i,r){var o,s,a,u,l=r?function(){return t}:v(t),c=h(n,i,e?2:1),f=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(p(l)){for(o=g(t.length);f<o;f++)if((u=e?c(m(s=t[f])[0],s[1]):c(t[f]))===y||u===_)return u}else for(a=l.call(t);!(s=a.next()).done;)if((u=d(a,c,s.value,e))===y||u===_)return u}).BREAK=y,e.RETURN=_},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var i=n(5);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var i=n(9).f,r=n(15),o=n(6)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(22),o=n(6)("toStringTag"),s="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){function i(t,e,n){var i={},r=a(function(){return!!u[t]()||"
"!="
"[t]()}),o=i[t]=r?e(f):u[t];n&&(i[n]=o),s(s.P+s.F*r,"String",i)}var s=n(0),r=n(26),a=n(4),u=n(78),o="["+u+"]",l=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),f=i.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=i},function(t,e){t.exports={}},function(t,e,n){var i=n(20),r=n(3),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var i=n(2);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(2),o=n(11),s=n(6)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[s])?e:o(n)}},function(t,n,r){"use strict";(function(s){var t=r(19),a=r.n(t);r(350);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=function(){function o(t,n){var i=this;if(!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this.el=t,figureModal){null==window.mapID&&null==window.mapID||(window.mapID.off(),window.mapID.remove());var e=document.getElementById(t);if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}if(this.imageURL=s("#".concat(this.el)).attr("src"),this.iiif=s("#".concat(this.el)).data("iiif"),this.imageURL){var r=new Image;r.src=this.imageURL,this.addImageProcess(r).then(function(t){i.imgHeight=t.height,i.imgWidth=t.width,i.center=[0,0],i.defaultZoom=0;i.map=i.createMap({min:0,default:1,max:5}),n.push(i.map),void 0===s("#".concat(i.el)).data("catalogue-entry")&&(window.mapID=i.map),i.southWest=i.map.unproject([0,i.imgHeight],i.map.getMaxZoom()-1),i.northEast=i.map.unproject([i.imgWidth,0],i.map.getMaxZoom()-1);var e=new a.a.LatLngBounds(i.southWest,i.northEast);i.addTiles(e)}).catch(function(t){return console.error(t)})}else if(this.imageURL&&this.iiif){this.center=[0,0],this.defaultZoom=0;this.map=this.createMap({min:.5,default:0,max:4}),void 0===s("#".concat(this.el)).data("catalogue-entry")&&(window.mapID=this.map),this.addLayer(this.iiif,this.map),this.runMapTimeouts(this.map)}else{this.center=[0,0],this.defaultZoom=0;this.map=this.createMap({min:.5,default:0,max:4}),void 0===s("#".concat(this.el)).data("catalogue-entry")&&(window.mapID=this.map),this.addLayer(this.iiif,this.map),this.runMapTimeouts(this.map)}}return function(t,e,n){e&&i(t.prototype,e),n&&i(t,n)}(o,[{key:"validateSize",value:function(n){return new Promise(function(e,t){n||t(new Error("No map!")),setTimeout(function(){var t=document.querySelector(".mfp-content");t?n._container===t.getElementsByTagName("figure")[0].children[0]&&e(n.invalidateSize()):e(n.invalidateSize())},250)})}},{key:"runMapTimeouts",value:function(e){var n=this;setTimeout(function(){n.validateSize(e)},100),s(window)&&s(window).on("resize",function(t){e&&n.validateSize(e)})}},{key:"addImageProcess",value:function(n){return new Promise(function(e,t){n.onload=function(){var t=[];t.height=n.naturalHeight,t.width=n.naturalWidth,e(t)},n.onerror=t})}},{key:"createMap",value:function(t){return a.a.map(this.el,{center:[0,0],crs:a.a.CRS.Simple,zoom:t.default,minZoom:t.min,maxZoom:t.max,renderer:a.a.canvas()})}},{key:"addLayer",value:function(t,e){t&&a.a.tileLayer.iiif(t).addTo(e)}},{key:"addTiles",value:function(t){if(t){this.map.setMaxBounds(t),this.map.fitBounds(t);var e=a.a.imageOverlay(this.imageURL,t,{opacity:0});this.map.addLayer(e),e.on("load",function(t){setTimeout(function(){e.setOpacity(1)},250)})}}}]),o}();n.a=e}).call(this,r(1))},function(t,e,r){"use strict";var c={},n=function(){var t;return function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t}}(),o=function(){var n={};return function(t){if(void 0===n[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}n[t]=e}return n[t]}}();function f(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}function h(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=c[i.id],o=0;if(r){for(r.refs++;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(p(i.parts[o],e))}else{for(var s=[];o<i.parts.length;o++)s.push(p(i.parts[o],e));c[i.id]={id:i.id,refs:1,parts:s}}}}function s(e){var n=document.createElement("style");if(void 0===e.attributes.nonce){var t=r.nc;t&&(e.attributes.nonce=t)}if(Object.keys(e.attributes).forEach(function(t){n.setAttribute(t,e.attributes[t])}),"function"==typeof e.insert)e.insert(n);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var a=function(){var n=[];return function(t,e){return n[t]=e,n.filter(Boolean).join("\n")}}();function u(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=a(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}var l=null,d=0;function p(e,t){var n,i,r;if(t.singleton){var o=d++;n=l=l||s(t),i=u.bind(null,n,o,!1),r=u.bind(null,n,o,!0)}else n=s(t),i=function(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r&&t.setAttribute("media",r),o&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,n,t),r=function(){!function(t){if(null===t.parentNode)return;t.parentNode.removeChild(t)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}t.exports=function(t,u){(u=u||{}).attributes="object"==typeof u.attributes?u.attributes:{},u.singleton||"boolean"==typeof u.singleton||(u.singleton=n());var l=f(t,u);return h(l,u),function(t){for(var e=[],n=0;n<l.length;n++){var i=l[n],r=c[i.id];r&&(r.refs--,e.push(r))}t&&h(f(t,u),u);for(var o=0;o<e.length;o++){var s=e[o];if(0===s.refs){for(var a=0;a<s.parts.length;a++)s.parts[a]();delete c[s.id]}}}}},function(t,e,n){var u=n(16),l=n(7),c=n(37);t.exports=function(a){return function(t,e,n){var i,r=u(t),o=l(r.length),s=c(n,o);if(a&&e!=e){for(;s<o;)if((i=r[s++])!=i)return!0}else for(;s<o;s++)if((a||s in r)&&r[s]===e)return a||s||0;return!a&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(22);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var u=n(23),l=n(26);t.exports=function(a){return function(t,e){var n,i,r=String(l(t)),o=u(e),s=r.length;return o<0||s<=o?a?"":void 0:(n=r.charCodeAt(o))<55296||56319<n||o+1===s||(i=r.charCodeAt(o+1))<56320||57343<i?a?r.charAt(o):n:a?r.slice(o,o+2):i-56320+(n-55296<<10)+65536}}},function(t,e,n){var i=n(5),r=n(22),o=n(6)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,n){var o=n(6)("iterator"),s=!1;try{var i=[7][o]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var i=[7],r=i[o]();r.next=function(){return{done:n=!0}},i[o]=function(){return r},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(46),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(119);var c=n(13),f=n(12),h=n(4),d=n(26),p=n(6),m=n(93),g=p("species"),v=!h(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),y=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(n,t,e){var i=p(n),o=!h(function(){var t={};return t[i]=function(){return 7},7!=""[n](t)}),r=o?!h(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===n&&(e.constructor={},e.constructor[g]=function(){return e}),e[i](""),!t}):void 0;if(!o||!r||"replace"===n&&!v||"split"===n&&!y){var s=/./[i],a=e(d,i,""[n],function(t,e,n,i,r){return e.exec===m?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),u=a[0],l=a[1];c(String.prototype,n,u),f(RegExp.prototype,i,2==t?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}}},function(t,e,n){var i=n(3).navigator;t.exports=i&&i.userAgent||""},function(t,e,n){"use strict";var v=n(3),y=n(0),_=n(13),x=n(43),b=n(32),w=n(42),S=n(41),T=n(5),E=n(4),P=n(61),L=n(45),C=n(79);t.exports=function(i,t,e,n,r,o){function s(t){var n=c[t];_(c,t,"delete"==t?function(t){return!(o&&!T(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!T(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!T(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})}var a=v[i],u=a,l=r?"set":"add",c=u&&u.prototype,f={};if("function"==typeof u&&(o||c.forEach&&!E(function(){(new u).entries().next()}))){var h=new u,d=h[l](o?{}:-0,1)!=h,p=E(function(){h.has(1)}),m=P(function(t){new u(t)}),g=!o&&E(function(){for(var t=new u,e=5;e--;)t[l](e,e);return!t.has(-0)});m||(((u=t(function(t,e){S(t,u,i);var n=C(new a,t,u);return null!=e&&w(e,r,n[l],n),n})).prototype=c).constructor=u),(p||g)&&(s("delete"),s("has"),r&&s("get")),(g||d)&&s(l),o&&c.clear&&delete c.clear}else u=n.getConstructor(t,i,r,l),x(u.prototype,e),b.NEED=!0;return L(u,i),f[i]=u,y(y.G+y.W+y.F*(u!=a),f),o||n.setStrong(u,i,r),u}},function(t,e,n){for(var i,r=n(3),o=n(12),s=n(35),a=s("typed_array"),u=s("view"),l=!(!r.ArrayBuffer||!r.DataView),c=l,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(i=r[h[f++]])?(o(i.prototype,a,!0),o(i.prototype,u,!0)):c=!1;t.exports={ABV:l,CONSTR:c,TYPED:a,VIEW:u}},function(t,e,n){"use strict";t.exports=n(31)||!n(4)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(3)[t]})},function(t,e,n){"use strict";var i=n(0);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var i=n(0),u=n(11),l=n(21),c=n(42);t.exports=function(t){i(i.S,t,{from:function(t,e,n){var i,r,o,s,a=e;return u(this),(i=void 0!==a)&&u(a),null==t?new this:(r=[],i?(o=0,s=l(a,n,2),c(t,!1,function(t){r.push(s(t,o++))})):c(t,!1,r.push,r),new this(r))}})}},function(t,i,s){"use strict";(function(r){var t=s(19),n=s.n(t);s(351);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=function(){function i(t){var e=this;if(!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),figureModal){null==window.mapID&&null==window.mapID||(window.mapID.off(),window.mapID.remove());var n=document.getElementById(t);if(n)for(;n.firstChild;)n.removeChild(n.firstChild)}t&&(this.el=t,this.tiles="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",this.attribution='Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors',this.data=r("#".concat(this.el)).data("geojson"),this.center=this.getCoordinates(),this.defaultZoom=6,this.map=this.createMap(),window.mapID=this.map,this.addTiles(),this.map.on("fullscreenchange",function(){this.invalidateSize(!0)}),this.data&&this.getData(),setTimeout(function(){e.map.invalidateSize()},100))}return function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(i,[{key:"createMap",value:function(){return n.a.map(this.el,{fullscreenControl:{pseudoFullscreen:!1}}).setView(this.center,this.defaultZoom)}},{key:"addTiles",value:function(){n.a.tileLayer(this.tiles,{attribution:this.attribution}).addTo(this.map)}},{key:"getCoordinates",value:function(){return[r("#"+this.el).data("lat"),r("#"+this.el).data("long")]}},{key:"getData",value:function(){var e=this;r.getJSON(this.data,function(t){n.a.geoJson(t,{pointToLayer:function(t,e){return n.a.circleMarker(e,{radius:8,fillColor:"#333",color:"#000",weight:1,opacity:1,fillOpacity:.75})},onEachFeature:function(t,e){e.bindPopup(t.properties.description,{minWidth:100,maxHeight:250})}}).addTo(e.map)})}}]),i}();i.a=e}).call(this,s(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(5),r=n(3).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(3),r=n(20),o=n(31),s=n(101),a=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var i=n(49)("keys"),r=n(35);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(3).document;t.exports=i&&i.documentElement},function(t,e,r){function o(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var n=r(5),i=r(2);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=r(21)(Function.call,r(17).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var o=n(5),s=n(77).set;t.exports=function(t,e,n){var i,r=e.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&o(i)&&s&&s(t,i),t}},function(t,e,n){"use strict";var r=n(23),o=n(26);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;0<i;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||22025.465794806718<n(10)||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){"use strict";function _(){return this}var x=n(31),b=n(0),w=n(13),S=n(12),T=n(48),E=n(84),P=n(45),L=n(18),C=n(6)("iterator"),k=!([].keys&&"next"in[].keys()),I="values";t.exports=function(t,e,n,i,r,o,s){E(n,e,i);function a(t){if(!k&&t in p)return p[t];switch(t){case"keys":case I:return function(){return new n(this,t)}}return function(){return new n(this,t)}}var u,l,c,f=e+" Iterator",h=r==I,d=!1,p=t.prototype,m=p[C]||p["@@iterator"]||r&&p[r],g=m||a(r),v=r?h?a("entries"):g:void 0,y="Array"==e&&p.entries||m;if(y&&(c=L(y.call(new t)))!==Object.prototype&&c.next&&(P(c,f,!0),x||"function"==typeof c[C]||S(c,C,_)),h&&m&&m.name!==I&&(d=!0,g=function(){return m.call(this)}),x&&!s||!k&&!d&&p[C]||S(p,C,g),T[e]=g,T[f]=_,r)if(u={values:h?g:a(I),keys:o?g:a("keys"),entries:v},s)for(l in u)l in p||w(p,l,u[l]);else b(b.P+b.F*(k||d),e,u);return u}},function(t,e,n){"use strict";var i=n(38),r=n(34),o=n(45),s={};n(12)(s,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(60),r=n(26);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){var i=n(6)("match");t.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[i]=!1,!"/./"[e](n)}catch(t){}}return!0}},function(t,e,n){var i=n(48),r=n(6)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(9),r=n(34);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(46),r=n(6)("iterator"),o=n(48);t.exports=n(20).getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(238);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){"use strict";var l=n(10),c=n(37),f=n(7);t.exports=function(t,e,n){for(var i=l(this),r=f(i.length),o=arguments.length,s=c(1<o?e:void 0,r),a=2<o?n:void 0,u=void 0===a?r:c(a,r);s<u;)i[s++]=t;return i}},function(t,e,n){"use strict";var i=n(33),r=n(118),o=n(48),s=n(16);t.exports=n(83)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var o=n(52),s=RegExp.prototype.exec,a=String.prototype.replace,i=s,u="lastIndex",l=function(){var t=/a/,e=/b*/g;return s.call(t,"a"),s.call(e,"a"),0!==t[u]||0!==e[u]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(i=function(t){var e,n,i,r;return c&&(n=new RegExp("^"+this.source+"$(?!\\s)",o.call(this))),l&&(e=this[u]),i=s.call(this,t),l&&i&&(this[u]=this.global?i.index+i[0].length:e),c&&i&&1<i.length&&a.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i}),t.exports=i},function(t,e,n){"use strict";var i=n(59)(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){function i(){var t=+this;if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}}function r(t){i.call(t.data)}var o,s,a,u=n(21),l=n(108),c=n(76),f=n(72),h=n(3),d=h.process,p=h.setImmediate,m=h.clearImmediate,g=h.MessageChannel,v=h.Dispatch,y=0,_={},x="onreadystatechange";p&&m||(p=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return _[++y]=function(){l("function"==typeof t?t:Function(t),e)},o(y),y},m=function(t){delete _[t]},"process"==n(22)(d)?o=function(t){d.nextTick(u(i,t,1))}:v&&v.now?o=function(t){v.now(u(i,t,1))}:g?(a=(s=new g).port2,s.port1.onmessage=r,o=u(a.postMessage,a,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(o=function(t){h.postMessage(t+"","*")},h.addEventListener("message",r,!1)):o=x in f("script")?function(t){c.appendChild(f("script"))[x]=function(){c.removeChild(this),i.call(t)}}:function(t){setTimeout(u(i,t,1),0)}),t.exports={set:p,clear:m}},function(t,e,n){var a=n(3),u=n(95).set,l=a.MutationObserver||a.WebKitMutationObserver,c=a.process,f=a.Promise,h="process"==n(22)(c);t.exports=function(){function t(){var t,e;for(h&&(t=c.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?r():i=void 0,t}}i=void 0,t&&t.enter()}var n,i,r;if(h)r=function(){c.nextTick(t)};else if(!l||a.navigator&&a.navigator.standalone)if(f&&f.resolve){var e=f.resolve(void 0);r=function(){e.then(t)}}else r=function(){u.call(a,t)};else{var o=!0,s=document.createTextNode("");new l(t).observe(s,{characterData:!0}),r=function(){s.data=o=!o}}return function(t){var e={fn:t,next:void 0};i&&(i.next=e),n||(n=e,r()),i=e}}},function(t,e,n){"use strict";var r=n(11);function i(t){var n,i;this.promise=new t(function(t,e){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=t,i=e}),this.resolve=r(n),this.reject=r(i)}t.exports.f=function(t){return new i(t)}},function(t,e,n){"use strict";var i=n(3),r=n(8),o=n(31),s=n(66),a=n(12),u=n(43),l=n(4),c=n(41),f=n(23),h=n(7),d=n(128),p=n(39).f,m=n(9).f,g=n(91),v=n(45),y="ArrayBuffer",_="DataView",x="prototype",b="Wrong index!",w=i[y],S=i[_],T=i.Math,E=i.RangeError,P=i.Infinity,L=w,C=T.abs,k=T.pow,I=T.floor,M=T.log,A=T.LN2,O="byteLength",N="byteOffset",z=r?"_b":"buffer",R=r?"_l":O,F=r?"_o":N;function j(t,e,n){var i,r,o,s=new Array(n),a=8*n-e-1,u=(1<<a)-1,l=u>>1,c=23===e?k(2,-24)-k(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===P?(r=t!=t?1:0,i=u):(i=I(M(t)/A),t*(o=k(2,-i))<1&&(i--,o*=2),2<=(t+=1<=i+l?c/o:c*k(2,1-l))*o&&(i++,o/=2),u<=i+l?(r=0,i=u):1<=i+l?(r=(t*o-1)*k(2,e),i+=l):(r=t*k(2,l-1)*k(2,e),i=0));8<=e;s[f++]=255&r,r/=256,e-=8);for(i=i<<e|r,a+=e;0<a;s[f++]=255&i,i/=256,a-=8);return s[--f]|=128*h,s}function D(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,s=o>>1,a=r-7,u=n-1,l=t[u--],c=127&l;for(l>>=7;0<a;c=256*c+t[u],u--,a-=8);for(i=c&(1<<-a)-1,c>>=-a,a+=e;0<a;i=256*i+t[u],u--,a-=8);if(0===c)c=1-s;else{if(c===o)return i?NaN:l?-P:P;i+=k(2,e),c-=s}return(l?-1:1)*i*k(2,c-e)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function q(t){return[255&t]}function Z(t){return[255&t,t>>8&255]}function H(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return j(t,52,8)}function W(t){return j(t,23,4)}function U(t,e,n){m(t[x],e,{get:function(){return this[n]}})}function Q(t,e,n,i){var r=d(+n);if(r+e>t[R])throw E(b);var o=t[z]._b,s=r+t[F],a=o.slice(s,s+e);return i?a:a.reverse()}function G(t,e,n,i,r,o){var s=d(+n);if(s+e>t[R])throw E(b);for(var a=t[z]._b,u=s+t[F],l=i(+r),c=0;c<e;c++)a[u+c]=l[o?c:e-c-1]}if(s.ABV){if(!l(function(){w(1)})||!l(function(){new w(-1)})||l(function(){return new w,new w(1.5),new w(NaN),w.name!=y})){for(var $,Y=(w=function(t){return c(this,w),new L(d(t))})[x]=L[x],X=p(L),K=0;X.length>K;)($=X[K++])in w||a(w,$,L[$]);o||(Y.constructor=w)}var J=new S(new w(2)),tt=S[x].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||u(S[x],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){c(this,w,y);var e=d(t);this._b=g.call(new Array(e),0),this[R]=e},S=function(t,e,n){c(this,S,_),c(t,w,_);var i=t[R],r=f(e);if(r<0||i<r)throw E("Wrong offset!");if(i<r+(n=void 0===n?i-r:h(n)))throw E("Wrong length!");this[z]=t,this[F]=r,this[R]=n},r&&(U(w,O,"_l"),U(S,"buffer","_b"),U(S,O,"_l"),U(S,N,"_o")),u(S[x],{getInt8:function(t){return Q(this,1,t)[0]<<24>>24},getUint8:function(t){return Q(this,1,t)[0]},getInt16:function(t,e){var n=Q(this,2,t,e);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t,e){var n=Q(this,2,t,e);return n[1]<<8|n[0]},getInt32:function(t,e){return B(Q(this,4,t,e))},getUint32:function(t,e){return B(Q(this,4,t,e))>>>0},getFloat32:function(t,e){return D(Q(this,4,t,e),23,4)},getFloat64:function(t,e){return D(Q(this,8,t,e),52,8)},setInt8:function(t,e){G(this,1,t,q,e)},setUint8:function(t,e){G(this,1,t,q,e)},setInt16:function(t,e,n){G(this,2,t,Z,e,n)},setUint16:function(t,e,n){G(this,2,t,Z,e,n)},setInt32:function(t,e,n){G(this,4,t,H,e,n)},setUint32:function(t,e,n){G(this,4,t,H,e,n)},setFloat32:function(t,e,n){G(this,4,t,W,e,n)},setFloat64:function(t,e,n){G(this,8,t,V,e,n)}});v(w,y),v(S,_),a(S[x],s.VIEW,!0),e[y]=w,e[_]=S},function(n,t,e){!function(){"use strict";var o="undefined"!=typeof window&&void 0!==window.document?window.document:{},t=n.exports,r="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,s=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=e.length,r={};n<i;n++)if((t=e[n])&&t[1]in o){for(n=0;n<t.length;n++)r[e[0][n]]=t[n];return r}return!1}(),i={change:s.fullscreenchange,error:s.fullscreenerror},e={request:function(i){return new Promise(function(t){var e=s.requestFullscreen,n=function(){this.off("change",n),t()}.bind(this);i=i||o.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?i[e]():i[e](r?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",n)}.bind(this))},exit:function(){return new Promise(function(t){if(this.isFullscreen){var e=function(){this.off("change",e),t()}.bind(this);o[s.exitFullscreen](),this.on("change",e)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,e){var n=i[t];n&&o.addEventListener(n,e,!1)},off:function(t,e){var n=i[t];n&&o.removeEventListener(n,e,!1)},raw:s};s?(Object.defineProperties(e,{isFullscreen:{get:function(){return Boolean(o[s.fullscreenElement])}},element:{enumerable:!0,get:function(){return o[s.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(o[s.fullscreenEnabled])}}}),t?(n.exports=e,n.exports.default=e):window.screenfull=e):t?n.exports=!1:window.screenfull=!1}()},function(t,e,n){t.exports=!n(8)&&!n(4)(function(){return 7!=Object.defineProperty(n(72)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){e.f=n(6)},function(t,e,n){var s=n(15),a=n(16),u=n(56)(!1),l=n(74)("IE_PROTO");t.exports=function(t,e){var n,i=a(t),r=0,o=[];for(n in i)n!=l&&s(i,n)&&o.push(n);for(;e.length>r;)s(i,n=e[r++])&&(~u(o,n)||o.push(n));return o}},function(t,e,n){var s=n(9),a=n(2),u=n(36);t.exports=n(8)?Object.defineProperties:function(t,e){a(t);for(var n,i=u(e),r=i.length,o=0;o<r;)s.f(t,n=i[o++],e[n]);return t}},function(t,e,n){var i=n(16),r=n(39).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(i(t))}},function(t,e,n){"use strict";var h=n(8),d=n(36),p=n(57),m=n(51),g=n(10),v=n(50),r=Object.assign;t.exports=!r||n(4)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=r({},t)[n]||Object.keys(r({},e)).join("")!=i})?function(t,e){for(var n=g(t),i=arguments.length,r=1,o=p.f,s=m.f;r<i;)for(var a,u=v(arguments[r++]),l=o?d(u).concat(o(u)):d(u),c=l.length,f=0;f<c;)a=l[f++],h&&!s.call(u,a)||(n[a]=u[a]);return n}:r},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var o=n(11),s=n(5),a=n(108),u=[].slice,l={};t.exports=Function.bind||function(e){var n=o(this),i=u.call(arguments,1),r=function(){var t=i.concat(u.call(arguments));return this instanceof r?function(t,e,n){if(!(e in l)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";l[e]=Function("F,a","return new F("+i.join(",")+")")}return l[e](t,n)}(n,t.length,t):a(n,t,e)};return s(n.prototype)&&(r.prototype=n.prototype),r}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(3).parseInt,r=n(47).trim,o=n(78),s=/^[-+]?0[xX]/;t.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(s.test(n)?16:10))}:i},function(t,e,n){var i=n(3).parseFloat,r=n(47).trim;t.exports=1/i(n(78)+"-0")!=-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},function(t,e,n){var i=n(22);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},function(t,e,n){var i=n(5),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var o=n(81),i=Math.pow,s=i(2,-52),a=i(2,-23),u=i(2,127)*(2-a),l=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),r=o(t);return i<l?r*function(t){return t+1/s-1/s}(i/l/a)*l*a:u<(n=(e=(1+a/s)*i)-(e-i))||n!=n?r*(1/0):r*n}},function(t,e,n){var o=n(2);t.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(t,e,n){var c=n(11),f=n(10),h=n(50),d=n(7);t.exports=function(t,e,n,i,r){c(e);var o=f(t),s=h(o),a=d(o.length),u=r?a-1:0,l=r?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?0<=u:u<a;u+=l)u in s&&(i=e(i,s[u],u,o));return i}},function(t,e,n){"use strict";var c=n(10),f=n(37),h=n(7);t.exports=[].copyWithin||function(t,e,n){var i=c(this),r=h(i.length),o=f(t,r),s=f(e,r),a=2<arguments.length?n:void 0,u=Math.min((void 0===a?r:f(a,r))-s,r-o),l=1;for(s<o&&o<s+u&&(l=-1,s+=u-1,o+=u-1);0<u--;)s in i?i[o]=i[s]:delete i[o],o+=l,s+=l;return i}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i=n(93);n(0)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(52)})},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(2),r=n(5),o=n(97);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(124),r=n(44);t.exports=n(65)("Map",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},function(t,e,n){"use strict";function s(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n}var a=n(9).f,u=n(38),l=n(43),c=n(21),f=n(41),h=n(42),i=n(83),r=n(118),o=n(40),d=n(8),p=n(32).fastKey,m=n(44),g=d?"_s":"size";t.exports={getConstructor:function(t,o,n,i){var r=t(function(t,e){f(t,r,o,"_i"),t._t=o,t._i=u(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&h(e,n,t[i],t)});return l(r.prototype,{clear:function(){for(var t=m(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var e=m(this,o),n=s(e,t);if(n){var i=n.n,r=n.p;delete e._i[n.i],n.r=!0,r&&(r.n=i),i&&(i.p=r),e._f==n&&(e._f=i),e._l==n&&(e._l=r),e[g]--}return!!n},forEach:function(t,e){m(this,o);for(var n,i=c(t,1<arguments.length?e:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!s(m(this,o),t)}}),d&&a(r.prototype,"size",{get:function(){return m(this,o)[g]}}),r},def:function(t,e,n){var i,r,o=s(t,e);return o?o.v=n:(t._l=o={i:r=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:s,setStrong:function(t,n,e){i(t,n,function(t,e){this._t=m(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?r(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,r(1))},e?"entries":"values",!e,!0),o(n)}}},function(t,e,n){"use strict";var i=n(124),r=n(44);t.exports=n(65)("Set",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";function i(e){return function(t){return e(this,0<arguments.length?t:void 0)}}var o,r=n(3),s=n(28)(0),a=n(13),u=n(32),l=n(105),c=n(127),f=n(5),h=n(44),d=n(44),p=!r.ActiveXObject&&"ActiveXObject"in r,m="WeakMap",g=u.getWeak,v=Object.isExtensible,y=c.ufstore,_={get:function(t){if(f(t)){var e=g(t);return!0===e?y(h(this,m)).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(h(this,m),t,e)}},x=t.exports=n(65)(m,i,_,c,!0,!0);d&&p&&(l((o=c.getConstructor(i,m)).prototype,_),u.NEED=!0,s(["delete","has","get","set"],function(i){var t=x.prototype,r=t[i];a(t,i,function(t,e){if(!f(t)||v(t))return r.call(this,t,e);this._f||(this._f=new o);var n=this._f[i](t,e);return"set"==i?this:n})}))},function(t,e,n){"use strict";function s(t){return t._l||(t._l=new v)}function i(t,e){return p(t.a,function(t){return t[0]===e})}var a=n(43),u=n(32).getWeak,r=n(2),l=n(5),c=n(41),f=n(42),o=n(28),h=n(15),d=n(44),p=o(5),m=o(6),g=0,v=function(){this.a=[]};v.prototype={get:function(t){var e=i(this,t);if(e)return e[1]},has:function(t){return!!i(this,t)},set:function(t,e){var n=i(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=m(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(t,n,i,r){var o=t(function(t,e){c(t,o,n,"_i"),t._t=n,t._i=g++,t._l=void 0,null!=e&&f(e,i,t[r],t)});return a(o.prototype,{delete:function(t){if(!l(t))return!1;var e=u(t);return!0===e?s(d(this,n)).delete(t):e&&h(e,this._i)&&delete e[this._i]},has:function(t){if(!l(t))return!1;var e=u(t);return!0===e?s(d(this,n)).has(t):e&&h(e,this._i)}}),o},def:function(t,e,n){var i=u(r(e),!0);return!0===i?s(t).set(e,n):i[t._i]=n,t},ufstore:s}},function(t,e,n){var i=n(23),r=n(7);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var i=n(39),r=n(57),o=n(2),s=n(3).Reflect;t.exports=s&&s.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var p=n(58),m=n(5),g=n(7),v=n(21),y=n(6)("isConcatSpreadable");t.exports=function t(e,n,i,r,o,s,a,u){for(var l,c,f=o,h=0,d=!!a&&v(a,u,3);h<r;){if(h in i){if(l=d?d(i[h],h,n):i[h],c=!1,m(l)&&(c=void 0!==(c=l[y])?!!c:p(l)),c&&0<s)f=t(e,n,l,g(l.length),f,s-1)-1;else{if(9007199254740991<=f)throw TypeError();e[f]=l}f++}h++}return f}},function(t,e,n){var c=n(7),f=n(80),h=n(26);t.exports=function(t,e,n,i){var r=String(h(t)),o=r.length,s=void 0===n?" ":String(n),a=c(e);if(a<=o||""==s)return r;var u=a-o,l=f.call(s,Math.ceil(u/s.length));return l.length>u&&(l=l.slice(0,u)),i?l+r:r+l}},function(t,e,n){var u=n(8),l=n(36),c=n(16),f=n(51).f;t.exports=function(a){return function(t){for(var e,n=c(t),i=l(n),r=i.length,o=0,s=[];o<r;)e=i[o++],u&&!f.call(n,e)||s.push(a?[e,n[e]]:n[e]);return s}}},function(t,e,n){var i=n(46),r=n(134);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},function(t,e){t.exports=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i}},function(n,i,t){(function(t){var e;/*! smooth-scroll v16.1.0 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){var e,n=(this.document||this.ownerDocument).querySelectorAll(t),i=this;do{for(e=n.length;0<=--e&&n.item(e)!==i;);}while(e<0&&(i=i.parentElement));return i}),function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}(),function(){for(var o=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var n=(new Date).getTime(),i=Math.max(0,16-(n-o)),r=window.setTimeout(function(){t(n+i)},i);return o=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),function(t){void 0===(e=function(){return function(L){"use strict";var C={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},k=function(){var n={};return Array.prototype.forEach.call(arguments,function(t){for(var e in t){if(!t.hasOwnProperty(e))return;n[e]=t[e]}}),n},o=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,n=String(t),i=n.length,r=-1,o="",s=n.charCodeAt(0);++r<i;){if(0===(e=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");1<=e&&e<=31||127==e||0===r&&48<=e&&e<=57||1===r&&48<=e&&e<=57&&45===s?o+="\\"+e.toString(16)+" ":o+=128<=e||45===e||95===e||48<=e&&e<=57||65<=e&&e<=90||97<=e&&e<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+o},I=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},M=function(t){return t?(e=t,parseInt(L.getComputedStyle(e).height,10)+t.offsetTop):0;var e},A=function(t,e,n,i){if(e.emitEvents&&"function"==typeof L.CustomEvent){var r=new CustomEvent(t,{bubbles:!0,detail:{anchor:n,toggle:i}});document.dispatchEvent(r)}};return function(i,t){var S,r,T,E,P={};P.cancelScroll=function(t){cancelAnimationFrame(E),E=null,t||A("scrollCancel",S)},P.animateScroll=function(s,a,t){P.cancelScroll();var u=k(S||C,t||{}),l="[object Number]"===Object.prototype.toString.call(s),e=l||!s.tagName?null:s;if(l||e){var c=L.pageYOffset;u.header&&!T&&(T=document.querySelector(u.header));var n,i,r,f,o,h,d,p,m=M(T),g=l?s:function(t,e,n,i){var r=0;if(t.offsetParent)for(;r+=t.offsetTop,t=t.offsetParent;);return r=Math.max(r-e-n,0),i&&(r=Math.min(r,I()-L.innerHeight)),r}(e,m,parseInt("function"==typeof u.offset?u.offset(s,a):u.offset,10),u.clip),v=g-c,y=I(),_=0,x=(n=v,r=(i=u).speedAsDuration?i.speed:Math.abs(n/1e3*i.speed),i.durationMax&&r>i.durationMax?i.durationMax:i.durationMin&&r<i.durationMin?i.durationMin:parseInt(r,10)),b=function(t,e){var n,i,r,o=L.pageYOffset;if(t==e||o==e||(c<e&&L.innerHeight+o)>=y)return P.cancelScroll(!0),i=e,r=l,0===(n=s)&&document.body.focus(),r||(n.focus(),document.activeElement!==n&&(n.setAttribute("tabindex","-1"),n.focus(),n.style.outline="none"),L.scrollTo(0,i)),A("scrollStop",u,s,a),!(E=f=null)},w=function(t){var e,n,i;f||(f=t),_+=t-f,h=c+v*(n=o=1<(o=0===x?0:_/x)?1:o,"easeInQuad"===(e=u).easing&&(i=n*n),"easeOutQuad"===e.easing&&(i=n*(2-n)),"easeInOutQuad"===e.easing&&(i=n<.5?2*n*n:(4-2*n)*n-1),"easeInCubic"===e.easing&&(i=n*n*n),"easeOutCubic"===e.easing&&(i=--n*n*n+1),"easeInOutCubic"===e.easing&&(i=n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1),"easeInQuart"===e.easing&&(i=n*n*n*n),"easeOutQuart"===e.easing&&(i=1- --n*n*n*n),"easeInOutQuart"===e.easing&&(i=n<.5?8*n*n*n*n:1-8*--n*n*n*n),"easeInQuint"===e.easing&&(i=n*n*n*n*n),"easeOutQuint"===e.easing&&(i=1+--n*n*n*n*n),"easeInOutQuint"===e.easing&&(i=n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n),e.customEasing&&(i=e.customEasing(n)),i||n),L.scrollTo(0,Math.floor(h)),b(h,g)||(E=L.requestAnimationFrame(w),f=t)};0===L.pageYOffset&&L.scrollTo(0,0),d=s,p=u,l||history.pushState&&p.updateURL&&history.pushState({smoothScroll:JSON.stringify(p),anchor:d.id},document.title,d===document.documentElement?"#top":"#"+d.id),"matchMedia"in L&&L.matchMedia("(prefers-reduced-motion)").matches?L.scrollTo(0,Math.floor(g)):(A("scrollStart",u,s,a),P.cancelScroll(!0),L.requestAnimationFrame(w))}};var e=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(r=t.target.closest(i))&&"a"===r.tagName.toLowerCase()&&!t.target.closest(S.ignore)&&r.hostname===L.location.hostname&&r.pathname===L.location.pathname&&/#/.test(r.href)){var e,n=o(r.hash);if("#"===n){if(!S.topOnEmptyHash)return;e=document.documentElement}else e=document.querySelector(n);(e=e||"#top"!==n?e:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var e=L.location.hash;e=e||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:e||L.pageYOffset},document.title,e||L.location.href)}}(S),P.animateScroll(e,r))}},n=function(t){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(S)){var e=history.state.anchor;"string"==typeof e&&e&&!(e=document.querySelector(o(history.state.anchor)))||P.animateScroll(e,null,{updateURL:!1})}};P.destroy=function(){S&&(document.removeEventListener("click",e,!1),L.removeEventListener("popstate",n,!1),P.cancelScroll(),E=T=r=S=null)};return function(){if(!("querySelector"in document&&"addEventListener"in L&&"requestAnimationFrame"in L&&"closest"in L.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";P.destroy(),S=k(C,t||{}),T=S.header?document.querySelector(S.header):null,document.addEventListener("click",e,!1),S.updateURL&&S.popstate&&L.addEventListener("popstate",n,!1)}(),P}}(t)}.apply(i,[]))||(n.exports=e)}(void 0!==t?t:"undefined"!=typeof window?window:this)}).call(this,t(71))},function(t,e,n){var i,r;
|
|
32
|
-
/**
|
|
33
|
-
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.8
|
|
34
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
35
|
-
* @license MIT
|
|
36
|
-
*/!function(){var q=function(t){var e=new q.Builder;return e.pipeline.add(q.trimmer,q.stopWordFilter,q.stemmer),e.searchPipeline.add(q.stemmer),t.call(e,e),e.build()};q.version="2.3.8"
|
|
37
|
-
/*!
|
|
38
|
-
* lunr.utils
|
|
39
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
40
|
-
*/,q.utils={},q.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),q.utils.asString=function(t){return null==t?"":t.toString()},q.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],o=t[r];if(Array.isArray(o))e[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");e[r]=o}}return e},q.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},q.FieldRef.joiner="/",q.FieldRef.fromString=function(t){var e=t.indexOf(q.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new q.FieldRef(i,n,t)},q.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+q.FieldRef.joiner+this.docRef),this._stringValue}
|
|
41
|
-
/*!
|
|
42
|
-
* lunr.Set
|
|
43
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
44
|
-
*/,q.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},q.Set.complete={intersect:function(t){return t},union:function(t){return t},contains:function(){return!0}},q.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},q.Set.prototype.contains=function(t){return!!this.elements[t]},q.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===q.Set.complete)return this;if(t===q.Set.empty)return t;n=this.length<t.length?(e=this,t):(e=t,this),i=Object.keys(e.elements);for(var o=0;o<i.length;o++){var s=i[o];s in n.elements&&r.push(s)}return new q.Set(r)},q.Set.prototype.union=function(t){return t===q.Set.complete?q.Set.complete:t===q.Set.empty?this:new q.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},q.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},q.Token=function(t,e){this.str=t||"",this.metadata=e||{}},q.Token.prototype.toString=function(){return this.str},q.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},q.Token.prototype.clone=function(t){return t=t||function(t){return t},new q.Token(t(this.str,this.metadata),this.metadata)}
|
|
45
|
-
/*!
|
|
46
|
-
* lunr.tokenizer
|
|
47
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
48
|
-
*/,q.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map(function(t){return new q.Token(q.utils.asString(t).toLowerCase(),q.utils.clone(e))});for(var n=t.toString().toLowerCase(),i=n.length,r=[],o=0,s=0;o<=i;o++){var a=o-s;if(n.charAt(o).match(q.tokenizer.separator)||o==i){if(0<a){var u=q.utils.clone(e)||{};u.position=[s,a],u.index=r.length,r.push(new q.Token(n.slice(s,o),u))}s=o+1}}return r},q.tokenizer.separator=/[\s\-]+/
|
|
49
|
-
/*!
|
|
50
|
-
* lunr.Pipeline
|
|
51
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
52
|
-
*/,q.Pipeline=function(){this._stack=[]},q.Pipeline.registeredFunctions=Object.create(null),q.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&q.utils.warn("Overwriting existing registered function: "+e),t.label=e,q.Pipeline.registeredFunctions[t.label]=t},q.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||q.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},q.Pipeline.load=function(t){var n=new q.Pipeline;return t.forEach(function(t){var e=q.Pipeline.registeredFunctions[t];if(!e)throw new Error("Cannot load unregistered function: "+t);n.add(e)}),n},q.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){q.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},q.Pipeline.prototype.after=function(t,e){q.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},q.Pipeline.prototype.before=function(t,e){q.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},q.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},q.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],o=0;o<t.length;o++){var s=i(t[o],o,t);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)r.push(s[a]);else r.push(s)}t=r}return t},q.Pipeline.prototype.runString=function(t,e){var n=new q.Token(t,e);return this.run([n]).map(function(t){return t.toString()})},q.Pipeline.prototype.reset=function(){this._stack=[]},q.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return q.Pipeline.warnIfFunctionNotRegistered(t),t.label})}
|
|
53
|
-
/*!
|
|
54
|
-
* lunr.Vector
|
|
55
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
56
|
-
*/,q.Vector=function(t){this._magnitude=0,this.elements=t||[]},q.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),o=this.elements[2*r];1<i&&(o<t&&(e=r),t<o&&(n=r),o!=t);)i=n-e,r=e+Math.floor(i/2),o=this.elements[2*r];return o==t?2*r:t<o?2*r:o<t?2*(r+1):void 0},q.Vector.prototype.insert=function(t,e){this.upsert(t,e,function(){throw"duplicate index"})},q.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},q.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},q.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,o=i.length,s=0,a=0,u=0,l=0;u<r&&l<o;)(s=n[u])<(a=i[l])?u+=2:a<s?l+=2:s==a&&(e+=n[u+1]*i[l+1],u+=2,l+=2);return e},q.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},q.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},q.Vector.prototype.toJSON=function(){return this.elements}
|
|
57
|
-
/*!
|
|
58
|
-
* lunr.stemmer
|
|
59
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
60
|
-
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
|
|
61
|
-
*/,q.stemmer=function(){function e(t){var e,n,i,r,o,s,a;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),o=g,(r=m).test(t)?t=t.replace(r,"$1$2"):o.test(t)&&(t=t.replace(o,"$1$2")),o=y,(r=v).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=_,t=t.replace(r,""))}else if(o.test(t)){e=(u=o.exec(t))[1],(o=p).test(e)&&(s=b,a=w,(o=x).test(t=e)?t+="e":s.test(t)?(r=_,t=t.replace(r,"")):a.test(t)&&(t+="e"))}if((r=S).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=T).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+l[n])),(r=E).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+c[n])),o=L,(r=P).test(t))e=(u=r.exec(t))[1],(r=h).test(e)&&(t=e);else if(o.test(t)){e=(u=o.exec(t))[1]+u[2],(o=h).test(e)&&(t=e)}return(r=C).test(t)&&(e=(u=r.exec(t))[1],o=d,s=I,((r=h).test(e)||o.test(e)&&!s.test(e))&&(t=e)),o=h,(r=k).test(t)&&o.test(t)&&(r=_,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t}var l={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},c={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},t="[aeiouy]",n="[^aeiou][^aeiouy]*",f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),m=/^(.+?)(ss|i)es$/,g=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,_=/.$/,x=/(at|bl|iz)$/,b=new RegExp("([^aeiouylsz])\\1$"),w=new RegExp("^"+n+t+"[^aeiouwxy]$"),S=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,P=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,L=/^(.+?)(s|t)(ion)$/,C=/^(.+?)e$/,k=/ll$/,I=new RegExp("^"+n+t+"[^aeiouwxy]$");return function(t){return t.update(e)}}(),q.Pipeline.registerFunction(q.stemmer,"stemmer")
|
|
62
|
-
/*!
|
|
63
|
-
* lunr.stopWordFilter
|
|
64
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
65
|
-
*/,q.generateStopWordFilter=function(t){var e=t.reduce(function(t,e){return t[e]=e,t},{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},q.stopWordFilter=q.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),q.Pipeline.registerFunction(q.stopWordFilter,"stopWordFilter")
|
|
66
|
-
/*!
|
|
67
|
-
* lunr.trimmer
|
|
68
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
69
|
-
*/,q.trimmer=function(t){return t.update(function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")})},q.Pipeline.registerFunction(q.trimmer,"trimmer")
|
|
70
|
-
/*!
|
|
71
|
-
* lunr.TokenSet
|
|
72
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
73
|
-
*/,q.TokenSet=function(){this.final=!1,this.edges={},this.id=q.TokenSet._nextId,q.TokenSet._nextId+=1},q.TokenSet._nextId=1,q.TokenSet.fromArray=function(t){for(var e=new q.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},q.TokenSet.fromClause=function(t){return"editDistance"in t?q.TokenSet.fromFuzzyString(t.term,t.editDistance):q.TokenSet.fromString(t.term)},q.TokenSet.fromFuzzyString=function(t,e){for(var n=new q.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(0<r.str.length){var o,s=r.str.charAt(0);s in r.node.edges?o=r.node.edges[s]:(o=new q.TokenSet,r.node.edges[s]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else{a=new q.TokenSet;r.node.edges["*"]=a}if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),1<r.str.length&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),1<=r.str.length){if("*"in r.node.edges)var u=r.node.edges["*"];else{u=new q.TokenSet;r.node.edges["*"]=u}1==r.str.length&&(u.final=!0),i.push({node:u,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(1<r.str.length){var l,c=r.str.charAt(0),f=r.str.charAt(1);f in r.node.edges?l=r.node.edges[f]:(l=new q.TokenSet,r.node.edges[f]=l),1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:c+r.str.slice(2)})}}}return n},q.TokenSet.fromString=function(t){for(var e=new q.TokenSet,n=e,i=0,r=t.length;i<r;i++){var o=t[i],s=i==r-1;if("*"==o)(e.edges[o]=e).final=s;else{var a=new q.TokenSet;a.final=s,e.edges[o]=a,e=a}}return n},q.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var o=0;o<r;o++){var s=i[o];e.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return t},q.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},q.TokenSet.prototype.intersect=function(t){for(var e=new q.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,s=Object.keys(n.node.edges),a=s.length,u=0;u<o;u++)for(var l=r[u],c=0;c<a;c++){var f=s[c];if(f==l||"*"==l){var h=n.node.edges[f],d=n.qNode.edges[l],p=h.final&&d.final,m=void 0;f in n.output.edges?(m=n.output.edges[f]).final=m.final||p:((m=new q.TokenSet).final=p,n.output.edges[f]=m),i.push({qNode:d,output:m,node:h})}}}return e},q.TokenSet.Builder=function(){this.previousWord="",this.root=new q.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},q.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=n;i<t.length;i++){var r=new q.TokenSet,o=t[i];e.edges[o]=r,this.uncheckedNodes.push({parent:e,char:o,child:r}),e=r}e.final=!0,this.previousWord=t},q.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},q.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;t<=e;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}}
|
|
74
|
-
/*!
|
|
75
|
-
* lunr.Index
|
|
76
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
77
|
-
*/,q.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},q.Index.prototype.search=function(e){return this.query(function(t){new q.QueryParser(e,t).parse()})},q.Index.prototype.query=function(t){for(var e=new q.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new q.Vector;t.call(e,e);for(a=0;a<e.clauses.length;a++){var u=e.clauses[a],l=null,c=q.Set.complete;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var f=0;f<l.length;f++){var h=l[f];u.term=h;var d=q.TokenSet.fromClause(u),p=this.tokenSet.intersect(d).toArray();if(0===p.length&&u.presence===q.Query.presence.REQUIRED){for(var m=0;m<u.fields.length;m++){o[M=u.fields[m]]=q.Set.empty}break}for(var g=0;g<p.length;g++){var v=p[g],y=this.invertedIndex[v],_=y._index;for(m=0;m<u.fields.length;m++){var x=y[M=u.fields[m]],b=Object.keys(x),w=v+"/"+M,S=new q.Set(b);if(u.presence==q.Query.presence.REQUIRED&&(c=c.union(S),void 0===o[M]&&(o[M]=q.Set.complete)),u.presence!=q.Query.presence.PROHIBITED){if(i[M].upsert(_,u.boost,function(t,e){return t+e}),!r[w]){for(var T=0;T<b.length;T++){var E,P=b[T],L=new q.FieldRef(P,M),C=x[P];void 0===(E=n[L])?n[L]=new q.MatchData(v,M,C):E.add(v,M,C)}r[w]=!0}}else void 0===s[M]&&(s[M]=q.Set.empty),s[M]=s[M].union(S)}}}if(u.presence===q.Query.presence.REQUIRED)for(m=0;m<u.fields.length;m++){o[M=u.fields[m]]=o[M].intersect(c)}}var k=q.Set.complete,I=q.Set.empty;for(a=0;a<this.fields.length;a++){var M;o[M=this.fields[a]]&&(k=k.intersect(o[M])),s[M]&&(I=I.union(s[M]))}var A=Object.keys(n),O=[],N=Object.create(null);if(e.isNegated()){A=Object.keys(this.fieldVectors);for(a=0;a<A.length;a++){L=A[a];var z=q.FieldRef.fromString(L);n[L]=new q.MatchData}}for(a=0;a<A.length;a++){var R=(z=q.FieldRef.fromString(A[a])).docRef;if(k.contains(R)&&!I.contains(R)){var F,j=this.fieldVectors[z],D=i[z.fieldName].similarity(j);if(void 0!==(F=N[R]))F.score+=D,F.matchData.combine(n[z]);else{var B={ref:R,score:D,matchData:n[z]};N[R]=B,O.push(B)}}}return O.sort(function(t,e){return e.score-t.score})},q.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map(function(t){return[t,this.invertedIndex[t]]},this),e=Object.keys(this.fieldVectors).map(function(t){return[t,this.fieldVectors[t].toJSON()]},this);return{version:q.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},q.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),o=t.invertedIndex,s=new q.TokenSet.Builder,a=q.Pipeline.load(t.pipeline);t.version!=q.version&&q.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+q.version+"' does not match serialized index '"+t.version+"'");for(var u=0;u<i.length;u++){var l=(f=i[u])[0],c=f[1];n[l]=new q.Vector(c)}for(u=0;u<o.length;u++){var f,h=(f=o[u])[0],d=f[1];s.insert(h),r[h]=d}return s.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=s.root,e.pipeline=a,new q.Index(e)}
|
|
78
|
-
/*!
|
|
79
|
-
* lunr.Builder
|
|
80
|
-
* Copyright (C) 2019 Oliver Nightingale
|
|
81
|
-
*/,q.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=q.tokenizer,this.pipeline=new q.Pipeline,this.searchPipeline=new q.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},q.Builder.prototype.ref=function(t){this._ref=t},q.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},q.Builder.prototype.b=function(t){this._b=t<0?0:1<t?1:t},q.Builder.prototype.k1=function(t){this._k1=t},q.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],s=this._fields[o].extractor,a=s?s(t):t[o],u=this.tokenizer(a,{fields:[o]}),l=this.pipeline.run(u),c=new q.FieldRef(n,o),f=Object.create(null);this.fieldTermFrequencies[c]=f,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var h=0;h<l.length;h++){var d=l[h];if(null==f[d]&&(f[d]=0),f[d]+=1,null==this.invertedIndex[d]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var m=0;m<i.length;m++)p[i[m]]=Object.create(null);this.invertedIndex[d]=p}null==this.invertedIndex[d][o][n]&&(this.invertedIndex[d][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var v=this.metadataWhitelist[g],y=d.metadata[v];null==this.invertedIndex[d][o][n][v]&&(this.invertedIndex[d][o][n][v]=[]),this.invertedIndex[d][o][n][v].push(y)}}}},q.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var o=q.FieldRef.fromString(t[r]),s=o.fieldName;i[s]||(i[s]=0),i[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var u=a[r];n[u]=n[u]/i[u]}this.averageFieldLength=n},q.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var o=q.FieldRef.fromString(e[r]),s=o.fieldName,a=this.fieldLengths[o],u=new q.Vector,l=this.fieldTermFrequencies[o],c=Object.keys(l),f=c.length,h=this._fields[s].boost||1,d=this._documents[o.docRef].boost||1,p=0;p<f;p++){var m,g,v,y=c[p],_=l[y],x=this.invertedIndex[y]._index;void 0===i[y]?(m=q.idf(this.invertedIndex[y],this.documentCount),i[y]=m):m=i[y],g=m*((this._k1+1)*_)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+_),g*=h,g*=d,v=Math.round(1e3*g)/1e3,u.insert(x,v)}t[o]=u}this.fieldVectors=t},q.Builder.prototype.createTokenSet=function(){this.tokenSet=q.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},q.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new q.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},q.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},q.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var s=r[o];i[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},q.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var s=r[o],a=Object.keys(t.metadata[i][s]);null==this.metadata[i][s]&&(this.metadata[i][s]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[i][s][l]?this.metadata[i][s][l]=t.metadata[i][s][l]:this.metadata[i][s][l]=this.metadata[i][s][l].concat(t.metadata[i][s][l])}}}},q.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[t][e]?this.metadata[t][e][o]=this.metadata[t][e][o].concat(n[o]):this.metadata[t][e][o]=n[o]}else this.metadata[t][e]=n},q.Query=function(t){this.clauses=[],this.allFields=t},q.Query.wildcard=new String("*"),q.Query.wildcard.NONE=0,q.Query.wildcard.LEADING=1,q.Query.wildcard.TRAILING=2,q.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},q.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=q.Query.wildcard.NONE),t.wildcard&q.Query.wildcard.LEADING&&t.term.charAt(0)!=q.Query.wildcard&&(t.term="*"+t.term),t.wildcard&q.Query.wildcard.TRAILING&&t.term.slice(-1)!=q.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=q.Query.presence.OPTIONAL),this.clauses.push(t),this},q.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=q.Query.presence.PROHIBITED)return!1;return!0},q.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach(function(t){this.term(t,q.utils.clone(e))},this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},q.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},q.QueryParseError.prototype=new Error,q.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},q.QueryLexer.prototype.run=function(){for(var t=q.QueryLexer.lexText;t;)t=t(this)},q.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},q.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},q.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},q.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return q.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},q.QueryLexer.prototype.width=function(){return this.pos-this.start},q.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},q.QueryLexer.prototype.backup=function(){--this.pos},q.QueryLexer.prototype.acceptDigitRun=function(){for(var t,e;47<(e=(t=this.next()).charCodeAt(0))&&e<58;);t!=q.QueryLexer.EOS&&this.backup()},q.QueryLexer.prototype.more=function(){return this.pos<this.length},q.QueryLexer.EOS="EOS",q.QueryLexer.FIELD="FIELD",q.QueryLexer.TERM="TERM",q.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",q.QueryLexer.BOOST="BOOST",q.QueryLexer.PRESENCE="PRESENCE",q.QueryLexer.lexField=function(t){return t.backup(),t.emit(q.QueryLexer.FIELD),t.ignore(),q.QueryLexer.lexText},q.QueryLexer.lexTerm=function(t){if(1<t.width()&&(t.backup(),t.emit(q.QueryLexer.TERM)),t.ignore(),t.more())return q.QueryLexer.lexText},q.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(q.QueryLexer.EDIT_DISTANCE),q.QueryLexer.lexText},q.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(q.QueryLexer.BOOST),q.QueryLexer.lexText},q.QueryLexer.lexEOS=function(t){0<t.width()&&t.emit(q.QueryLexer.TERM)},q.QueryLexer.termSeparator=q.tokenizer.separator,q.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==q.QueryLexer.EOS)return q.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return q.QueryLexer.lexField;if("~"==e)return t.backup(),0<t.width()&&t.emit(q.QueryLexer.TERM),q.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),0<t.width()&&t.emit(q.QueryLexer.TERM),q.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(q.QueryLexer.PRESENCE),q.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(q.QueryLexer.PRESENCE),q.QueryLexer.lexText;if(e.match(q.QueryLexer.termSeparator))return q.QueryLexer.lexTerm}else t.escapeCharacter()}},q.QueryParser=function(t,e){this.lexer=new q.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},q.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=q.QueryParser.parseClause;t;)t=t(this);return this.query},q.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},q.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},q.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},q.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case q.QueryLexer.PRESENCE:return q.QueryParser.parsePresence;case q.QueryLexer.FIELD:return q.QueryParser.parseField;case q.QueryLexer.TERM:return q.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw 1<=e.str.length&&(n+=" with value '"+e.str+"'"),new q.QueryParseError(n,e.start,e.end)}},q.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=q.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=q.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new q.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i){n="expecting term or field, found nothing";throw new q.QueryParseError(n,e.start,e.end)}switch(i.type){case q.QueryLexer.FIELD:return q.QueryParser.parseField;case q.QueryLexer.TERM:return q.QueryParser.parseTerm;default:n="expecting term or field, found '"+i.type+"'";throw new q.QueryParseError(n,i.start,i.end)}}},q.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map(function(t){return"'"+t+"'"}).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new q.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r){i="expecting term, found nothing";throw new q.QueryParseError(i,e.start,e.end)}switch(r.type){case q.QueryLexer.TERM:return q.QueryParser.parseTerm;default:i="expecting term, found '"+r.type+"'";throw new q.QueryParseError(i,r.start,r.end)}}},q.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case q.QueryLexer.TERM:return t.nextClause(),q.QueryParser.parseTerm;case q.QueryLexer.FIELD:return t.nextClause(),q.QueryParser.parseField;case q.QueryLexer.EDIT_DISTANCE:return q.QueryParser.parseEditDistance;case q.QueryLexer.BOOST:return q.QueryParser.parseBoost;case q.QueryLexer.PRESENCE:return t.nextClause(),q.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new q.QueryParseError(i,n.start,n.end)}else t.nextClause()}},q.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new q.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case q.QueryLexer.TERM:return t.nextClause(),q.QueryParser.parseTerm;case q.QueryLexer.FIELD:return t.nextClause(),q.QueryParser.parseField;case q.QueryLexer.EDIT_DISTANCE:return q.QueryParser.parseEditDistance;case q.QueryLexer.BOOST:return q.QueryParser.parseBoost;case q.QueryLexer.PRESENCE:return t.nextClause(),q.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+r.type+"'";throw new q.QueryParseError(i,r.start,r.end)}else t.nextClause()}},q.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new q.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case q.QueryLexer.TERM:return t.nextClause(),q.QueryParser.parseTerm;case q.QueryLexer.FIELD:return t.nextClause(),q.QueryParser.parseField;case q.QueryLexer.EDIT_DISTANCE:return q.QueryParser.parseEditDistance;case q.QueryLexer.BOOST:return q.QueryParser.parseBoost;case q.QueryLexer.PRESENCE:return t.nextClause(),q.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+r.type+"'";throw new q.QueryParseError(i,r.start,r.end)}else t.nextClause()}},function(){void 0===(r="function"==typeof(i=function(){return q})?i.call(e,n,e,t):i)||(t.exports=r)}()}()},function(Ht,Vt,Wt){var Ut;
|
|
82
|
-
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
83
|
-
* http://hammerjs.github.io/
|
|
84
|
-
*
|
|
85
|
-
* Copyright (c) 2016 Jorik Tangelder;
|
|
86
|
-
* Licensed under the MIT license */
|
|
87
|
-
!function(o,r,f){"use strict";var s,a=["","webkit","Moz","MS","ms","o"],t=r.createElement("div"),n="function",u=Math.round,h=Math.abs,d=Date.now;function l(t,e,n){return setTimeout(v(t,n),e)}function i(t,e,n){return!!Array.isArray(t)&&(c(t,n[e],n),!0)}function c(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==f)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function e(i,t,e){var r="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=o.console&&(o.console.warn||o.console.log);return n&&n.call(o.console,r,e),i.apply(this,arguments)}}s="function"!=typeof Object.assign?function(t){if(t===f||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==f&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var p=e(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===f)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),m=e(function(t,e){return p(t,e,!0)},"merge","Use `assign`.");function g(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&s(i,n)}function v(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return typeof t==n?t.apply(e&&e[0]||f,e):t}function _(t,e){return t===f?e:t}function x(e,t,n){c(T(t),function(t){e.addEventListener(t,n,!1)})}function b(e,t,n){c(T(t),function(t){e.removeEventListener(t,n,!1)})}function w(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function S(t,e){return-1<t.indexOf(e)}function T(t){return t.trim().split(/\s+/g)}function E(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function P(t){return Array.prototype.slice.call(t,0)}function L(t,n,e){for(var i=[],r=[],o=0;o<t.length;){var s=n?t[o][n]:t[o];E(r,s)<0&&i.push(t[o]),r[o]=s,o++}return e&&(i=n?i.sort(function(t,e){return t[n]>e[n]}):i.sort()),i}function C(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<a.length;){if((i=(n=a[o])?n+r:e)in t)return i;o++}return f}var k=1;function I(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var M="ontouchstart"in o,A=C(o,"PointerEvent")!==f,O=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",z=25,R=1,F=4,j=8,D=1,B=2,q=4,Z=8,H=16,V=B|q,W=Z|H,U=V|W,Q=["x","y"],G=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){y(e.options.enable,[e])&&n.handler(t)},this.init()}function Y(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&R&&i-r==0,s=e&(F|j)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=X(e));1<r&&!n.firstMultiple?n.firstMultiple=X(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=K(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=nt(a,u),e.distance=et(a,u),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==R&&o.eventType!==F||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=tt(e.deltaX,e.deltaY);var l=J(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=h(l.x)>h(l.y)?l.x:l.y,e.scale=s?function(t,e){return et(e[0],e[1],G)/et(t[0],t[1],G)}(s.pointers,i):1,e.rotation=s?function(t,e){return nt(e[1],e[0],G)+nt(t[1],t[0],G)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=j&&(z<a||s.velocity===f)){var u=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,c=J(a,u,l);i=c.x,r=c.y,n=h(c.x)>h(c.y)?c.x:c.y,o=tt(u,l),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var c=t.element;w(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function X(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:u(n/e),y:u(i/e)}}function J(t,e,n){return{x:e/t||0,y:n/t||0}}function tt(t,e){return t===e?D:h(t)>=h(e)?t<0?B:q:e<0?Z:H}function et(t,e,n){var i=e[(n=n||Q)[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function nt(t,e,n){var i=e[(n=n||Q)[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(I(this.element),this.evWin,this.domHandler)}};var it={mousedown:R,mousemove:2,mouseup:F},rt="mousedown",ot="mousemove mouseup";function st(){this.evEl=rt,this.evWin=ot,this.pressed=!1,$.apply(this,arguments)}g(st,$,{handler:function(t){var e=it[t.type];e&R&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=F),this.pressed&&(e&F&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var at={pointerdown:R,pointermove:2,pointerup:F,pointercancel:j,pointerout:j},ut={2:N,3:"pen",4:"mouse",5:"kinect"},lt="pointerdown",ct="pointermove pointerup pointercancel";function ft(){this.evEl=lt,this.evWin=ct,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(lt="MSPointerDown",ct="MSPointerMove MSPointerUp MSPointerCancel"),g(ft,$,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=at[i],o=ut[t.pointerType]||t.pointerType,s=o==N,a=E(e,t.pointerId,"pointerId");r&R&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(F|j)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var ht={touchstart:R,touchmove:2,touchend:F,touchcancel:j};function dt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}g(dt,$,{handler:function(t){var e=ht[t.type];if(e===R&&(this.started=!0),this.started){var n=function(t,e){var n=P(t.touches),i=P(t.changedTouches);e&(F|j)&&(n=L(n.concat(i),"identifier",!0));return[n,i]}.call(this,t,e);e&(F|j)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var pt={touchstart:R,touchmove:2,touchend:F,touchcancel:j},mt="touchstart touchmove touchend touchcancel";function gt(){this.evTarget=mt,this.targetIds={},$.apply(this,arguments)}g(gt,$,{handler:function(t){var e=pt[t.type],n=function(t,e){var n=P(t.touches),i=this.targetIds;if(e&(2|R)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=P(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return w(t.target,u)}),e===R)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;r=0;for(;r<s.length;)i[s[r].identifier]&&a.push(s[r]),e&(F|j)&&delete i[s[r].identifier],r++;return a.length?[L(o.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}});var vt=2500;function yt(){$.apply(this,arguments);var t=v(this.handler,this);this.touch=new gt(this.manager,t),this.mouse=new st(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function _t(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);-1<t&&i.splice(t,1)},vt)}}g(yt,$,{handler:function(t,e,n){var i=n.pointerType==N,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&R?(this.primaryTouch=e.changedPointers[0].identifier,_t.call(this,e)):t&(F|j)&&_t.call(this,e)}).call(this,e,n);else if(r&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var xt=C(t.style,"touchAction"),bt=xt!==f,wt="manipulation",St="none",Tt="pan-x",Et="pan-y",Pt=function(){if(!bt)return!1;var e={},n=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||o.CSS.supports("touch-action",t)}),e}();function Lt(t,e){this.manager=t,this.set(e)}Lt.prototype={set:function(t){"compute"==t&&(t=this.compute()),bt&&this.manager.element.style&&Pt[t]&&(this.manager.element.style[xt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){y(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(S(t,St))return St;var e=S(t,Tt),n=S(t,Et);if(e&&n)return St;if(e||n)return e?Tt:Et;if(S(t,wt))return wt;return"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=S(i,St)&&!Pt.none,o=S(i,Et)&&!Pt[Et],s=S(i,Tt)&&!Pt[Tt];if(r){var a=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(a&&u&&l)return}if(!s||!o)return r||o&&n&V||s&&n&W?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ct=1;function kt(t){this.options=s({},this.defaults,t||{}),this.id=function(){return k++}(),this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=Ct,this.simultaneous={},this.requireFail=[]}function It(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Mt(t){return t==H?"down":t==Z?"up":t==B?"left":t==q?"right":""}function At(t,e){var n=e.manager;return n?n.get(t):t}function Ot(){kt.apply(this,arguments)}function Nt(){Ot.apply(this,arguments),this.pX=null,this.pY=null}function zt(){Ot.apply(this,arguments)}function Rt(){kt.apply(this,arguments),this._timer=null,this._input=null}function Ft(){Ot.apply(this,arguments)}function jt(){Ot.apply(this,arguments)}function Dt(){kt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Bt(t,e){return(e=e||{}).recognizers=_(e.recognizers,Bt.defaults.preset),new qt(t,e)}kt.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=At(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=At(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===E(e,t=At(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=At(t,this);var e=E(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var n=this,t=this.state;function i(t){n.manager.emit(t,e)}t<8&&i(n.options.event+It(t)),i(n.options.event),e.additionalEvent&&i(e.additionalEvent),8<=t&&i(n.options.event+It(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Ct)))return!1;t++}return!0},recognize:function(t){var e=s({},t);if(!y(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Ct),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(Ot,kt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(n&j||!r)?16|e:i||r?n&F?8|e:2&e?4|e:2:32}}),g(Nt,Ot,{defaults:{event:"pan",threshold:10,pointers:1,direction:U},getTouchAction:function(){var t=this.options.direction,e=[];return t&V&&e.push(Et),t&W&&e.push(Tt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(i=e.direction&V?(r=0===o?D:o<0?B:q,n=o!=this.pX,Math.abs(t.deltaX)):(r=0===s?D:s<0?Z:H,n=s!=this.pY,Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Ot.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Mt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(zt,Ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[St]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Rt,kt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(F|j)&&!r)this.reset();else if(t.eventType&R)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&F)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&F?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),g(Ft,Ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[St]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(jt,Ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:V|W,pointers:1},getTouchAction:function(){return Nt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(V|W)?e=t.overallVelocity:n&V?e=t.overallVelocityX:n&W&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&F},emit:function(t){var e=Mt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(Dt,kt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[wt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&R&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=F)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||et(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Bt.VERSION="2.0.7",Bt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ft,{enable:!1}],[zt,{enable:!1},["rotate"]],[jt,{direction:V}],[Nt,{direction:V},["swipe"]],[Dt],[Dt,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function qt(t,e){this.options=s({},Bt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(A?ft:O?gt:M?yt:st))(t,Y)}(this),this.touchAction=new Lt(this,this.options.touchAction),Zt(this,!0),c(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Zt(n,i){var r,o=n.element;o.style&&(c(n.options.cssProps,function(t,e){r=C(o.style,e),i?(n.oldCssProps[r]=o.style[r],o.style[r]=t):o.style[r]=n.oldCssProps[r]||""}),i||(n.oldCssProps={}))}qt.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof kt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(i(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=E(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==f&&e!==f){var n=this.handlers;return c(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==f){var n=this.handlers;return c(T(t),function(t){e?n[t]&&n[t].splice(E(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=r.createEvent("Event");n.initEvent(t,!0,!0),(n.gesture=e).target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Zt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(Bt,{INPUT_START:R,INPUT_MOVE:2,INPUT_END:F,INPUT_CANCEL:j,STATE_POSSIBLE:Ct,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:D,DIRECTION_LEFT:B,DIRECTION_RIGHT:q,DIRECTION_UP:Z,DIRECTION_DOWN:H,DIRECTION_HORIZONTAL:V,DIRECTION_VERTICAL:W,DIRECTION_ALL:U,Manager:qt,Input:$,TouchAction:Lt,TouchInput:gt,MouseInput:st,PointerEventInput:ft,TouchMouseInput:yt,SingleTouchInput:dt,Recognizer:kt,AttrRecognizer:Ot,Tap:Dt,Pan:Nt,Swipe:jt,Pinch:zt,Rotate:Ft,Press:Rt,on:x,off:b,each:c,merge:m,extend:p,assign:s,inherit:g,bindFn:v,prefixed:C}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Bt,(Ut=function(){return Bt}.call(Vt,Wt,Vt,Ht))===f||(Ht.exports=Ut)}(window,document)},function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var a=window.document,e=[];t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},t.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(window,"resize",this._checkForIntersections,!0),n(a,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(a,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(a,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},t.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),u=a?this._getRootRect():o();this._observationTargets.forEach(function(t){var e=t.element,n=c(e),i=this._rootContainsTarget(e),r=t.entry,o=a&&i&&this._computeTargetAndRootIntersection(e,u),s=t.entry=new l({time:function(){return window.performance&&performance.now&&performance.now()}(),target:e,boundingClientRect:n,rootBounds:u,intersectionRect:o});r?a&&i?this._hasCrossedThreshold(r,s)&&this._queuedEntries.push(s):r&&r.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=window.getComputedStyle(t).display){for(var n=c(t),i=f(t),r=!1;!r;){var o=null,s=1==i.nodeType?window.getComputedStyle(i):{};if("none"==s.display)return;if(i==this.root||i==a?(r=!0,o=e):i!=a.body&&i!=a.documentElement&&"visible"!=s.overflow&&(o=c(i)),o&&!(n=u(o,n)))break;i=f(i)}return n}},t.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var e=a.documentElement,n=a.body;t={top:0,left:0,right:e.clientWidth||n.clientWidth,width:e.clientWidth||n.clientWidth,bottom:e.clientHeight||n.clientHeight,height:e.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},t.prototype._expandRectByRootMargin=function(n){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?n.width:n.height)/100}),e={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},t.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var o=this.thresholds[r];if(o==n||o==i||o<n!=o<i)return!0}},t.prototype._rootIsInDom=function(){return!this.root||r(a,this.root)},t.prototype._rootContainsTarget=function(t){return r(this.root||a,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=t,window.IntersectionObserverEntry=l}function l(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(t,e){var n=null;return function(){n=n||setTimeout(function(){t(),n=null},e)}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function n(t,e,n,i){"function"==typeof t.addEventListener?t.addEventListener(e,n,i||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,i){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,i||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t,e){var n=Math.max(t.top,e.top),i=Math.min(t.bottom,e.bottom),r=Math.max(t.left,e.left),o=Math.min(t.right,e.right),s=o-r,a=i-n;return 0<=s&&0<=a&&{top:n,bottom:i,left:r,right:o,width:s,height:a}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):o()}function o(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function r(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},function(t,e,n){var i=n(141);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};n(55)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){},function(t,e,n){var i=n(143);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};n(55)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){},function(t,e,n){var i=n(145);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};n(55)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){},function(t,e,n){"use strict";(function(t){if(n(147),n(344),n(345),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;function e(t,e,n){t[e]||Object.defineProperty(t,e,{writable:!0,configurable:!0,value:n})}e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(this,n(71))},function(t,e,n){n(148),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(228),n(229),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(92),n(252),n(119),n(253),n(120),n(254),n(255),n(256),n(257),n(258),n(123),n(125),n(126),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),t.exports=n(20)},function(t,e,n){"use strict";function i(t){var e=Q[t]=I(D[Z]);return e._k=t,e}function r(t,e){T(t);for(var n,i=w(e=L(e)),r=0,o=i.length;r<o;)et(t,n=i[r++],e[n]);return t}function o(t){var e=W.call(this,t=C(t,!0));return!(this===$&&c(Q,t)&&!c(G,t))&&(!(e||!c(this,t)||!c(Q,t)||c(this,H)&&this[H][t])||e)}function s(t,e){if(t=L(t),e=C(e,!0),t!==$||!c(Q,e)||c(G,e)){var n=R(t,e);return!n||!c(Q,e)||c(t,H)&&t[H][e]||(n.enumerable=!0),n}}function a(t){for(var e,n=j(L(t)),i=[],r=0;n.length>r;)c(Q,e=n[r++])||e==H||e==p||i.push(e);return i}function u(t){for(var e,n=t===$,i=j(n?G:L(t)),r=[],o=0;i.length>o;)!c(Q,e=i[o++])||n&&!c($,e)||r.push(Q[e]);return r}var l=n(3),c=n(15),f=n(8),h=n(0),d=n(13),p=n(32).KEY,m=n(4),g=n(49),v=n(45),y=n(35),_=n(6),x=n(101),b=n(73),w=n(150),S=n(58),T=n(2),E=n(5),P=n(10),L=n(16),C=n(25),k=n(34),I=n(38),M=n(104),A=n(17),O=n(57),N=n(9),z=n(36),R=A.f,F=N.f,j=M.f,D=l.Symbol,B=l.JSON,q=B&&B.stringify,Z="prototype",H=_("_hidden"),V=_("toPrimitive"),W={}.propertyIsEnumerable,U=g("symbol-registry"),Q=g("symbols"),G=g("op-symbols"),$=Object[Z],Y="function"==typeof D&&!!O.f,X=l.QObject,K=!X||!X[Z]||!X[Z].findChild,J=f&&m(function(){return 7!=I(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=R($,e);i&&delete $[e],F(t,e,n),i&&t!==$&&F($,e,i)}:F,tt=Y&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},et=function(t,e,n){return t===$&&et(G,e,n),T(t),e=C(e,!0),T(n),c(Q,e)?(n.enumerable?(c(t,H)&&t[H][e]&&(t[H][e]=!1),n=I(n,{enumerable:k(0,!1)})):(c(t,H)||F(t,H,k(1,{})),t[H][e]=!0),J(t,e,n)):F(t,e,n)};Y||(d((D=function(t){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=y(0<arguments.length?t:void 0),n=function(t){this===$&&n.call(G,t),c(this,H)&&c(this[H],e)&&(this[H][e]=!1),J(this,e,k(1,t))};return f&&K&&J($,e,{configurable:!0,set:n}),i(e)})[Z],"toString",function(){return this._k}),A.f=s,N.f=et,n(39).f=M.f=a,n(51).f=o,O.f=u,f&&!n(31)&&d($,"propertyIsEnumerable",o,!0),x.f=function(t){return i(_(t))}),h(h.G+h.W+h.F*!Y,{Symbol:D});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)_(nt[it++]);for(var rt=z(_.store),ot=0;rt.length>ot;)b(rt[ot++]);h(h.S+h.F*!Y,"Symbol",{for:function(t){return c(U,t+="")?U[t]:U[t]=D(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),h(h.S+h.F*!Y,"Object",{create:function(t,e){return void 0===e?I(t):r(I(t),e)},defineProperty:et,defineProperties:r,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:u});var st=m(function(){O.f(1)});h(h.S+h.F*st,"Object",{getOwnPropertySymbols:function(t){return O.f(P(t))}}),B&&h(h.S+h.F*(!Y||m(function(){var t=D();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;r<arguments.length;)i.push(arguments[r++]);if(n=e=i[1],(E(e)||void 0!==t)&&!tt(t))return S(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!tt(e))return e}),i[1]=e,q.apply(B,i)}}),D[Z][V]||n(12)(D[Z],V,D[Z].valueOf),v(D,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},function(t,e,n){t.exports=n(49)("native-function-to-string",Function.toString)},function(t,e,n){var a=n(36),u=n(57),l=n(51);t.exports=function(t){var e=a(t),n=u.f;if(n)for(var i,r=n(t),o=l.f,s=0;r.length>s;)o.call(t,i=r[s++])&&e.push(i);return e}},function(t,e,n){var i=n(0);i(i.S,"Object",{create:n(38)})},function(t,e,n){var i=n(0);i(i.S+i.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var i=n(0);i(i.S+i.F*!n(8),"Object",{defineProperties:n(103)})},function(t,e,n){var i=n(16),r=n(17).f;n(27)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(10),r=n(18);n(27)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(10),r=n(36);n(27)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){n(27)("getOwnPropertyNames",function(){return n(104).f})},function(t,e,n){var i=n(5),r=n(32).onFreeze;n(27)("freeze",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(t,e,n){var i=n(5),r=n(32).onFreeze;n(27)("seal",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(t,e,n){var i=n(5),r=n(32).onFreeze;n(27)("preventExtensions",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(t,e,n){var i=n(5);n(27)("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(t,e,n){var i=n(5);n(27)("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(t,e,n){var i=n(5);n(27)("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},function(t,e,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(105)})},function(t,e,n){var i=n(0);i(i.S,"Object",{is:n(106)})},function(t,e,n){var i=n(0);i(i.S,"Object",{setPrototypeOf:n(77).set})},function(t,e,n){"use strict";var i=n(46),r={};r[n(6)("toStringTag")]="z",r+""!="[object z]"&&n(13)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(t,e,n){var i=n(0);i(i.P,"Function",{bind:n(107)})},function(t,e,n){var i=n(9).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(8)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(5),r=n(18),o=n(6)("hasInstance"),s=Function.prototype;o in s||n(9).f(s,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var i=n(0),r=n(109);i(i.G+i.F*(parseInt!=r),{parseInt:r})},function(t,e,n){var i=n(0),r=n(110);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},function(t,e,n){"use strict";function i(t){var e=c(t,!1);if("string"==typeof e&&2<e.length){var n,i,r,o=(e=_?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var s,a=e.slice(2),u=0,l=a.length;u<l;u++)if((s=a.charCodeAt(u))<48||r<s)return NaN;return parseInt(a,i)}}return+e}var r=n(3),o=n(15),s=n(22),a=n(79),c=n(25),u=n(4),l=n(39).f,f=n(17).f,h=n(9).f,d=n(47).trim,p="Number",m=r[p],g=m,v=m.prototype,y=s(n(38)(v))==p,_="trim"in String.prototype;if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof m&&(y?u(function(){v.valueOf.call(n)}):s(n)!=p)?a(new g(i(e)),n,m):i(e)};for(var x,b=n(8)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,x=b[w])&&!o(m,x)&&h(m,x,f(g,x));(m.prototype=v).constructor=m,n(13)(r,p,m)}},function(t,e,n){"use strict";function l(t,e){for(var n=-1,i=e;++n<6;)i+=t*s[n],s[n]=i%1e7,i=o(i/1e7)}function c(t){for(var e=6,n=0;0<=--e;)n+=s[e],s[e]=o(n/t),n=n%t*1e7}function f(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+p.call("0",7-n.length)+n}return e}var i=n(0),h=n(23),d=n(111),p=n(80),r=1..toFixed,o=Math.floor,s=[0,0,0,0,0,0],m="Number.toFixed: incorrect invocation!",g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};i(i.P+i.F*(!!r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)(function(){r.call({})})),"Number",{toFixed:function(t){var e,n,i,r,o=d(this,m),s=h(t),a="",u="0";if(s<0||20<s)throw RangeError(m);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(a="-",o=-o),1e-21<o)if(n=(e=function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e}(o*g(2,69,1))-69)<0?o*g(2,-e,1):o/g(2,e,1),n*=4503599627370496,0<(e=52-e)){for(l(0,n),i=s;7<=i;)l(1e7,0),i-=7;for(l(g(10,i,1),0),i=e-1;23<=i;)c(1<<23),i-=23;c(1<<i),l(1,1),c(2),u=f()}else l(0,n),l(1<<-e,0),u=f()+p.call("0",s);return u=0<s?a+((r=u.length)<=s?"0."+p.call("0",s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}})},function(t,e,n){"use strict";var i=n(0),r=n(4),o=n(111),s=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==s.call(1,void 0)})||!r(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var i=n(0);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var i=n(0),r=n(3).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,n){var i=n(0);i(i.S,"Number",{isInteger:n(112)})},function(t,e,n){var i=n(0);i(i.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var i=n(0),r=n(112),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,n){var i=n(0);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var i=n(0);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var i=n(0),r=n(110);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,n){var i=n(0),r=n(109);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,n){var i=n(0),r=n(113),o=Math.sqrt,s=Math.acosh;i(i.S+i.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var i=n(0),r=Math.asinh;i(i.S+i.F*!(r&&0<1/r(0)),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var i=n(0),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var i=n(0),r=n(81);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var i=n(0),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,n){var i=n(0),r=n(82);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e,n){var i=n(0);i(i.S,"Math",{fround:n(114)})},function(t,e,n){var i=n(0),u=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,r=0,o=0,s=arguments.length,a=0;o<s;)a<(n=u(arguments[o++]))?(r=r*(i=a/n)*i+1,a=n):r+=0<n?(i=n/a)*i:n;return a===1/0?1/0:a*Math.sqrt(r)}})},function(t,e,n){var i=n(0),r=Math.imul;i(i.S+i.F*n(4)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var i=n(0);i(i.S,"Math",{log1p:n(113)})},function(t,e,n){var i=n(0);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(0);i(i.S,"Math",{sign:n(81)})},function(t,e,n){var i=n(0),r=n(82),o=Math.exp;i(i.S+i.F*n(4)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var i=n(0),r=n(82),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{trunc:function(t){return(0<t?Math.floor:Math.ceil)(t)}})},function(t,e,n){var i=n(0),o=n(37),s=String.fromCharCode,r=String.fromCodePoint;i(i.S+i.F*(!!r&&1!=r.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;r<i;){if(e=+arguments[r++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var i=n(0),s=n(16),a=n(7);i(i.S,"String",{raw:function(t){for(var e=s(t.raw),n=a(e.length),i=arguments.length,r=[],o=0;o<n;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}})},function(t,e,n){"use strict";n(47)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var i=n(59)(!0);n(83)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var i=n(0),r=n(59)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(0),a=n(7),u=n(85),l="endsWith",c=""[l];i(i.P+i.F*n(86)(l),"String",{endsWith:function(t,e){var n=u(this,t,l),i=1<arguments.length?e:void 0,r=a(n.length),o=void 0===i?r:Math.min(a(i),r),s=String(t);return c?c.call(n,s,o):n.slice(o-s.length,o)===s}})},function(t,e,n){"use strict";var i=n(0),r=n(85);i(i.P+i.F*n(86)("includes"),"String",{includes:function(t,e){return!!~r(this,t,"includes").indexOf(t,1<arguments.length?e:void 0)}})},function(t,e,n){var i=n(0);i(i.P,"String",{repeat:n(80)})},function(t,e,n){"use strict";var i=n(0),o=n(7),s=n(85),a="startsWith",u=""[a];i(i.P+i.F*n(86)(a),"String",{startsWith:function(t,e){var n=s(this,t,a),i=o(Math.min(1<arguments.length?e:void 0,n.length)),r=String(t);return u?u.call(n,r,i):n.slice(i,i+r.length)===r}})},function(t,e,n){"use strict";n(14)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(t,e,n){"use strict";n(14)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(14)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(14)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(14)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(14)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(t,e,n){"use strict";n(14)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(t,e,n){"use strict";n(14)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(14)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(t,e,n){"use strict";n(14)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(14)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(14)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(14)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var i=n(0);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var i=n(0),r=n(10),o=n(25);i(i.P+i.F*n(4)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var t=r(this),e=o(t);return"number"!=typeof e||isFinite(e)?t.toISOString():null}})},function(t,e,n){var i=n(0),r=n(227);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(t,e,n){"use strict";function i(t){return 9<t?t:"0"+t}var r=n(4),o=Date.prototype.getTime,s=Date.prototype.toISOString;t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=s.call(new Date(-5e13-1))})||!r(function(){s.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":9999<t?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"."+(99<e?e:"0"+i(e))+"Z"}:s},function(t,e,n){var i=Date.prototype,r="Invalid Date",o=i.toString,s=i.getTime;new Date(NaN)+""!=r&&n(13)(i,"toString",function(){var t=s.call(this);return t==t?o.call(this):r})},function(t,e,n){var i=n(6)("toPrimitive"),r=Date.prototype;i in r||n(12)(r,i,n(230))},function(t,e,n){"use strict";var i=n(2),r=n(25);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},function(t,e,n){var i=n(0);i(i.S,"Array",{isArray:n(58)})},function(t,e,n){"use strict";var p=n(21),i=n(0),m=n(10),g=n(115),v=n(87),y=n(7),_=n(88),x=n(89);i(i.S+i.F*!n(61)(function(t){Array.from(t)}),"Array",{from:function(t,e,n){var i,r,o,s,a=m(t),u="function"==typeof this?this:Array,l=arguments.length,c=1<l?e:void 0,f=void 0!==c,h=0,d=x(a);if(f&&(c=p(c,2<l?n:void 0,2)),null==d||u==Array&&v(d))for(r=new u(i=y(a.length));h<i;h++)_(r,h,f?c(a[h],h):a[h]);else for(s=d.call(a),r=new u;!(o=s.next()).done;h++)_(r,h,f?g(s,c,[o.value,h],!0):o.value);return r.length=h,r}})},function(t,e,n){"use strict";var i=n(0),r=n(88);i(i.S+i.F*n(4)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);t<e;)r(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(0),r=n(16),o=[].join;i(i.P+i.F*(n(50)!=Object||!n(24)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(0),r=n(76),l=n(22),c=n(37),f=n(7),h=[].slice;i(i.P+i.F*n(4)(function(){r&&h.call(r)}),"Array",{slice:function(t,e){var n=f(this.length),i=l(this);if(e=void 0===e?n:e,"Array"==i)return h.call(this,t,e);for(var r=c(t,n),o=c(e,n),s=f(o-r),a=new Array(s),u=0;u<s;u++)a[u]="String"==i?this.charAt(r+u):this[r+u];return a}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(10),s=n(4),a=[].sort,u=[1,2,3];i(i.P+i.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(24)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},function(t,e,n){"use strict";var i=n(0),r=n(28)(0),o=n(24)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t,e){return r(this,t,e)}})},function(t,e,n){var i=n(5),r=n(58),o=n(6)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var i=n(0),r=n(28)(1);i(i.P+i.F*!n(24)([].map,!0),"Array",{map:function(t,e){return r(this,t,e)}})},function(t,e,n){"use strict";var i=n(0),r=n(28)(2);i(i.P+i.F*!n(24)([].filter,!0),"Array",{filter:function(t,e){return r(this,t,e)}})},function(t,e,n){"use strict";var i=n(0),r=n(28)(3);i(i.P+i.F*!n(24)([].some,!0),"Array",{some:function(t,e){return r(this,t,e)}})},function(t,e,n){"use strict";var i=n(0),r=n(28)(4);i(i.P+i.F*!n(24)([].every,!0),"Array",{every:function(t,e){return r(this,t,e)}})},function(t,e,n){"use strict";var i=n(0),r=n(116);i(i.P+i.F*!n(24)([].reduce,!0),"Array",{reduce:function(t,e){return r(this,t,arguments.length,e,!1)}})},function(t,e,n){"use strict";var i=n(0),r=n(116);i(i.P+i.F*!n(24)([].reduceRight,!0),"Array",{reduceRight:function(t,e){return r(this,t,arguments.length,e,!0)}})},function(t,e,n){"use strict";var i=n(0),r=n(56)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(24)(o)),"Array",{indexOf:function(t,e){return s?o.apply(this,arguments)||0:r(this,t,e)}})},function(t,e,n){"use strict";var i=n(0),o=n(16),s=n(23),a=n(7),u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(24)(u)),"Array",{lastIndexOf:function(t,e){if(l)return u.apply(this,arguments)||0;var n=o(this),i=a(n.length),r=i-1;for(1<arguments.length&&(r=Math.min(r,s(e))),r<0&&(r=i+r);0<=r;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,e,n){var i=n(0);i(i.P,"Array",{copyWithin:n(117)}),n(33)("copyWithin")},function(t,e,n){var i=n(0);i(i.P,"Array",{fill:n(91)}),n(33)("fill")},function(t,e,n){"use strict";var i=n(0),r=n(28)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),n(33)("find")},function(t,e,n){"use strict";var i=n(0),r=n(28)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),i(i.P+i.F*s,"Array",{findIndex:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),n(33)(o)},function(t,e,n){n(40)("Array")},function(t,e,n){var i=n(3),o=n(79),r=n(9).f,s=n(39).f,a=n(60),u=n(52),l=i.RegExp,c=l,f=l.prototype,h=/a/g,d=/a/g,p=new l(h)!==h;if(n(8)&&(!p||n(4)(function(){return d[n(6)("match")]=!1,l(h)!=h||l(d)==d||"/a/i"!=l(h,"i")}))){l=function(t,e){var n=this instanceof l,i=a(t),r=void 0===e;return!n&&i&&t.constructor===l&&r?t:o(p?new c(i&&!r?t.source:t,e):c((i=t instanceof l)?t.source:t,i&&r?u.call(t):e),n?this:f,l)};function m(e){e in l||r(l,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}for(var g=s(c),v=0;g.length>v;)m(g[v++]);(f.constructor=l).prototype=f,n(13)(i,"RegExp",l)}n(40)("RegExp")},function(t,e,n){"use strict";n(120);function i(t){n(13)(RegExp.prototype,a,t,!0)}var r=n(2),o=n(52),s=n(8),a="toString",u=/./[a];n(4)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?i(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?o.call(t):void 0)}):u.name!=a&&i(function(){return u.call(this)})},function(t,e,n){"use strict";var f=n(2),h=n(7),d=n(94),p=n(62);n(63)("match",1,function(i,r,l,c){return[function(t){var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var n=f(t),i=String(this);if(!n.global)return p(n,i);for(var r,o=n.unicode,s=[],a=n.lastIndex=0;null!==(r=p(n,i));){var u=String(r[0]);""===(s[a]=u)&&(n.lastIndex=d(i,h(n.lastIndex),o)),a++}return 0===a?null:s}]})},function(t,e,n){"use strict";function S(t){return void 0===t?t:String(t)}var T=n(2),i=n(10),E=n(7),P=n(23),L=n(94),C=n(62),k=Math.max,I=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(63)("replace",2,function(r,o,x,b){return[function(t,e){var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):x.call(String(n),t,e)},function(t,e){var n=b(x,t,this,e);if(n.done)return n.value;var i=T(t),r=String(this),o="function"==typeof e;o||(e=String(e));var s=i.global;if(s){var a=i.unicode;i.lastIndex=0}for(var u=[];;){var l=C(i,r);if(null===l)break;if(u.push(l),!s)break;""===String(l[0])&&(i.lastIndex=L(r,E(i.lastIndex),a))}for(var c="",f=0,h=0;h<u.length;h++){l=u[h];for(var d=String(l[0]),p=k(I(P(l.index),r.length),0),m=[],g=1;g<l.length;g++)m.push(S(l[g]));var v=l.groups;if(o){var y=[d].concat(m,p,r);void 0!==v&&y.push(v);var _=String(e.apply(void 0,y))}else _=w(d,r,p,m,v,e);f<=p&&(c+=r.slice(f,p)+_,f=p+d.length)}return c+r.slice(f)}];function w(o,s,a,u,l,t){var c=a+o.length,f=u.length,e=p;return void 0!==l&&(l=i(l),e=d),x.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return s.slice(0,a);case"'":return s.slice(c);case"<":n=l[e.slice(1,-1)];break;default:var i=+e;if(0==i)return t;if(f<i){var r=h(i/10);return 0===r?t:r<=f?void 0===u[r-1]?e.charAt(1):u[r-1]+e.charAt(1):t}n=u[i-1]}return void 0===n?"":n})}})},function(t,e,n){"use strict";var u=n(2),l=n(106),c=n(62);n(63)("search",1,function(i,r,s,a){return[function(t){var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},function(t){var e=a(s,t,this);if(e.done)return e.value;var n=u(t),i=String(this),r=n.lastIndex;l(r,0)||(n.lastIndex=0);var o=c(n,i);return l(n.lastIndex,r)||(n.lastIndex=r),null===o?-1:o.index}]})},function(t,e,n){"use strict";var f=n(60),_=n(2),x=n(53),b=n(94),w=n(7),S=n(62),h=n(93),i=n(4),T=Math.min,d=[].push,s="split",p="length",m="lastIndex",E=4294967295,P=!i(function(){RegExp(E,"y")});n(63)("split",2,function(r,o,g,v){var y;return y="c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[p]||2!="ab"[s](/(?:ab)*/)[p]||4!="."[s](/(.?)(.?)/)[p]||1<"."[s](/()()/)[p]||""[s](/.?/)[p]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!f(t))return g.call(n,t,e);for(var i,r,o,s=[],a=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,l=void 0===e?E:e>>>0,c=new RegExp(t.source,a+"g");(i=h.call(c,n))&&!(u<(r=c[m])&&(s.push(n.slice(u,i.index)),1<i[p]&&i.index<n[p]&&d.apply(s,i.slice(1)),o=i[0][p],u=r,s[p]>=l));)c[m]===i.index&&c[m]++;return u===n[p]?!o&&c.test("")||s.push(""):s.push(n.slice(u)),s[p]>l?s.slice(0,l):s}:"0"[s](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):y.call(String(n),t,e)},function(t,e){var n=v(y,t,this,e,y!==g);if(n.done)return n.value;var i=_(t),r=String(this),o=x(i,RegExp),s=i.unicode,a=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(P?"y":"g"),u=new o(P?i:"^(?:"+i.source+")",a),l=void 0===e?E:e>>>0;if(0==l)return[];if(0===r.length)return null===S(u,r)?[r]:[];for(var c=0,f=0,h=[];f<r.length;){u.lastIndex=P?f:0;var d,p=S(u,P?r:r.slice(f));if(null===p||(d=T(w(u.lastIndex+(P?0:f)),r.length))===c)f=b(r,f,s);else{if(h.push(r.slice(c,f)),h.length===l)return h;for(var m=1;m<=p.length-1;m++)if(h.push(p[m]),h.length===l)return h;f=c=d}}return h.push(r.slice(c)),h}]})},function(t,e,n){"use strict";function i(){}function f(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e}function r(c,n){if(!c._n){c._n=!0;var i=c._c;w(function(){for(var u=c._v,l=1==c._s,t=0,e=function(t){var e,n,i,r=l?t.ok:t.fail,o=t.resolve,s=t.reject,a=t.domain;try{r?(l||(2==c._h&&j(c),c._h=1),!0===r?e=u:(a&&a.enter(),e=r(u),a&&(a.exit(),i=!0)),e===t.promise?s(C("Promise-chain cycle")):(n=f(e))?n.call(e,o,s):o(e)):s(u)}catch(t){a&&!i&&a.exit(),s(t)}};i.length>t;)e(i[t++]);c._c=[],c._n=!1,n&&!c._h&&R(c)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),r(e,!0))}var s,a,u,l,c=n(31),h=n(3),d=n(21),p=n(46),m=n(0),g=n(5),v=n(11),y=n(41),_=n(42),x=n(53),b=n(95).set,w=n(96)(),S=n(97),T=n(121),E=n(64),P=n(122),L="Promise",C=h.TypeError,k=h.process,I=k&&k.versions,M=I&&I.v8||"",A=h[L],O="process"==p(k),N=a=S.f,z=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(i,i)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(i)instanceof e&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),R=function(o){b.call(h,function(){var t,e,n,i=o._v,r=F(o);if(r&&(t=T(function(){O?k.emit("unhandledRejection",i,o):(e=h.onunhandledrejection)?e({promise:o,reason:i}):(n=h.console)&&n.error&&n.error("Unhandled promise rejection",i)}),o._h=O||F(o)?2:1),o._a=void 0,r&&t.e)throw t.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(e){b.call(h,function(){var t;O?k.emit("rejectionHandled",e):(t=h.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw C("Promise can't be resolved itself");(n=f(t))?w(function(){var e={_w:i,_d:!1};try{n.call(t,d(D,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(i._v=t,i._s=1,r(i,!1))}catch(t){o.call({_w:i,_d:!1},t)}}};z||(A=function(t){y(this,A,L,"_h"),v(t),s.call(this);try{t(d(D,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(s=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(43)(A.prototype,{then:function(t,e){var n=N(x(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&r(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),u=function(){var t=new s;this.promise=t,this.resolve=d(D,t,1),this.reject=d(o,t,1)},S.f=N=function(t){return t===A||t===l?new u(t):a(t)}),m(m.G+m.W+m.F*!z,{Promise:A}),n(45)(A,L),n(40)(L),l=n(20)[L],m(m.S+m.F*!z,L,{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(c||!z),L,{resolve:function(t){return P(c&&this===l?A:this,t)}}),m(m.S+m.F*!(z&&n(61)(function(t){A.all(t).catch(i)})),L,{all:function(t){var s=this,e=N(s),a=e.resolve,u=e.reject,n=T(function(){var i=[],r=0,o=1;_(t,!1,function(t){var e=r++,n=!1;i.push(void 0),o++,s.resolve(t).then(function(t){n||(n=!0,i[e]=t,--o||a(i))},u)}),--o||a(i)});return n.e&&u(n.v),e.promise},race:function(t){var e=this,n=N(e),i=n.reject,r=T(function(){_(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){"use strict";var i=n(127),r=n(44);n(65)("WeakSet",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},function(t,e,n){"use strict";var i=n(0),r=n(66),o=n(98),l=n(2),c=n(37),f=n(7),s=n(5),a=n(3).ArrayBuffer,h=n(53),d=o.ArrayBuffer,p=o.DataView,u=r.ABV&&a.isView,m=d.prototype.slice,g=r.VIEW,v="ArrayBuffer";i(i.G+i.W+i.F*(a!==d),{ArrayBuffer:d}),i(i.S+i.F*!r.CONSTR,v,{isView:function(t){return u&&u(t)||s(t)&&g in t}}),i(i.P+i.U+i.F*n(4)(function(){return!new d(2).slice(1,void 0).byteLength}),v,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(l(this),t);for(var n=l(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),o=new(h(this,d))(f(r-i)),s=new p(this),a=new p(o),u=0;i<r;)a.setUint8(u++,s.getUint8(i++));return o}}),n(40)(v)},function(t,e,n){var i=n(0);i(i.G+i.W+i.F*!n(66).ABV,{DataView:n(98).DataView})},function(t,e,n){n(29)("Int8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}},!0)},function(t,e,n){n(29)("Int16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Uint16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Int32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Uint32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Float32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){n(29)("Float64",8,function(i){return function(t,e,n){return i(this,t,e,n)}})},function(t,e,n){var i=n(0),o=n(11),s=n(2),a=(n(3).Reflect||{}).apply,u=Function.apply;i(i.S+i.F*!n(4)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var i=o(t),r=s(n);return a?a(i,e,r):u.call(i,e,r)}})},function(t,e,n){var i=n(0),u=n(38),l=n(11),c=n(2),f=n(5),r=n(4),h=n(107),d=(n(3).Reflect||{}).construct,p=r(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!r(function(){d(function(){})});i(i.S+i.F*(p||m),"Reflect",{construct:function(t,e,n){l(t),c(e);var i=arguments.length<3?t:l(n);if(m&&!p)return d(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(h.apply(t,r))}var o=i.prototype,s=u(f(o)?o:Object.prototype),a=Function.apply.call(t,s,e);return f(a)?a:s}})},function(t,e,n){var i=n(9),r=n(0),o=n(2),s=n(25);r(r.S+r.F*n(4)(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var i=n(0),r=n(17).f,o=n(2);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";function i(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)}var r=n(0),o=n(2);n(84)(i,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var s=n(17),a=n(18),u=n(15),i=n(0),l=n(5),c=n(2);i(i.S,"Reflect",{get:function t(e,n){var i,r,o=arguments.length<3?e:arguments[2];return c(e)===o?e[n]:(i=s.f(e,n))?u(i,"value")?i.value:void 0!==i.get?i.get.call(o):void 0:l(r=a(e))?t(r,n,o):void 0}})},function(t,e,n){var i=n(17),r=n(0),o=n(2);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},function(t,e,n){var i=n(0),r=n(18),o=n(2);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,n){var i=n(0);i(i.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var i=n(0),r=n(2),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,n){var i=n(0);i(i.S,"Reflect",{ownKeys:n(129)})},function(t,e,n){var i=n(0),r=n(2),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var u=n(9),l=n(17),c=n(18),f=n(15),i=n(0),h=n(34),d=n(2),p=n(5);i(i.S,"Reflect",{set:function t(e,n,i){var r,o,s=arguments.length<4?e:arguments[3],a=l.f(d(e),n);if(!a){if(p(o=c(e)))return t(o,n,i,s);a=h(0)}if(f(a,"value")){if(!1===a.writable||!p(s))return!1;if(r=l.f(s,n)){if(r.get||r.set||!1===r.writable)return!1;r.value=i,u.f(s,n,r)}else u.f(s,n,h(0,i));return!0}return void 0!==a.set&&(a.set.call(s,i),!0)}})},function(t,e,n){var i=n(0),r=n(77);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(0),r=n(56)(!0);i(i.P,"Array",{includes:function(t,e){return r(this,t,1<arguments.length?e:void 0)}}),n(33)("includes")},function(t,e,n){"use strict";var i=n(0),o=n(130),s=n(10),a=n(7),u=n(11),l=n(90);i(i.P,"Array",{flatMap:function(t,e){var n,i,r=s(this);return u(t),n=a(r.length),i=l(r,0),o(i,r,r,n,0,1,t,e),i}}),n(33)("flatMap")},function(t,e,n){"use strict";var i=n(0),o=n(130),s=n(10),a=n(7),u=n(23),l=n(90);i(i.P,"Array",{flatten:function(t){var e=t,n=s(this),i=a(n.length),r=l(n,0);return o(r,n,n,i,0,void 0===e?1:u(e)),r}}),n(33)("flatten")},function(t,e,n){"use strict";var i=n(0),r=n(59)(!0);i(i.P,"String",{at:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(0),r=n(131),o=n(64),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*s,"String",{padStart:function(t,e){return r(this,t,1<arguments.length?e:void 0,!0)}})},function(t,e,n){"use strict";var i=n(0),r=n(131),o=n(64),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*s,"String",{padEnd:function(t,e){return r(this,t,1<arguments.length?e:void 0,!1)}})},function(t,e,n){"use strict";n(47)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(47)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";function r(t,e){this._r=t,this._s=e}var i=n(0),o=n(26),s=n(7),a=n(60),u=n(52),l=RegExp.prototype;n(84)(r,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),i(i.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in l?String(t.flags):u.call(t),i=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=s(t.lastIndex),new r(i,e)}})},function(t,e,n){n(73)("asyncIterator")},function(t,e,n){n(73)("observable")},function(t,e,n){var i=n(0),u=n(129),l=n(16),c=n(17),f=n(88);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=l(t),r=c.f,o=u(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&f(s,e,n);return s}})},function(t,e,n){var i=n(0),r=n(132)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},function(t,e,n){var i=n(0),r=n(132)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(0),r=n(10),o=n(11),s=n(9);n(8)&&i(i.P+n(67),"Object",{__defineGetter__:function(t,e){s.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(0),r=n(10),o=n(11),s=n(9);n(8)&&i(i.P+n(67),"Object",{__defineSetter__:function(t,e){s.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(0),r=n(10),o=n(25),s=n(18),a=n(17).f;n(8)&&i(i.P+n(67),"Object",{__lookupGetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=a(n,i))return e.get}while(n=s(n))}})},function(t,e,n){"use strict";var i=n(0),r=n(10),o=n(25),s=n(18),a=n(17).f;n(8)&&i(i.P+n(67),"Object",{__lookupSetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=a(n,i))return e.set}while(n=s(n))}})},function(t,e,n){var i=n(0);i(i.P+i.R,"Map",{toJSON:n(133)("Map")})},function(t,e,n){var i=n(0);i(i.P+i.R,"Set",{toJSON:n(133)("Set")})},function(t,e,n){n(68)("Map")},function(t,e,n){n(68)("Set")},function(t,e,n){n(68)("WeakMap")},function(t,e,n){n(68)("WeakSet")},function(t,e,n){n(69)("Map")},function(t,e,n){n(69)("Set")},function(t,e,n){n(69)("WeakMap")},function(t,e,n){n(69)("WeakSet")},function(t,e,n){var i=n(0);i(i.G,{global:n(3)})},function(t,e,n){var i=n(0);i(i.S,"System",{global:n(3)})},function(t,e,n){var i=n(0),r=n(22);i(i.S,"Error",{isError:function(t){return"Error"===r(t)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var i=n(0),r=180/Math.PI;i(i.S,"Math",{degrees:function(t){return t*r}})},function(t,e,n){var i=n(0),o=n(135),s=n(114);i(i.S,"Math",{fscale:function(t,e,n,i,r){return s(o(t,e,n,i,r))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},function(t,e,n){var i=n(0);i(i.S,"Math",{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},function(t,e,n){var i=n(0);i(i.S,"Math",{imulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>16,a=i>>16,u=(s*o>>>0)+(r*o>>>16);return s*a+(u>>16)+((r*a>>>0)+(65535&u)>>16)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var i=n(0),r=Math.PI/180;i(i.S,"Math",{radians:function(t){return t*r}})},function(t,e,n){var i=n(0);i(i.S,"Math",{scale:n(135)})},function(t,e,n){var i=n(0);i(i.S,"Math",{umulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>>16,a=i>>>16,u=(s*o>>>0)+(r*o>>>16);return s*a+(u>>>16)+((r*a>>>0)+(65535&u)>>>16)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:0<t}})},function(t,e,n){"use strict";var i=n(0),r=n(20),o=n(3),s=n(53),a=n(122);i(i.P+i.R,"Promise",{finally:function(e){var n=s(this,r.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return a(n,e()).then(function(){return t})}:e,t?function(t){return a(n,e()).then(function(){throw t})}:e)}})},function(t,e,n){"use strict";var i=n(0),r=n(97),o=n(121);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var i=n(30),r=n(2),o=i.key,s=i.set;i.exp({defineMetadata:function(t,e,n,i){s(t,e,r(n),o(i))}})},function(t,e,n){var i=n(30),s=n(2),a=i.key,u=i.map,l=i.store;i.exp({deleteMetadata:function(t,e,n){var i=arguments.length<3?void 0:a(n),r=u(s(e),i,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var o=l.get(e);return o.delete(i),!!o.size||l.delete(e)}})},function(t,e,n){var i=n(30),r=n(2),o=n(18),s=i.has,a=i.get,u=i.key,l=function(t,e,n){if(s(t,e,n))return a(t,e,n);var i=o(e);return null!==i?l(t,i,n):void 0};i.exp({getMetadata:function(t,e,n){return l(t,r(e),arguments.length<3?void 0:u(n))}})},function(t,e,n){var o=n(125),s=n(134),i=n(30),r=n(2),a=n(18),u=i.keys,l=i.key,c=function(t,e){var n=u(t,e),i=a(t);if(null===i)return n;var r=c(i,e);return r.length?n.length?s(new o(n.concat(r))):r:n};i.exp({getMetadataKeys:function(t,e){return c(r(t),arguments.length<2?void 0:l(e))}})},function(t,e,n){var i=n(30),r=n(2),o=i.get,s=i.key;i.exp({getOwnMetadata:function(t,e,n){return o(t,r(e),arguments.length<3?void 0:s(n))}})},function(t,e,n){var i=n(30),r=n(2),o=i.keys,s=i.key;i.exp({getOwnMetadataKeys:function(t,e){return o(r(t),arguments.length<2?void 0:s(e))}})},function(t,e,n){var i=n(30),r=n(2),o=n(18),s=i.has,a=i.key,u=function(t,e,n){if(s(t,e,n))return!0;var i=o(e);return null!==i&&u(t,i,n)};i.exp({hasMetadata:function(t,e,n){return u(t,r(e),arguments.length<3?void 0:a(n))}})},function(t,e,n){var i=n(30),r=n(2),o=i.has,s=i.key;i.exp({hasOwnMetadata:function(t,e,n){return o(t,r(e),arguments.length<3?void 0:s(n))}})},function(t,e,n){var i=n(30),r=n(2),o=n(11),s=i.key,a=i.set;i.exp({metadata:function(n,i){return function(t,e){a(n,i,(void 0!==e?r:o)(t),s(e))}}})},function(t,e,n){var i=n(0),r=n(96)(),o=n(3).process,s="process"==n(22)(o);i(i.G,{asap:function(t){var e=s&&o.domain;r(e?e.bind(t):t)}})},function(t,e,n){"use strict";function r(t){return null==t?void 0:d(t)}function o(t){var e=t._c;e&&(t._c=void 0,e())}function s(t){return void 0===t._o}function a(t){s(t)||(t._o=void 0,o(t))}function i(e,t){p(e),this._c=void 0,this._o=e,e=new x(this);try{var n=t(e),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:d(n),this._c=n)}catch(t){return void e.error(t)}s(this)&&o(this)}var u=n(0),l=n(3),c=n(20),f=n(96)(),h=n(6)("observable"),d=n(11),p=n(2),m=n(41),g=n(43),v=n(12),y=n(42),_=y.RETURN;i.prototype=g({},{unsubscribe:function(){a(this)}});var x=function(t){this._s=t};x.prototype=g({},{next:function(t){var e=this._s;if(!s(e)){var n=e._o;try{var i=r(n.next);if(i)return i.call(n,t)}catch(t){try{a(e)}finally{throw t}}}},error:function(t){var e=this._s;if(s(e))throw t;var n=e._o;e._o=void 0;try{var i=r(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{o(e)}finally{throw t}}return o(e),t},complete:function(t){var e=this._s;if(!s(e)){var n=e._o;e._o=void 0;try{var i=r(n.complete);t=i?i.call(n,t):void 0}catch(t){try{o(e)}finally{throw t}}return o(e),t}}});var b=function(t){m(this,b,"Observable","_f")._f=d(t)};g(b.prototype,{subscribe:function(t){return new i(t,this._f)},forEach:function(i){var r=this;return new(c.Promise||l.Promise)(function(t,e){d(i);var n=r.subscribe({next:function(t){try{return i(t)}catch(t){e(t),n.unsubscribe()}},error:e,complete:t})})}}),g(b,{from:function(t){var e="function"==typeof this?this:b,n=r(p(t)[h]);if(n){var i=p(n.call(t));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}return new e(function(e){var n=!1;return f(function(){if(!n){try{if(y(t,!1,function(t){if(e.next(t),n)return _})===_)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:b)(function(e){var n=!1;return f(function(){if(!n){for(var t=0;t<i.length;++t)if(e.next(i[t]),n)return;e.complete()}}),function(){n=!0}})}}),v(b.prototype,h,function(){return this}),u(u.G,{Observable:b}),n(40)("Observable")},function(t,e,n){function i(r){return function(t,e){var n=2<arguments.length,i=n&&a.call(arguments,2);return r(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,e)}}var r=n(3),o=n(0),s=n(64),a=[].slice,u=/MSIE .\./.test(s);o(o.G+o.B+o.F*u,{setTimeout:i(r.setTimeout),setInterval:i(r.setInterval)})},function(t,e,n){var i=n(0),r=n(95);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,n){for(var i=n(92),r=n(36),o=n(13),s=n(3),a=n(12),u=n(48),l=n(6),c=l("iterator"),f=l("toStringTag"),h=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),m=0;m<p.length;m++){var g,v=p[m],y=d[v],_=s[v],x=_&&_.prototype;if(x&&(x[c]||a(x,c,h),x[f]||a(x,f,v),u[v]=h,y))for(g in i)x[g]||o(x,g,i[g],!0)}},function(A,t,e){(function(t){!function(t){"use strict";var u,e=Object.prototype,l=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag",s="object"==typeof A,a=t.regeneratorRuntime;if(a)s&&(A.exports=a);else{(a=t.regeneratorRuntime=s?A.exports:{}).wrap=_;var c="suspendedStart",f="suspendedYield",h="executing",d="completed",p={},m={};m[r]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(I([])));v&&v!==e&&l.call(v,r)&&(m=v);var y=S.prototype=b.prototype=Object.create(m);w.prototype=y.constructor=S,S.constructor=w,S[o]=w.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,o in t||(t[o]="GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},T(E.prototype),E.prototype[i]=function(){return this},a.AsyncIterator=E,a.async=function(t,e,n,i){var r=new E(_(t,e,n,i));return a.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},T(y),y[o]="Generator",y[r]=function(){return this},y.toString=function(){return"[object Generator]"},a.keys=function(n){var i=[];for(var t in n)i.push(t);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=I,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function t(t,e){return o.type="throw",o.arg=n,i.next=t,e&&(i.method="next",i.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],o=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=l.call(r,"catchLoc"),a=l.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&l.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=u),p}}}function _(t,e,n,i){var r=e&&e.prototype instanceof b?e:b,o=Object.create(r.prototype),s=new k(i||[]);return o._invoke=function(o,s,a){var u=c;return function(t,e){if(u===h)throw new Error("Generator is already running");if(u===d){if("throw"===t)throw e;return M()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var i=P(n,a);if(i){if(i===p)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===c)throw u=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=h;var r=x(o,s,a);if("normal"===r.type){if(u=a.done?d:f,r.arg===p)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(u=d,a.method="throw",a.arg=r.arg)}}}(t,n,s),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function b(){}function w(){}function S(){}function T(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(a){function u(t,e,n,i){var r=x(a[t],a,e);if("throw"!==r.type){var o=r.arg,s=o.value;return s&&"object"==typeof s&&l.call(s,"__await")?Promise.resolve(s.__await).then(function(t){u("next",t,n,i)},function(t){u("throw",t,n,i)}):Promise.resolve(s).then(function(t){o.value=t,n(o)},i)}i(r.arg)}var e;"object"==typeof t.process&&t.process.domain&&(u=t.process.domain.bind(u)),this._invoke=function(n,i){function t(){return new Promise(function(t,e){u(n,i,t,e)})}return e=e?e.then(t,t):t()}}function P(t,e){var n=t.iterator[e.method];if(n===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,P(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=x(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,p):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function I(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=u,t.done=!0,t};return i.next=i}}return{next:M}}function M(){return{value:u,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,e(71))},function(t,e,n){n(346),t.exports=n(20).RegExp.escape},function(t,e,n){var i=n(0),r=n(347)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},function(t,e){t.exports=function(e,n){var i=n===Object(n)?function(t){return n[t]}:n;return function(t){return String(t).replace(e,i)}}},function(i,r,o){(function(u,l){var e,n;/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
|
|
88
|
-
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
|
|
89
|
-
!function(e){"use strict";if(!u){var c=function(t,e){return new c.fn.init(t,e)};c.isWindow=function(t){return t&&t===t.window},c.type=function(t){return t?"object"==typeof t||"function"==typeof t?n[r.call(t)]||"object":typeof t:t+""},c.isArray=Array.isArray||function(t){return"array"===c.type(t)},c.isPlainObject=function(t){var e;if(!t||"object"!==c.type(t)||t.nodeType||c.isWindow(t))return!1;try{if(t.constructor&&!i.call(t,"constructor")&&!i.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||i.call(t,e)},c.each=function(t,e,n){var i=0,r=t.length,o=a(t);if(n){if(o)for(;i<r&&!1!==e.apply(t[i],n);i++);else for(i in t)if(t.hasOwnProperty(i)&&!1===e.apply(t[i],n))break}else if(o)for(;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(t.hasOwnProperty(i)&&!1===e.call(t[i],i,t[i]))break;return t},c.data=function(t,e,n){if(void 0===n){var i=t[c.expando],r=i&&s[i];if(void 0===e)return r;if(r&&e in r)return r[e]}else if(void 0!==e){var o=t[c.expando]||(t[c.expando]=++c.uuid);return s[o]=s[o]||{},s[o][e]=n}},c.removeData=function(t,e){var n=t[c.expando],i=n&&s[n];i&&(e?c.each(e,function(t,e){delete i[e]}):delete s[n])},c.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"!=typeof s&&"function"!==c.type(s)&&(s={}),a===u&&(s=this,a--);a<u;a++)if(r=arguments[a])for(i in r)r.hasOwnProperty(i)&&(t=s[i],s!==(n=r[i])&&(l&&n&&(c.isPlainObject(n)||(e=c.isArray(n)))?(o=e?(e=!1,t&&c.isArray(t)?t:[]):t&&c.isPlainObject(t)?t:{},s[i]=c.extend(l,o,n)):void 0!==n&&(s[i]=n)));return s},c.queue=function(t,e,n){if(t){e=(e||"fx")+"queue";var i=c.data(t,e);return n?(!i||c.isArray(n)?i=c.data(t,e,function(t,e){var n=e||[];return t&&(a(Object(t))?function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[r++]=e[i++];t.length=r}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}(n)):i.push(n),i):i||[]}},c.dequeue=function(t,r){c.each(t.nodeType?[t]:t,function(t,e){r=r||"fx";var n=c.queue(e,r),i=n.shift();"inprogress"===i&&(i=n.shift()),i&&("fx"===r&&n.unshift("inprogress"),i.call(e,function(){c.dequeue(e,r)}))})},c.fn=c.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var t=this[0],e=function(t){for(var e=t.offsetParent;e&&"html"!==e.nodeName.toLowerCase()&&e.style&&"static"===e.style.position.toLowerCase();)e=e.offsetParent;return e||document}(t),n=this.offset(),i=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:c(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(i.top+=parseFloat(e.style.borderTopWidth)||0,i.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-i.top,left:n.left-i.left}}};var s={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var n={},i=n.hasOwnProperty,r=n.toString,t="Boolean Number String Function Array Date RegExp Object Error".split(" "),o=0;o<t.length;o++)n["[object "+t[o]+"]"]=t[o].toLowerCase();c.fn.init.prototype=c.fn,e.Velocity={Utilities:c}}function a(t){var e=t.length,n=c.type(t);return"function"!==n&&!c.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t))}}(window),function(t){"use strict";"object"==typeof i.exports?i.exports=t():void 0===(n="function"==typeof(e=t)?e.call(r,o,r,i):e)||(i.exports=n)}(function(){"use strict";return function(t,j,D,B){var L=function(){if(D.documentMode)return D.documentMode;for(var t=7;4<t;t--){var e=D.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return B}(),e=function(){var i=0;return j.webkitRequestAnimationFrame||j.mozRequestAnimationFrame||function(t){var e,n=(new Date).getTime();return e=Math.max(0,16-(n-i)),i=n+e,setTimeout(function(){t(n+e)},e)}}(),C=function(){var t=j.performance||{};if("function"!=typeof t.now){var e=t.timing&&t.timing.navigationStart?t.timing.navigationStart:(new Date).getTime();t.now=function(){return(new Date).getTime()-e}}return t}();function I(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return 0<=t.indexOf(e)}:function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}}var n=function(){var a=Array.prototype.slice;try{return a.call(D.documentElement),a}catch(t){return function(t,e){var n=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof e&&(e=n),this.slice)return a.call(this,t,e);var i,r=[],o=0<=t?t:Math.max(0,n+t),s=(e<0?n+e:Math.min(e,n))-o;if(0<s)if(r=new Array(s),this.charAt)for(i=0;i<s;i++)r[i]=this.charAt(o+i);else for(i=0;i<s;i++)r[i]=this[o+i];return r}}}();function m(t){return Z.isWrapped(t)?t=n.call(t):Z.isNode(t)&&(t=[t]),t}var q,Z={isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==j&&Z.isNumber(t.length)&&!Z.isString(t)&&!Z.isFunction(t)&&!Z.isNode(t)&&(0===t.length||Z.isNode(t[0]))},isSVG:function(t){return j.SVGElement&&t instanceof j.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},i=!1;if(t.fn&&t.fn.jquery?(q=t,i=!0):q=j.Velocity.Utilities,L<=8&&!i)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(L<=7)){var r="swing",H={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(j.navigator.userAgent),isAndroid:/Android/i.test(j.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(j.navigator.userAgent),isChrome:j.chrome,isFirefox:/Firefox/i.test(j.navigator.userAgent),prefixElement:D.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:q,Redirects:{},Easings:{},Promise:j.Promise,defaults:{queue:"",duration:400,easing:r,begin:B,complete:B,progress:B,display:B,visibility:B,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(t){q.data(t,"velocity",{isSVG:Z.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(n){var i=(new Date).getTime();q.each(H.State.calls,function(t,e){if(e){if(n!==B&&(e[2].queue!==n||!1===e[2].queue))return!0;e[5]={resume:!1}}}),q.each(H.State.delayedElements,function(t,e){e&&v(e,i)})},resumeAll:function(n){var i=(new Date).getTime();q.each(H.State.calls,function(t,e){if(e){if(n!==B&&(e[2].queue!==n||!1===e[2].queue))return!0;e[5]&&(e[5].resume=!0)}}),q.each(H.State.delayedElements,function(t,e){e&&y(e,i)})}};j.pageYOffset!==B?(H.State.scrollAnchor=j,H.State.scrollPropertyLeft="pageXOffset",H.State.scrollPropertyTop="pageYOffset"):(H.State.scrollAnchor=D.documentElement||D.body.parentNode||D.body,H.State.scrollPropertyLeft="scrollLeft",H.State.scrollPropertyTop="scrollTop");var o=function(){function u(t){return-t.tension*t.x-t.friction*t.v}function l(t,e,n){var i={x:t.x+n.dx*e,v:t.v+n.dv*e,tension:t.tension,friction:t.friction};return{dx:i.v,dv:u(i)}}function c(t,e){var n={dx:t.v,dv:u(t)},i=l(t,.5*e,n),r=l(t,.5*e,i),o=l(t,e,r),s=1/6*(n.dx+2*(i.dx+r.dx)+o.dx),a=1/6*(n.dv+2*(i.dv+r.dv)+o.dv);return t.x=t.x+s*e,t.v=t.v+a*e,t}return function t(e,n,i){var r,o,s,a={x:-1,v:0,tension:null,friction:null},u=[0],l=0;for(e=parseFloat(e)||500,n=parseFloat(n)||20,i=i||null,a.tension=e,a.friction=n,o=(r=null!==i)?(l=t(e,n))/i*.016:.016;s=c(s||a,o),u.push(1+s.x),l+=16,1e-4<Math.abs(s.x)&&1e-4<Math.abs(s.v););return r?function(t){return u[t*(u.length-1)|0]}:l}}();H.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},q.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){H.Easings[e[0]]=a.apply(null,e[1])});var V=H.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<V.Lists.colors.length;t++){var e="color"===V.Lists.colors[t]?"0 0 0 1":"255 255 255 1";V.Hooks.templates[V.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,i,r;if(L)for(n in V.Hooks.templates)if(V.Hooks.templates.hasOwnProperty(n)){r=(i=V.Hooks.templates[n])[0].split(" ");var o=i[1].match(V.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),o.push(o.shift()),V.Hooks.templates[n]=[r.join(" "),o.join(" ")])}for(n in V.Hooks.templates)if(V.Hooks.templates.hasOwnProperty(n))for(var s in r=(i=V.Hooks.templates[n])[0].split(" "))if(r.hasOwnProperty(s)){var a=n+r[s],u=s;V.Hooks.registered[a]=[n,u]}},getRoot:function(t){var e=V.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var n=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&I(V.Lists.units)?n:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,n){return V.Lists.colorNames.hasOwnProperty(n)?(e||"rgba(")+V.Lists.colorNames[n]+(e?"":",1)"):e+n})},cleanRootPropertyValue:function(t,e){return V.RegEx.valueUnwrap.test(e)&&(e=e.match(V.RegEx.valueUnwrap)[1]),V.Values.isCSSNullValue(e)&&(e=V.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=V.Hooks.registered[t];if(n){var i=n[0],r=n[1];return(e=V.Hooks.cleanRootPropertyValue(i,e)).toString().match(V.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,n){var i=V.Hooks.registered[t];if(i){var r,o=i[0],s=i[1];return(r=(n=V.Hooks.cleanRootPropertyValue(o,n)).toString().match(V.RegEx.valueSplit))[s]=e,r.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return i=V.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(i=n.toString().match(V.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return H.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(L<=8)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return(e.style.zoom=1)<=parseFloat(n)?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){L&&!(9<L)||H.State.isGingerbread||(V.Lists.transformsBase=V.Lists.transformsBase.concat(V.Lists.transforms3D));for(var t=0;t<V.Lists.transformsBase.length;t++)!function(){var r=V.Lists.transformsBase[t];V.Normalizations.registered[r]=function(t,e,n){switch(t){case"name":return"transform";case"extract":return W(e)===B||W(e).transformCache[r]===B?/^scale/i.test(r)?1:0:W(e).transformCache[r].replace(/[()]/g,"");case"inject":var i=!1;switch(r.substr(0,r.length-1)){case"translate":i=!/(%|px|em|rem|vw|vh|\d)$/i.test(n);break;case"scal":case"scale":H.State.isAndroid&&W(e).transformCache[r]===B&&n<1&&(n=1),i=!/(\d)$/i.test(n);break;case"skew":case"rotate":i=!/(deg|\d)$/i.test(n)}return i||(W(e).transformCache[r]="("+n+")"),W(e).transformCache[r]}}}();for(var e=0;e<V.Lists.colors.length;e++)!function(){var s=V.Lists.colors[e];V.Normalizations.registered[s]=function(t,e,n){switch(t){case"name":return s;case"extract":var i;if(V.RegEx.wrappedValueAlreadyExtracted.test(n))i=n;else{var r,o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(n)?r=o[n]!==B?o[n]:o.black:V.RegEx.isHex.test(n)?r="rgb("+V.Values.hexToRgb(n).join(" ")+")":/^rgba?\(/i.test(n)||(r=o.black),i=(r||n).toString().match(V.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!L||8<L)&&3===i.split(" ").length&&(i+=" 1"),i;case"inject":return/^rgb/.test(n)?n:(L<=8?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(L<=8?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function o(t,e,n){if("border-box"===V.getPropertyValue(e,"boxSizing").toString().toLowerCase()!==(n||!1))return 0;var i,r,o=0,s="width"===t?["Left","Right"]:["Top","Bottom"],a=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(i=0;i<a.length;i++)r=parseFloat(V.getPropertyValue(e,a[i])),isNaN(r)||(o+=r);return n?-o:o}function n(i,r){return function(t,e,n){switch(t){case"name":return i;case"extract":return parseFloat(n)+o(i,e,r);case"inject":return parseFloat(n)-o(i,e,r)+"px"}}}V.Normalizations.registered.innerWidth=n("width",!0),V.Normalizations.registered.innerHeight=n("height",!0),V.Normalizations.registered.outerWidth=n("width"),V.Normalizations.registered.outerHeight=n("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(L||H.State.isAndroid&&!H.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(H.State.prefixMatches[t])return[H.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;n<i;n++){var r;if(r=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),Z.isString(H.State.prefixElement.style[r]))return[H.State.prefixMatches[t]=r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){if(t)if(t.classList)t.classList.add(e);else if(Z.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var n=t.getAttribute(L<=7?"className":"class")||"";t.setAttribute("class",n+(n?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(Z.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=t.getAttribute(L<=7?"className":"class")||"";t.setAttribute("class",n.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,e,n,l){function c(t,e){var n=0;if(L<=8)n=q.css(t,e);else{var i=!1;/^(width|height)$/.test(e)&&0===V.getPropertyValue(t,"display")&&(i=!0,V.setPropertyValue(t,"display",V.Values.getDisplayType(t)));var r,o=function(){i&&V.setPropertyValue(t,"display","none")};if(!l){if("height"===e&&"border-box"!==V.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var s=t.offsetHeight-(parseFloat(V.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(V.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(V.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(V.getPropertyValue(t,"paddingBottom"))||0);return o(),s}if("width"===e&&"border-box"!==V.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var a=t.offsetWidth-(parseFloat(V.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(V.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(V.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(V.getPropertyValue(t,"paddingRight"))||0);return o(),a}}r=W(t)===B?j.getComputedStyle(t,null):W(t).computedStyle?W(t).computedStyle:W(t).computedStyle=j.getComputedStyle(t,null),"borderColor"===e&&(e="borderTopColor"),""!==(n=9===L&&"filter"===e?r.getPropertyValue(e):r[e])&&null!==n||(n=t.style[e]),o()}if("auto"===n&&/^(top|right|bottom|left)$/i.test(e)){var u=c(t,"position");("fixed"===u||"absolute"===u&&/top|left/i.test(e))&&(n=q(t).position()[e]+"px")}return n}var i;if(V.Hooks.registered[e]){var r=e,o=V.Hooks.getRoot(r);n===B&&(n=V.getPropertyValue(t,V.Names.prefixCheck(o)[0])),V.Normalizations.registered[o]&&(n=V.Normalizations.registered[o]("extract",t,n)),i=V.Hooks.extractValue(r,n)}else if(V.Normalizations.registered[e]){var s,a;"transform"!==(s=V.Normalizations.registered[e]("name",t))&&(a=c(t,V.Names.prefixCheck(s)[0]),V.Values.isCSSNullValue(a)&&V.Hooks.templates[e]&&(a=V.Hooks.templates[e][1])),i=V.Normalizations.registered[e]("extract",t,a)}if(!/^[\d-]/.test(i)){var u=W(t);if(u&&u.isSVG&&V.Names.SVGAttribute(e))if(/^(height|width)$/i.test(e))try{i=t.getBBox()[e]}catch(t){i=0}else i=t.getAttribute(e);else i=c(t,V.Names.prefixCheck(e)[0])}return V.Values.isCSSNullValue(i)&&(i=0),2<=H.debug&&console.log("Get "+e+": "+i),i},setPropertyValue:function(t,e,n,i,r){var o=e;if("scroll"===e)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?j.scrollTo(n,r.alternateValue):j.scrollTo(r.alternateValue,n);else if(V.Normalizations.registered[e]&&"transform"===V.Normalizations.registered[e]("name",t))V.Normalizations.registered[e]("inject",t,n),o="transform",n=W(t).transformCache[e];else{if(V.Hooks.registered[e]){var s=e,a=V.Hooks.getRoot(e);i=i||V.getPropertyValue(t,a),n=V.Hooks.injectValue(s,n,i),e=a}if(V.Normalizations.registered[e]&&(n=V.Normalizations.registered[e]("inject",t,n),e=V.Normalizations.registered[e]("name",t)),o=V.Names.prefixCheck(e)[0],L<=8)try{t.style[o]=n}catch(t){H.debug&&console.log("Browser does not support ["+n+"] for ["+o+"]")}else{var u=W(t);u&&u.isSVG&&V.Names.SVGAttribute(e)?t.setAttribute(e,n):t.style[o]=n}2<=H.debug&&console.log("Set "+e+" ("+o+"): "+n)}return[o,n]},flushTransformCache:function(e){var n="",t=W(e);if((L||H.State.isAndroid&&!H.State.isChrome)&&t&&t.isSVG){var i=function(t){return parseFloat(V.getPropertyValue(e,t))},r={translate:[i("translateX"),i("translateY")],skewX:[i("skewX")],skewY:[i("skewY")],scale:1!==i("scale")?[i("scale"),i("scale")]:[i("scaleX"),i("scaleY")],rotate:[i("rotateZ"),0,0]};q.each(W(e).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(n+=t+"("+r[t].join(" ")+") ",delete r[t])})}else{var o,s;q.each(W(e).transformCache,function(t){if(o=W(e).transformCache[t],"transformPerspective"===t)return s=o,!0;9===L&&"rotateZ"===t&&(t="rotate"),n+=t+o+" "}),s&&(n="perspective"+s+" "+n)}V.setPropertyValue(e,"transform",n)}};V.Hooks.register(),V.Normalizations.register(),H.hook=function(t,i,r){var o;return t=m(t),q.each(t,function(t,e){if(W(e)===B&&H.init(e),r===B)o===B&&(o=V.getPropertyValue(e,i));else{var n=V.setPropertyValue(e,i,r);"transform"===n[0]&&H.CSS.flushTransformCache(e),o=n}}),o};var g=function(){var n;function t(){return e?E.promise||null:i}var e,i,r,w,S,T,o=arguments[0]&&(arguments[0].p||q.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||Z.isString(arguments[0].properties));Z.isWrapped(this)?(e=!1,r=0,i=w=this):(e=!0,r=1,w=o?arguments[0].elements||arguments[0].e:arguments[0]);var E={promise:null,resolver:null,rejecter:null};if(e&&H.Promise&&(E.promise=new H.Promise(function(t,e){E.resolver=t,E.rejecter=e})),T=o?(S=arguments[0].properties||arguments[0].p,arguments[0].options||arguments[0].o):(S=arguments[r],arguments[r+1]),w=m(w)){var P,L=w.length,C=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(S)&&!q.isPlainObject(T)){T={};for(var s=r+1;s<arguments.length;s++)Z.isArray(arguments[s])||!/^(fast|normal|slow)$/i.test(arguments[s])&&!/^\d/.test(arguments[s])?Z.isString(arguments[s])||Z.isArray(arguments[s])?T.easing=arguments[s]:Z.isFunction(arguments[s])&&(T.complete=arguments[s]):T.duration=arguments[s]}switch(S){case"scroll":P="scroll";break;case"reverse":P="reverse";break;case"pause":var a=(new Date).getTime();return q.each(w,function(t,e){v(e,a)}),q.each(H.State.calls,function(t,i){var r=!1;i&&q.each(i[1],function(t,n){var e=T===B?"":T;return!0!==e&&i[2].queue!==e&&(T!==B||!1!==i[2].queue)||(q.each(w,function(t,e){if(e===n)return i[5]={resume:!1},!(r=!0)}),!r&&void 0)})}),t();case"resume":return q.each(w,function(t,e){y(e)}),q.each(H.State.calls,function(t,i){var r=!1;i&&q.each(i[1],function(t,n){var e=T===B?"":T;return!0!==e&&i[2].queue!==e&&(T!==B||!1!==i[2].queue)||(!i[5]||(q.each(w,function(t,e){if(e===n)return i[5].resume=!0,!(r=!0)}),!r&&void 0))})}),t();case"finish":case"finishAll":case"stop":q.each(w,function(t,e){W(e)&&W(e).delayTimer&&(clearTimeout(W(e).delayTimer.setTimeout),W(e).delayTimer.next&&W(e).delayTimer.next(),delete W(e).delayTimer),"finishAll"!==S||!0!==T&&!Z.isString(T)||(q.each(q.queue(e,Z.isString(T)?T:""),function(t,e){Z.isFunction(e)&&e()}),q.queue(e,Z.isString(T)?T:"",[]))});var u=[];return q.each(H.State.calls,function(o,s){s&&q.each(s[1],function(t,i){var r=T===B?"":T;if(!0!==r&&s[2].queue!==r&&(T!==B||!1!==s[2].queue))return!0;q.each(w,function(t,e){if(e===i)if(!0!==T&&!Z.isString(T)||(q.each(q.queue(e,Z.isString(T)?T:""),function(t,e){Z.isFunction(e)&&e(null,!0)}),q.queue(e,Z.isString(T)?T:"",[])),"stop"===S){var n=W(e);n&&n.tweensContainer&&(!0===r||""===r)&&q.each(n.tweensContainer,function(t,e){e.endValue=e.currentValue}),u.push(o)}else"finish"!==S&&"finishAll"!==S||(s[2].duration=1)})})}),"stop"===S&&(q.each(u,function(t,e){M(e,!0)}),E.promise&&E.resolver(w)),t();default:if(!q.isPlainObject(S)||Z.isEmptyObject(S)){if(Z.isString(S)&&H.Redirects[S]){var l=(n=q.extend({},T)).duration,c=n.delay||0;return!0===n.backwards&&(w=q.extend(!0,[],w).reverse()),q.each(w,function(t,e){parseFloat(n.stagger)?n.delay=c+parseFloat(n.stagger)*t:Z.isFunction(n.stagger)&&(n.delay=c+n.stagger.call(e,t,L)),n.drag&&(n.duration=parseFloat(l)||(/^(callout|transition)/.test(S)?1e3:400),n.duration=Math.max(n.duration*(n.backwards?1-t/L:(t+1)/L),.75*n.duration,200)),H.Redirects[S].call(e,e,n||{},t,L,w,E.promise?E:B)}),t()}var f="Velocity: First argument ("+S+") was not a property map, a known action, or a registered redirect. Aborting.";return E.promise?E.rejecter(new Error(f)):j.console&&console.log(f),t()}P="start"}var F={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},k=[];q.each(w,function(t,e){Z.isNode(e)&&function(O,b){var N,z=q.extend({},H.defaults,T),R={};switch(W(O)===B&&H.init(O),parseFloat(z.delay)&&!1!==z.queue&&q.queue(O,z.queue,function(e,t){if(!0===t)return!0;H.velocityQueueEntryFlag=!0;var n=H.State.delayedElements.count++;H.State.delayedElements[n]=O;var i=function(t){return function(){H.State.delayedElements[t]=!1,e()}}(n);W(O).delayBegin=(new Date).getTime(),W(O).delay=parseFloat(z.delay),W(O).delayTimer={setTimeout:setTimeout(e,parseFloat(z.delay)),next:i}}),z.duration.toString().toLowerCase()){case"fast":z.duration=200;break;case"normal":z.duration=400;break;case"slow":z.duration=600;break;default:z.duration=parseFloat(z.duration)||1}function n(t){var M,A;if(z.begin&&0===C)try{z.begin.call(w,w)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===P){var e,n,i,r=/^x$/i.test(z.axis)?"Left":"Top",o=parseFloat(z.offset)||0;z.container?Z.isWrapped(z.container)||Z.isNode(z.container)?(z.container=z.container[0]||z.container,i=(e=z.container["scroll"+r])+q(O).position()[r.toLowerCase()]+o):z.container=null:(e=H.State.scrollAnchor[H.State["scrollProperty"+r]],n=H.State.scrollAnchor[H.State["scrollProperty"+("Left"===r?"Top":"Left")]],i=q(O).offset()[r.toLowerCase()]+o),R={scroll:{rootPropertyValue:!1,startValue:e,currentValue:e,endValue:i,unitType:"",easing:z.easing,scrollData:{container:z.container,direction:r,alternateValue:n}},element:O},H.debug&&console.log("tweensContainer (scroll): ",R.scroll,O)}else if("reverse"===P){if(!(M=W(O)))return;if(!M.tweensContainer)return void q.dequeue(O,z.queue);for(var s in"none"===M.opts.display&&(M.opts.display="auto"),"hidden"===M.opts.visibility&&(M.opts.visibility="visible"),M.opts.loop=!1,M.opts.begin=null,M.opts.complete=null,T.easing||delete z.easing,T.duration||delete z.duration,z=q.extend({},M.opts,z),A=q.extend(!0,{},M?M.tweensContainer:null))if(A.hasOwnProperty(s)&&"element"!==s){var a=A[s].startValue;A[s].startValue=A[s].currentValue=A[s].endValue,A[s].endValue=a,Z.isEmptyObject(T)||(A[s].easing=z.easing),H.debug&&console.log("reverse tweensContainer ("+s+"): "+JSON.stringify(A[s]),O)}R=A}else if("start"===P){(M=W(O))&&M.tweensContainer&&!0===M.isAnimating&&(A=M.tweensContainer);var u=function(t,e){var n,i,r;return Z.isFunction(t)&&(t=t.call(O,b,L)),Z.isArray(t)?(n=t[0],r=!Z.isArray(t[1])&&/^[\d-]/.test(t[1])||Z.isFunction(t[1])||V.RegEx.isHex.test(t[1])?t[1]:Z.isString(t[1])&&!V.RegEx.isHex.test(t[1])&&H.Easings[t[1]]||Z.isArray(t[1])?(i=e?t[1]:U(t[1],z.duration),t[2]):t[1]||t[2]):n=t,e||(i=i||z.easing),Z.isFunction(n)&&(n=n.call(O,b,L)),Z.isFunction(r)&&(r=r.call(O,b,L)),[n||0,i,r]},l=function(t,e){var n,i=V.Hooks.getRoot(t),r=!1,o=e[0],s=e[1],a=e[2];if(M&&M.isSVG||"tween"===i||!1!==V.Names.prefixCheck(i)[1]||V.Normalizations.registered[i]!==B){(z.display!==B&&null!==z.display&&"none"!==z.display||z.visibility!==B&&"hidden"!==z.visibility)&&/opacity|filter/.test(t)&&!a&&0!==o&&(a=0),z._cacheValues&&A&&A[t]?(a===B&&(a=A[t].endValue+A[t].unitType),r=M.rootPropertyValueCache[i]):V.Hooks.registered[t]?a===B?(r=V.getPropertyValue(O,i),a=V.getPropertyValue(O,t,r)):r=V.Hooks.templates[i][1]:a===B&&(a=V.getPropertyValue(O,t));var u,l,c,f=!1,h=function(t,e){var n;return[(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n=n||V.Values.getUnitType(t)]};if(a!==o&&Z.isString(a)&&Z.isString(o)){n="";var d=0,p=0,m=[],g=[],v=0,y=0,_=0;for(a=V.Hooks.fixColors(a),o=V.Hooks.fixColors(o);d<a.length&&p<o.length;){var x=a[d],b=o[p];if(/[\d\.-]/.test(x)&&/[\d\.-]/.test(b)){for(var w=x,S=b,T=".",E=".";++d<a.length;){if((x=a[d])===T)T="..";else if(!/\d/.test(x))break;w+=x}for(;++p<o.length;){if((b=o[p])===E)E="..";else if(!/\d/.test(b))break;S+=b}var P=V.Hooks.getUnit(a,d),L=V.Hooks.getUnit(o,p);if(d+=P.length,p+=L.length,P===L)w===S?n+=w+P:(n+="{"+m.length+(y?"!":"")+"}"+P,m.push(parseFloat(w)),g.push(parseFloat(S)));else{var C=parseFloat(w),k=parseFloat(S);n+=(v<5?"calc":"")+"("+(C?"{"+m.length+(y?"!":"")+"}":"0")+P+" + "+(k?"{"+(m.length+(C?1:0))+(y?"!":"")+"}":"0")+L+")",C&&(m.push(C),g.push(0)),k&&(m.push(0),g.push(k))}}else{if(x!==b){v=0;break}n+=x,d++,p++,0===v&&"c"===x||1===v&&"a"===x||2===v&&"l"===x||3===v&&"c"===x||4<=v&&"("===x?v++:(v&&v<5||4<=v&&")"===x&&--v<5)&&(v=0),0===y&&"r"===x||1===y&&"g"===x||2===y&&"b"===x||3===y&&"a"===x||3<=y&&"("===x?(3===y&&"a"===x&&(_=1),y++):_&&","===x?3<++_&&(y=_=0):(_&&y<(_?5:4)||(_?4:3)<=y&&")"===x&&--y<(_?5:4))&&(y=_=0)}}d===a.length&&p===o.length||(H.debug&&console.error('Trying to pattern match mis-matched strings ["'+o+'", "'+a+'"]'),n=B),n&&(m.length?(H.debug&&console.log('Pattern found "'+n+'" -> ',m,g,"["+a+","+o+"]"),a=m,o=g,l=c=""):n=B)}n||(a=(u=h(t,a))[0],c=u[1],o=(u=h(t,o))[0].replace(/^([+-\/*])=/,function(t,e){return f=e,""}),l=u[1],a=parseFloat(a)||0,o=parseFloat(o)||0,"%"===l&&(/^(fontSize|lineHeight)$/.test(t)?(o/=100,l="em"):/^scale/.test(t)?(o/=100,l=""):/(Red|Green|Blue)$/i.test(t)&&(o=o/100*255,l="")));if(/[\/*]/.test(f))l=c;else if(c!==l&&0!==a)if(0===o)l=c;else{N=N||function(){var t={myParent:O.parentNode||D.body,position:V.getPropertyValue(O,"position"),fontSize:V.getPropertyValue(O,"fontSize")},e=t.position===F.lastPosition&&t.myParent===F.lastParent,n=t.fontSize===F.lastFontSize;F.lastParent=t.myParent,F.lastPosition=t.position,F.lastFontSize=t.fontSize;var i={};if(n&&e)i.emToPx=F.lastEmToPx,i.percentToPxWidth=F.lastPercentToPxWidth,i.percentToPxHeight=F.lastPercentToPxHeight;else{var r=M&&M.isSVG?D.createElementNS("http://www.w3.org/2000/svg","rect"):D.createElement("div");H.init(r),t.myParent.appendChild(r),q.each(["overflow","overflowX","overflowY"],function(t,e){H.CSS.setPropertyValue(r,e,"hidden")}),H.CSS.setPropertyValue(r,"position",t.position),H.CSS.setPropertyValue(r,"fontSize",t.fontSize),H.CSS.setPropertyValue(r,"boxSizing","content-box"),q.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){H.CSS.setPropertyValue(r,e,"100%")}),H.CSS.setPropertyValue(r,"paddingLeft","100em"),i.percentToPxWidth=F.lastPercentToPxWidth=(parseFloat(V.getPropertyValue(r,"width",null,!0))||1)/100,i.percentToPxHeight=F.lastPercentToPxHeight=(parseFloat(V.getPropertyValue(r,"height",null,!0))||1)/100,i.emToPx=F.lastEmToPx=(parseFloat(V.getPropertyValue(r,"paddingLeft"))||1)/100,t.myParent.removeChild(r)}return null===F.remToPx&&(F.remToPx=parseFloat(V.getPropertyValue(D.body,"fontSize"))||16),null===F.vwToPx&&(F.vwToPx=parseFloat(j.innerWidth)/100,F.vhToPx=parseFloat(j.innerHeight)/100),i.remToPx=F.remToPx,i.vwToPx=F.vwToPx,i.vhToPx=F.vhToPx,1<=H.debug&&console.log("Unit ratios: "+JSON.stringify(i),O),i}();var I=/margin|padding|left|right|width|text|word|letter/i.test(t)||/X$/.test(t)||"x"===t?"x":"y";switch(c){case"%":a*="x"==I?N.percentToPxWidth:N.percentToPxHeight;break;case"px":break;default:a*=N[c+"ToPx"]}switch(l){case"%":a*=1/("x"==I?N.percentToPxWidth:N.percentToPxHeight);break;case"px":break;default:a*=1/N[l+"ToPx"]}}switch(f){case"+":o=a+o;break;case"-":o=a-o;break;case"*":o*=a;break;case"/":o=a/o}R[t]={rootPropertyValue:r,startValue:a,currentValue:a,endValue:o,unitType:l,easing:s},n&&(R[t].pattern=n),H.debug&&console.log("tweensContainer ("+t+"): "+JSON.stringify(R[t]),O)}else H.debug&&console.log("Skipping ["+i+"] due to a lack of browser support.")};for(var c in S)if(S.hasOwnProperty(c)){var f=V.Names.camelCase(c),h=u(S[c]);if(I(V.Lists.colors)){var d=h[0],p=h[1],m=h[2];if(V.RegEx.isHex.test(d)){for(var g=["Red","Green","Blue"],v=V.Values.hexToRgb(d),y=m?V.Values.hexToRgb(m):B,_=0;_<g.length;_++){var x=[v[_]];p&&x.push(p),y!==B&&x.push(y[_]),l(f+g[_],x)}continue}}l(f,h)}R.element=O}R.element&&(V.Values.addClass(O,"velocity-animating"),k.push(R),(M=W(O))&&(""===z.queue&&(M.tweensContainer=R,M.opts=z),M.isAnimating=!0),C===L-1?(H.State.calls.push([k,w,z,null,E.resolver,null,0]),!1===H.State.isTicking&&(H.State.isTicking=!0,Q())):C++)}if(!1!==H.mock&&(!0===H.mock?z.duration=z.delay=1:(z.duration*=parseFloat(H.mock)||1,z.delay*=parseFloat(H.mock)||1)),z.easing=U(z.easing,z.duration),z.begin&&!Z.isFunction(z.begin)&&(z.begin=null),z.progress&&!Z.isFunction(z.progress)&&(z.progress=null),z.complete&&!Z.isFunction(z.complete)&&(z.complete=null),z.display!==B&&null!==z.display&&(z.display=z.display.toString().toLowerCase(),"auto"===z.display&&(z.display=H.CSS.Values.getDisplayType(O))),z.visibility!==B&&null!==z.visibility&&(z.visibility=z.visibility.toString().toLowerCase()),z.mobileHA=z.mobileHA&&H.State.isMobile&&!H.State.isGingerbread,!1===z.queue)if(z.delay){var t=H.State.delayedElements.count++;H.State.delayedElements[t]=O;var e=function(t){return function(){H.State.delayedElements[t]=!1,n()}}(t);W(O).delayBegin=(new Date).getTime(),W(O).delay=parseFloat(z.delay),W(O).delayTimer={setTimeout:setTimeout(n,parseFloat(z.delay)),next:e}}else n();else q.queue(O,z.queue,function(t,e){if(!0===e)return E.promise&&E.resolver(w),!0;H.velocityQueueEntryFlag=!0,n()});""!==z.queue&&"fx"!==z.queue||"inprogress"===q.queue(O)[0]||q.dequeue(O)}(e,t)}),(n=q.extend({},H.defaults,T)).loop=parseInt(n.loop,10);var h=2*n.loop-1;if(n.loop)for(var d=0;d<h;d++){var p={delay:n.delay,progress:n.progress};d===h-1&&(p.display=n.display,p.visibility=n.visibility,p.complete=n.complete),g(w,"reverse",p)}return t()}E.promise&&(S&&T&&!1===T.promiseRejectEmpty?E.resolver():E.rejecter())};(H=q.extend(g,H)).animate=g;var k=j.requestAnimationFrame||e;if(!H.State.isMobile&&D.hidden!==B){var s=function(){D.hidden?(k=function(t){return setTimeout(function(){t(!0)},16)},Q()):k=j.requestAnimationFrame||e};s(),D.addEventListener("visibilitychange",s)}return t.Velocity=H,t!==j&&(t.fn.velocity=g,t.fn.velocity.defaults=H.defaults),q.each(["Down","Up"],function(t,f){H.Redirects["slide"+f]=function(n,t,i,e,r,o){var s=q.extend({},t),a=s.begin,u=s.complete,l={},c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};s.display===B&&(s.display="Down"===f?"inline"===H.CSS.Values.getDisplayType(n)?"inline-block":"block":"none"),s.begin=function(){for(var t in 0===i&&a&&a.call(r,r),c)if(c.hasOwnProperty(t)){l[t]=n.style[t];var e=V.getPropertyValue(n,t);c[t]="Down"===f?[e,0]:[0,e]}l.overflow=n.style.overflow,n.style.overflow="hidden"},s.complete=function(){for(var t in l)l.hasOwnProperty(t)&&(n.style[t]=l[t]);i===e-1&&(u&&u.call(r,r),o&&o.resolver(r))},H(n,c,s)}}),q.each(["In","Out"],function(t,l){H.Redirects["fade"+l]=function(t,e,n,i,r,o){var s=q.extend({},e),a=s.complete,u={opacity:"In"===l?1:0};0!==n&&(s.begin=null),s.complete=n!==i-1?null:function(){a&&a.call(r,r),o&&o.resolver(r)},s.display===B&&(s.display="In"===l?"auto":"none"),H(this,u,s)}}),H}function W(t){var e=q.data(t,"velocity");return null===e?B:e}function v(t,e){var n=W(t);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-e+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function y(t){var e=W(t);e&&e.delayTimer&&e.delayPaused&&(e.delayPaused=!1,e.delayTimer.setTimeout=setTimeout(e.delayTimer.next,e.delayRemaining))}function a(s,e,a,n){var u=4,l=1e-7,c=10,f=11,h=1/(f-1),t="Float32Array"in j;if(4!==arguments.length)return!1;for(var i=0;i<4;++i)if("number"!=typeof arguments[i]||isNaN(arguments[i])||!isFinite(arguments[i]))return!1;s=Math.min(s,1),a=Math.min(a,1),s=Math.max(s,0),a=Math.max(a,0);var d=t?new Float32Array(f):new Array(f);function r(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function p(t){return 3*t}function m(t,e,n){return((r(e,n)*t+o(e,n))*t+p(e))*t}function g(t,e,n){return 3*r(e,n)*t*t+2*o(e,n)*t+p(e)}function v(t){for(var e=0,n=1,i=f-1;n!==i&&d[n]<=t;++n)e+=h;var r=e+(t-d[--n])/(d[n+1]-d[n])*h,o=g(r,s,a);return.001<=o?function(t,e){for(var n=0;n<u;++n){var i=g(e,s,a);if(0===i)return e;e-=(m(e,s,a)-t)/i}return e}(t,r):0===o?r:function(t,e,n){for(var i,r,o=0;0<(i=m(r=e+(n-e)/2,s,a)-t)?n=r:e=r,Math.abs(i)>l&&++o<c;);return r}(t,e,e+h)}var y=!1;function _(){y=!0,s===e&&a===n||function(){for(var t=0;t<f;++t)d[t]=m(t*h,s,a)}()}function x(t){return y||_(),s===e&&a===n?t:0===t?0:1===t?1:m(v(t),e,n)}x.getControlPoints=function(){return[{x:s,y:e},{x:a,y:n}]};var b="generateBezier("+[s,e,a,n]+")";return x.toString=function(){return b},x}function U(t,e){var n=t;return Z.isString(t)?H.Easings[t]||(n=!1):n=Z.isArray(t)&&1===t.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,t):Z.isArray(t)&&2===t.length?o.apply(null,t.concat([e])):!(!Z.isArray(t)||4!==t.length)&&a.apply(null,t),!1===n&&(n=H.Easings[H.defaults.easing]?H.defaults.easing:r),n}function Q(t){if(t){var e=H.timestamp&&!0!==t?t:C.now(),n=H.State.calls.length;1e4<n&&(H.State.calls=function(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}(H.State.calls),n=H.State.calls.length);for(var i=0;i<n;i++)if(H.State.calls[i]){var r=H.State.calls[i],o=r[0],s=r[2],a=r[3],u=!a,l=null,c=r[5],f=r[6];if(a=a||(H.State.calls[i][3]=e-16),c){if(!0!==c.resume)continue;a=r[3]=Math.round(e-f-16),r[5]=null}f=r[6]=e-a;for(var h=Math.min(f/s.duration,1),d=0,p=o.length;d<p;d++){var m=o[d],g=m.element;if(W(g)){var v=!1;if(s.display!==B&&null!==s.display&&"none"!==s.display){if("flex"===s.display){q.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){V.setPropertyValue(g,"display",e)})}V.setPropertyValue(g,"display",s.display)}for(var y in s.visibility!==B&&"hidden"!==s.visibility&&V.setPropertyValue(g,"visibility",s.visibility),m)if(m.hasOwnProperty(y)&&"element"!==y){var _,x=m[y],b=Z.isString(x.easing)?H.Easings[x.easing]:x.easing;if(Z.isString(x.pattern)){var w=1===h?function(t,e,n){var i=x.endValue[e];return n?Math.round(i):i}:function(t,e,n){var i=x.startValue[e],r=x.endValue[e]-i,o=i+r*b(h,s,r);return n?Math.round(o):o};_=x.pattern.replace(/{(\d+)(!)?}/g,w)}else if(1===h)_=x.endValue;else{var S=x.endValue-x.startValue;_=x.startValue+S*b(h,s,S)}if(!u&&_===x.currentValue)continue;if(x.currentValue=_,"tween"===y)l=_;else{var T;if(V.Hooks.registered[y]){T=V.Hooks.getRoot(y);var E=W(g).rootPropertyValueCache[T];E&&(x.rootPropertyValue=E)}var P=V.setPropertyValue(g,y,x.currentValue+(L<9&&0===parseFloat(_)?"":x.unitType),x.rootPropertyValue,x.scrollData);V.Hooks.registered[y]&&(V.Normalizations.registered[T]?W(g).rootPropertyValueCache[T]=V.Normalizations.registered[T]("extract",null,P[1]):W(g).rootPropertyValueCache[T]=P[1]),"transform"===P[0]&&(v=!0)}}s.mobileHA&&W(g).transformCache.translate3d===B&&(W(g).transformCache.translate3d="(0px, 0px, 0px)",v=!0),v&&V.flushTransformCache(g)}}s.display!==B&&"none"!==s.display&&(H.State.calls[i][2].display=!1),s.visibility!==B&&"hidden"!==s.visibility&&(H.State.calls[i][2].visibility=!1),s.progress&&s.progress.call(r[1],r[1],h,Math.max(0,a+s.duration-e),a,l),1===h&&M(i)}}H.State.isTicking&&k(Q)}function M(t,e){if(!H.State.calls[t])return!1;for(var n=H.State.calls[t][0],i=H.State.calls[t][1],r=H.State.calls[t][2],o=H.State.calls[t][4],s=!1,a=0,u=n.length;a<u;a++){var l=n[a].element;e||r.loop||("none"===r.display&&V.setPropertyValue(l,"display",r.display),"hidden"===r.visibility&&V.setPropertyValue(l,"visibility",r.visibility));var c=W(l);if(!0!==r.loop&&(q.queue(l)[1]===B||!/\.velocityQueueEntryFlag/i.test(q.queue(l)[1]))&&c){c.isAnimating=!1;var f=!(c.rootPropertyValueCache={});q.each(V.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,i=c.transformCache[e];c.transformCache[e]!==B&&new RegExp("^\\("+n+"[^.]").test(i)&&(f=!0,delete c.transformCache[e])}),r.mobileHA&&(f=!0,delete c.transformCache.translate3d),f&&V.flushTransformCache(l),V.Values.removeClass(l,"velocity-animating")}if(!e&&r.complete&&!r.loop&&a===u-1)try{r.complete.call(i,i)}catch(t){setTimeout(function(){throw t},1)}o&&!0!==r.loop&&o(i),c&&!0===r.loop&&!e&&(q.each(c.tweensContainer,function(t,e){if(/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360==0){var n=e.startValue;e.startValue=e.endValue,e.endValue=n}/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),H(l,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&q.dequeue(l,r.queue)}H.State.calls[t]=!1;for(var h=0,d=H.State.calls.length;h<d;h++)if(!1!==H.State.calls[h]){s=!0;break}!1===s&&(H.State.isTicking=!1,delete H.State.calls,H.State.calls=[])}l.fn.velocity=l.fn.animate}(u||window.Zepto||window,window,window?window.document:void 0)})}).call(this,o(1),o(1))},function(t,e){var n=n||{};n.Widget=function(n){function i(t){if(r[t])return r[t].exports;var e=r[t]={exports:{},id:t,loaded:!1};return n[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}var r={};return i.m=n,i.c=r,i.p="",i(0)}([function(t,e,n){function i(t){var e,n;for(e=0,n=P.length;e<n&&!1!==t(P[e]);e++);}function s(t){return t.contentWindow?t.contentWindow:t.contentDocument&&"parentWindow"in t.contentDocument?t.contentDocument.parentWindow:null}function r(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n}function a(t,e,n){n.callbacks[t]=n.callbacks[t]||[],n.callbacks[t].push(e)}function u(e,t){var n=!0;return t.callbacks[e]=[],i(function(t){if((t.callbacks[e]||[]).length)return n=!1}),n}function l(t,e,n){var i,r,o=s(n);return!!o.postMessage&&(i=n.getAttribute("src").split("?")[0],r=JSON.stringify({method:t,value:e}),"//"===i.substr(0,2)&&(i=window.location.protocol+i),i=i.replace(/http:\/\/(w|wt).soundcloud.com/,"https://$1.soundcloud.com"),void o.postMessage(r,i))}function c(e){var n;return i(function(t){if(t.instance===e)return n=t,!1}),n}function f(e){var n;return i(function(t){if(s(t.element)===e)return n=t,!1}),n}function h(o,s){return function(t){var e=function(t){return!!(t&&t.constructor&&t.call&&t.apply)}(t),n=c(this),i=!e&&s?t:null,r=e&&!s?t:null;return r&&a(o,r,n),l(o,i,n.element),this}}function o(t,e,n){var i,r,o;for(i=0,r=e.length;i<r;i++)t[o=e[i]]=h(o,n)}function d(t,e,n){return t+"?url="+e+"&"+function(t){var e,n,i=[];for(e in t)t.hasOwnProperty(e)&&(n=t[e],i.push(e+"="+("start_track"===e?parseInt(n,10):n?"true":"false")));return i.join("&")}(n)}function p(t,e,n){var i,r,o=t.callbacks[e]||[];for(i=0,r=o.length;i<r;i++)o[i].apply(t.instance,n);!function(t){var e,n=!1;for(e in b)if(b.hasOwnProperty(e)&&b[e]===t){n=!0;break}return n}(e)&&e!==S.READY||(t.callbacks[e]=[])}function m(t){var e,n,i,r,o;try{n=JSON.parse(t.data)}catch(t){return!1}return e=f(t.source),i=n.method,r=n.value,(!e||g(t.origin)===g(e.domain))&&(e?(i===S.READY&&(e.isReady=!0,p(e,L),u(L,e)),i!==S.PLAY||e.playEventFired||(e.playEventFired=!0),i!==S.PLAY_PROGRESS||e.playEventFired||(e.playEventFired=!0,p(e,S.PLAY,[r])),o=[],void 0!==r&&o.push(r),void p(e,i,o)):(i===S.READY&&E.push(t.source),!1))}function g(t){return t.replace(C,"")}var v,y,_,x=n(1),b=n(2),w=n(3),S=x.api,T=x.bridge,E=[],P=[],L="__LATE_BINDING__",C=/^http(?:s?)/;window.addEventListener?window.addEventListener("message",m,!1):window.attachEvent("onmessage",m),t.exports=_=function(t,e,n){if(function(t){return!!(""===t||t&&t.charCodeAt&&t.substr)}(t)&&(t=document.getElementById(t)),!function(t){return!(!t||1!==t.nodeType||"IFRAME"!==t.nodeName.toUpperCase())}(t))throw new Error("SC.Widget function should be given either iframe element or a string specifying id attribute of iframe element.");e&&(n=n||{},t.src=d("http://wt.soundcloud.test:9200/",e,n));var i,r,o=f(s(t));return o&&o.instance?o.instance:(i=-1<E.indexOf(s(t)),r=new v(t),P.push(new y(r,t,i)),r)},_.Events=S,window.SC=window.SC||{},window.SC.Widget=_,y=function(t,e,n){this.instance=t,this.element=e,this.domain=function(t){var e,n,i,r="";for("//"===t.substr(0,2)&&(t=window.location.protocol+t),e=0,n=(i=t.split("/")).length;e<n&&e<3;e++)r+=i[e],e<2&&(r+="/");return r}(e.getAttribute("src")),this.isReady=!!n,this.callbacks={}},(v=function(){}).prototype={constructor:v,load:function(t,n){if(t){n=n||{};var e=this,i=c(this),r=i.element,o=r.src,s=o.substr(0,o.indexOf("?"));i.isReady=!1,i.playEventFired=!1,r.onload=function(){e.bind(S.READY,function(){var t,e=i.callbacks;for(t in e)e.hasOwnProperty(t)&&t!==S.READY&&l(T.ADD_LISTENER,t,i.element);n.callback&&n.callback()})},r.src=d(s,t,n)}},bind:function(t,e){var n=this,i=c(this);return i&&i.element&&(t===S.READY&&i.isReady?setTimeout(e,1):i.isReady?(a(t,e,i),l(T.ADD_LISTENER,t,i.element)):a(L,function(){n.bind(t,e)},i)),this},unbind:function(t){var e,n=c(this);n&&n.element&&(e=u(t,n),t!==S.READY&&e&&l(T.REMOVE_LISTENER,t,n.element))}},o(v.prototype,r(b)),o(v.prototype,r(w),!0)},function(t,e){e.api={LOAD_PROGRESS:"loadProgress",PLAY_PROGRESS:"playProgress",PLAY:"play",PAUSE:"pause",FINISH:"finish",SEEK:"seek",READY:"ready",OPEN_SHARE_PANEL:"sharePanelOpened",CLICK_DOWNLOAD:"downloadClicked",CLICK_BUY:"buyClicked",ERROR:"error"},e.bridge={REMOVE_LISTENER:"removeEventListener",ADD_LISTENER:"addEventListener"}},function(t,e){t.exports={GET_VOLUME:"getVolume",GET_DURATION:"getDuration",GET_POSITION:"getPosition",GET_SOUNDS:"getSounds",GET_CURRENT_SOUND:"getCurrentSound",GET_CURRENT_SOUND_INDEX:"getCurrentSoundIndex",IS_PAUSED:"isPaused"}},function(t,e){t.exports={PLAY:"play",PAUSE:"pause",TOGGLE:"toggle",SEEK_TO:"seekTo",SET_VOLUME:"setVolume",NEXT:"next",PREV:"prev",SKIP:"skip"}}])},function(t,e){L.TileLayer.Iiif=L.TileLayer.extend({options:{continuousWorld:!0,tileSize:256,updateWhenIdle:!0,tileFormat:"jpg",fitBounds:!0,setMaxBounds:!1},initialize:function(t,e){(e=void 0!==e?e:{}).maxZoom&&(this._customMaxZoom=!0),e.tileSize&&(this._explicitTileSize=!0),e.quality&&(this._explicitQuality=!0),e=L.setOptions(this,e),this._infoPromise=null,this._infoUrl=t,this._baseUrl=this._templateUrl(),this._getInfo()},getTileUrl:function(t){var e=t.x,n=t.y,i=this._getZoomForUrl(),r=Math.pow(2,this.maxNativeZoom-i),o=this.options.tileSize*r,s=e*o,a=n*o,u=Math.min(s+o,this.x)-s,l=Math.min(a+o,this.y)-a,c=Math.ceil(u/r)+",";return"ImageService3"===this.type&&(c+=Math.ceil(l/r)),L.Util.template(this._baseUrl,L.extend({format:this.options.tileFormat,quality:this.quality,region:[s,a,u,l].join(","),rotation:0,size:c},this.options))},onAdd:function(r){var o=this;Promise.all([o._infoPromise]).then(function(){o._imageSizesOriginal=o._imageSizes.slice(0),r._layersMaxZoom=o.maxZoom,L.TileLayer.prototype.onAdd.call(o,r);for(var t=o._imageSizes[0],e=o._map.getSize(),n=0,i=1;i<=5&&(t.x>e.x||t.y>e.y);i++)t=t.divideBy(2),o._imageSizes.unshift(t),n=-i;o.options.minZoom=n,o.options.minNativeZoom=n,o._prev_map_layersMinZoom=o._map._layersMinZoom,o._map._layersMinZoom=n,o.options.fitBounds&&o._fitBounds(),o.options.setMaxBounds&&o._setMaxBounds(),o.on("tileload",function(t,e){var n=t.tile.naturalHeight,i=t.tile.naturalWidth;256===n&&256===i||(t.tile.style.width=i+"px",t.tile.style.height=n+"px")})}).catch(function(t){console.error(t)})},onRemove:function(t){t._layersMinZoom=this._prev_map_layersMinZoom,this._imageSizes=this._imageSizesOriginal,this.options.setMaxBounds&&t.setMaxBounds(null),L.TileLayer.prototype.onRemove.call(this,t)},_fitBounds:function(){var t=this._getInitialZoom(this._map.getSize()),e=this._imageSizes.length-1-this.options.maxNativeZoom,n=this._imageSizes[t+e],i=this._map.options.crs.pointToLatLng(L.point(0,n.y),t),r=this._map.options.crs.pointToLatLng(L.point(n.x,0),t),o=L.latLngBounds(i,r);this._map.fitBounds(o,!0)},_setMaxBounds:function(){var t=this._getInitialZoom(this._map.getSize()),e=this._imageSizes[t],n=this._map.options.crs.pointToLatLng(L.point(0,e.y),t),i=this._map.options.crs.pointToLatLng(L.point(e.x,0),t),r=L.latLngBounds(n,i);this._map.setMaxBounds(r,!0)},_getInfo:function(){var c=this;c._infoPromise=fetch(c._infoUrl).then(function(t){return t.json()}).catch(function(t){console.error(t)}).then(function(t){c.y=t.height,c.x=t.width;var e,n,i,r,o,s=[],a=[];function u(t){return Math.ceil(Math.log(t)/Math.LN2)}t.profile instanceof Array?c.profile=t.profile[0]:c.profile=t.profile,c.type=t.type,c._setQuality(),c._explicitTileSize||(c.options.tileSize=256,t.tiles?c.options.tileSize=t.tiles[0].width:t.tile_width&&(c.options.tileSize=t.tile_width)),c.maxNativeZoom=Math.max(u(c.x/c.options.tileSize),u(c.y/c.options.tileSize),0),c.options.maxNativeZoom=c.maxNativeZoom,c._customMaxZoom&&c.options.maxZoom>c.maxNativeZoom?c.maxZoom=c.options.maxZoom:c.maxZoom=c.maxNativeZoom;for(var l=0;l<=c.maxZoom;l++)e=Math.pow(2,c.maxNativeZoom-l),n=Math.ceil(c.x/e),i=Math.ceil(c.y/e),r=Math.ceil(n/c.options.tileSize),o=Math.ceil(i/c.options.tileSize),s.push([r,o]),a.push(L.point(n,i));c._tierSizes=s,c._imageSizes=a}).catch(function(t){console.error(t)})},_setQuality:function(){var t=this.profile;if(!this._explicitQuality)switch("object"==typeof t&&(t=t["@id"]),!0){case/^http:\/\/library.stanford.edu\/iiif\/image-api\/1.1\/compliance.html.*$/.test(t):this.options.quality="native";break;default:this.options.quality="default"}},_infoToBaseUrl:function(){return this._infoUrl.replace("info.json","")},_templateUrl:function(){return this._infoToBaseUrl()+"{region}/{size}/{rotation}/{quality}.{format}"},_isValidTile:function(t){var e=this._getZoomForUrl(),n=this._tierSizes[e],i=t.x,r=t.y;return e<0&&0<=i&&0<=r||!!n&&!(i<0||n[0]<=i||r<0||n[1]<=r)},_tileShouldBeLoaded:function(t){return this._isValidTile(t)},_getInitialZoom:function(t){for(var e,n=this._imageSizes.length-1-this.options.maxNativeZoom,i=this._imageSizes.length-1;0<=i;i--)if(.8*(e=this._imageSizes[i]).x<t.x&&.8*e.y<t.y)return i-n;return 2}}),L.tileLayer.iiif=function(t,e){return new L.TileLayer.Iiif(t,e)}},function(t,e){L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");return this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e),this.link.href="#",this._map=t,this._map.on("fullscreenchange",this._toggleTitle,this),this._toggleTitle(),L.DomEvent.on(this.link,"click",this._click,this),e},_click:function(t){L.DomEvent.stopPropagation(t),L.DomEvent.preventDefault(t),this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}}),L.Map.include({isFullscreen:function(){return this._isFullscreen||!1},toggleFullscreen:function(t){var e=this.getContainer();this.isFullscreen()?t&&t.pseudoFullscreen?this._disablePseudoFullscreen(e):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this._disablePseudoFullscreen(e):t&&t.pseudoFullscreen?this._enablePseudoFullscreen(e):e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():this._enablePseudoFullscreen(e)},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!0),this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){L.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!1),this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var e=this.getContainer();t?L.DomUtil.addClass(e,"leaflet-fullscreen-on"):L.DomUtil.removeClass(e,"leaflet-fullscreen-on"),this.invalidateSize()},_onFullscreenChange:function(t){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;e!==this.getContainer()||this._isFullscreen?e!==this.getContainer()&&this._isFullscreen&&(this._setFullscreen(!1),this.fire("fullscreenchange")):(this._setFullscreen(!0),this.fire("fullscreenchange"))}}),L.Map.mergeOptions({fullscreenControl:!1}),L.Map.addInitHook(function(){var t;if(this.options.fullscreenControl&&(this.fullscreenControl=new L.Control.Fullscreen(this.options.fullscreenControl),this.addControl(this.fullscreenControl)),"onfullscreenchange"in document?t="fullscreenchange":"onmozfullscreenchange"in document?t="mozfullscreenchange":"onwebkitfullscreenchange"in document?t="webkitfullscreenchange":"onmsfullscreenchange"in document&&(t="MSFullscreenChange"),t){var e=L.bind(this._onFullscreenChange,this);this.whenReady(function(){L.DomEvent.on(document,t,e)}),this.on("unload",function(){L.DomEvent.off(document,t,e)})}}),L.control.fullscreen=function(t){return new L.Control.Fullscreen(t)}},function(t,e,n){var i=n(353);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var r={insert:"head",singleton:!1};n(55)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){},function(i,r,o){(function(Q){var t,e,n;
|
|
90
|
-
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
|
91
|
-
* http://dimsemenov.com/plugins/magnific-popup/
|
|
92
|
-
* Copyright (c) 2016 Dmitry Semenov; */!function(){e=[o(1)],void 0===(n="function"==typeof(t=function(c){var u="Close",l="BeforeClose",n="AfterClose",i="BeforeAppend",f="MarkupParse",h="Open",r="Change",o="mfp",d="."+o,p="mfp-ready",s="mfp-removing",a="mfp-prevent-close",m,t=function(){},g=!!Q,v,y=c(window),_,x,b,e,w=function(t,e){m.ev.on(o+t+d,e)},S=function(t,e,n,i){var r=document.createElement("div");r.className="mfp-"+t;if(n){r.innerHTML=n}if(!i){r=c(r);if(e){r.appendTo(e)}}else if(e){e.appendChild(r)}return r},T=function(t,e){m.ev.triggerHandler(o+t,e);if(m.st.callbacks){t=t.charAt(0).toLowerCase()+t.slice(1);if(m.st.callbacks[t]){m.st.callbacks[t].apply(m,c.isArray(e)?e:[e])}}},E=function(t){if(t!==e||!m.currTemplate.closeBtn){m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose));e=t}return m.currTemplate.closeBtn},P=function(){if(!c.magnificPopup.instance){m=new t;m.init();c.magnificPopup.instance=m}},L=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(t["transition"]!==undefined){return true}while(e.length){if(e.pop()+"Transition"in t){return true}}return false};t.prototype={constructor:t,init:function(){var t=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener;m.isAndroid=/android/gi.test(t);m.isIOS=/iphone|ipad|ipod/gi.test(t);m.supportsTransition=L();m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);_=c(document);m.popupsCache={}},open:function(t){var e;if(t.isObj===false){m.items=t.items.toArray();m.index=0;var n=t.items,i;for(e=0;e<n.length;e++){i=n[e];if(i.parsed){i=i.el[0]}if(i===t.el[0]){m.index=e;break}}}else{m.items=c.isArray(t.items)?t.items:[t.items];m.index=t.index||0}if(m.isOpen){m.updateItemHTML();return}m.types=[];b="";if(t.mainEl&&t.mainEl.length){m.ev=t.mainEl.eq(0)}else{m.ev=_}if(t.key){if(!m.popupsCache[t.key]){m.popupsCache[t.key]={}}m.currTemplate=m.popupsCache[t.key]}else{m.currTemplate={}}m.st=c.extend(true,{},c.magnificPopup.defaults,t);m.fixedContentPos=m.st.fixedContentPos==="auto"?!m.probablyMobile:m.st.fixedContentPos;if(m.st.modal){m.st.closeOnContentClick=false;m.st.closeOnBgClick=false;m.st.showCloseBtn=false;m.st.enableEscapeKey=false}if(!m.bgOverlay){m.bgOverlay=S("bg").on("click"+d,function(){m.close()});m.wrap=S("wrap").attr("tabindex",-1).on("click"+d,function(t){if(m._checkIfClose(t.target)){m.close()}});m.container=S("container",m.wrap)}m.contentContainer=S("content");if(m.st.preloader){m.preloader=S("preloader",m.container,m.st.tLoading)}var r=c.magnificPopup.modules;for(e=0;e<r.length;e++){var o=r[e];o=o.charAt(0).toUpperCase()+o.slice(1);m["init"+o].call(m)}T("BeforeOpen");if(m.st.showCloseBtn){if(!m.st.closeBtnInside){m.wrap.append(E())}else{w(f,function(t,e,n,i){n.close_replaceWith=E(i.type)});b+=" mfp-close-btn-in"}}if(m.st.alignTop){b+=" mfp-align-top"}if(m.fixedContentPos){m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY})}else{m.wrap.css({top:y.scrollTop(),position:"absolute"})}if(m.st.fixedBgPos===false||m.st.fixedBgPos==="auto"&&!m.fixedContentPos){m.bgOverlay.css({height:_.height(),position:"absolute"})}if(m.st.enableEscapeKey){_.on("keyup"+d,function(t){if(t.keyCode===27){m.close()}})}y.on("resize"+d,function(){m.updateSize()});if(!m.st.closeOnContentClick){b+=" mfp-auto-cursor"}if(b)m.wrap.addClass(b);var s=m.wH=y.height();var a={};if(m.fixedContentPos){if(m._hasScrollBar(s)){var u=m._getScrollbarSize();if(u){a.marginRight=u}}}if(m.fixedContentPos){if(!m.isIE7){a.overflow="hidden"}else{c("body, html").css("overflow","hidden")}}var l=m.st.mainClass;if(m.isIE7){l+=" mfp-ie7"}if(l){m._addClassToMFP(l)}m.updateItemHTML();T("BuildControls");c("html").css(a);m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body));m._lastFocusedEl=document.activeElement;setTimeout(function(){if(m.content){m._addClassToMFP(p);m._setFocus()}else{m.bgOverlay.addClass(p)}_.on("focusin"+d,m._onFocusIn)},16);m.isOpen=true;m.updateSize(s);T(h);return t},close:function(){if(!m.isOpen)return;T(l);m.isOpen=false;if(m.st.removalDelay&&!m.isLowIE&&m.supportsTransition){m._addClassToMFP(s);setTimeout(function(){m._close()},m.st.removalDelay)}else{m._close()}},_close:function(){T(u);var t=s+" "+p+" ";m.bgOverlay.detach();m.wrap.detach();m.container.empty();if(m.st.mainClass){t+=m.st.mainClass+" "}m._removeClassFromMFP(t);if(m.fixedContentPos){var e={marginRight:""};if(m.isIE7){c("body, html").css("overflow","")}else{e.overflow=""}c("html").css(e)}_.off("keyup"+d+" focusin"+d);m.ev.off(d);m.wrap.attr("class","mfp-wrap").removeAttr("style");m.bgOverlay.attr("class","mfp-bg");m.container.attr("class","mfp-container");if(m.st.showCloseBtn&&(!m.st.closeBtnInside||m.currTemplate[m.currItem.type]===true)){if(m.currTemplate.closeBtn)m.currTemplate.closeBtn.detach()}if(m.st.autoFocusLast&&m._lastFocusedEl){c(m._lastFocusedEl).focus()}m.currItem=null;m.content=null;m.currTemplate=null;m.prevHeight=0;T(n)},updateSize:function(t){if(m.isIOS){var e=document.documentElement.clientWidth/window.innerWidth;var n=window.innerHeight*e;m.wrap.css("height",n);m.wH=n}else{m.wH=t||y.height()}if(!m.fixedContentPos){m.wrap.css("height",m.wH)}T("Resize")},updateItemHTML:function(){var t=m.items[m.index];m.contentContainer.detach();if(m.content)m.content.detach();if(!t.parsed){t=m.parseEl(m.index)}var e=t.type;T("BeforeChange",[m.currItem?m.currItem.type:"",e]);m.currItem=t;if(!m.currTemplate[e]){var n=m.st[e]?m.st[e].markup:false;T("FirstMarkupParse",n);if(n){m.currTemplate[e]=c(n)}else{m.currTemplate[e]=true}}if(x&&x!==t.type){m.container.removeClass("mfp-"+x+"-holder")}var i=m["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,m.currTemplate[e]);m.appendContent(i,e);t.preloaded=true;T(r,t);x=t.type;m.container.prepend(m.contentContainer);T("AfterChange")},appendContent:function(t,e){m.content=t;if(t){if(m.st.showCloseBtn&&m.st.closeBtnInside&&m.currTemplate[e]===true){if(!m.content.find(".mfp-close").length){m.content.append(E())}}else{m.content=t}}else{m.content=""}T(i);m.container.addClass("mfp-"+e+"-holder");m.contentContainer.append(m.content)},parseEl:function(t){var e=m.items[t],n;if(e.tagName){e={el:c(e)}}else{n=e.type;e={data:e,src:e.src}}if(e.el){var i=m.types;for(var r=0;r<i.length;r++){if(e.el.hasClass("mfp-"+i[r])){n=i[r];break}}e.src=e.el.attr("data-mfp-src");if(!e.src){e.src=e.el.attr("href")}}e.type=n||m.st.type||"inline";e.index=t;e.parsed=true;m.items[t]=e;T("ElementParse",e);return m.items[t]},addGroup:function(e,n){var t=function(t){t.mfpEl=this;m._openClick(t,e,n)};if(!n){n={}}var i="click.magnificPopup";n.mainEl=e;if(n.items){n.isObj=true;e.off(i).on(i,t)}else{n.isObj=false;if(n.delegate){e.off(i).on(i,n.delegate,t)}else{n.items=e;e.off(i).on(i,t)}}},_openClick:function(t,e,n){var i=n.midClick!==undefined?n.midClick:c.magnificPopup.defaults.midClick;if(!i&&(t.which===2||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){return}var r=n.disableOn!==undefined?n.disableOn:c.magnificPopup.defaults.disableOn;if(r){if(c.isFunction(r)){if(!r.call(m)){return true}}else{if(y.width()<r){return true}}}if(t.type){t.preventDefault();if(m.isOpen){t.stopPropagation()}}n.el=c(t.mfpEl);if(n.delegate){n.items=e.find(n.delegate)}m.open(n)},updateStatus:function(t,e){if(m.preloader){if(v!==t){m.container.removeClass("mfp-s-"+v)}if(!e&&t==="loading"){e=m.st.tLoading}var n={status:t,text:e};T("UpdateStatus",n);t=n.status;e=n.text;m.preloader.html(e);m.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()});m.container.addClass("mfp-s-"+t);v=t}},_checkIfClose:function(t){if(c(t).hasClass(a)){return}var e=m.st.closeOnContentClick;var n=m.st.closeOnBgClick;if(e&&n){return true}else{if(!m.content||c(t).hasClass("mfp-close")||m.preloader&&t===m.preloader[0]){return true}if(t!==m.content[0]&&!c.contains(m.content[0],t)){if(n){if(c.contains(document,t)){return true}}}else if(e){return true}}return false},_addClassToMFP:function(t){m.bgOverlay.addClass(t);m.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t);m.wrap.removeClass(t)},_hasScrollBar:function(t){return(m.isIE7?_.height():document.body.scrollHeight)>(t||y.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(t){if(t.target!==m.wrap[0]&&!c.contains(m.wrap[0],t.target)){m._setFocus();return false}},_parseMarkup:function(r,t,e){var o;if(e.data){t=c.extend(e.data,t)}T(f,[r,t,e]);c.each(t,function(t,e){if(e===undefined||e===false){return true}o=t.split("_");if(o.length>1){var n=r.find(d+"-"+o[0]);if(n.length>0){var i=o[1];if(i==="replaceWith"){if(n[0]!==e[0]){n.replaceWith(e)}}else if(i==="img"){if(n.is("img")){n.attr("src",e)}else{n.replaceWith(c("<img>").attr("src",e).attr("class",n.attr("class")))}}else{n.attr(o[1],e)}}}else{r.find(d+"-"+t).html(e)}})},_getScrollbarSize:function(){if(m.scrollbarSize===undefined){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(t);m.scrollbarSize=t.offsetWidth-t.clientWidth;document.body.removeChild(t)}return m.scrollbarSize}},c.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){P();if(!t){t={}}else{t=c.extend(true,{},t)}t.isObj=true;t.index=e||0;return this.instance.open(t)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(t,e){if(e.options){c.magnificPopup.defaults[t]=e.options}c.extend(this.proto,e.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:true}},c.fn.magnificPopup=function(t){P();var e=c(this);if(typeof t==="string"){if(t==="open"){var n,i=g?e.data("magnificPopup"):e[0].magnificPopup,r=parseInt(arguments[1],10)||0;if(i.items){n=i.items[r]}else{n=e;if(i.delegate){n=n.find(i.delegate)}n=n.eq(r)}m._openClick({mfpEl:n},e,i)}else{if(m.isOpen)m[t].apply(m,Array.prototype.slice.call(arguments,1))}}else{t=c.extend(true,{},t);if(g){e.data("magnificPopup",t)}else{e[0].magnificPopup=t}m.addGroup(e,t)}return e};var C="inline",k,I,M,A=function(){if(M){I.after(M.addClass(k)).detach();M=null}};c.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(C);w(u+"."+C,function(){A()})},getInline:function(t,e){A();if(t.src){var n=m.st.inline,i=c(t.src);if(i.length){var r=i[0].parentNode;if(r&&r.tagName){if(!I){k=n.hiddenClass;I=S(k);k="mfp-"+k}M=i.after(I).detach().removeClass(k)}m.updateStatus("ready")}else{m.updateStatus("error",n.tNotFound);i=c("<div>")}t.inlineElement=i;return i}m.updateStatus("ready");m._parseMarkup(e,{},t);return e}}});var O="ajax",N,z=function(){if(N){c(document.body).removeClass(N)}},R=function(){z();if(m.req){m.req.abort()}};c.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){m.types.push(O);N=m.st.ajax.cursor;w(u+"."+O,R);w("BeforeChange."+O,R)},getAjax:function(r){if(N){c(document.body).addClass(N)}m.updateStatus("loading");var t=c.extend({url:r.src,success:function(t,e,n){var i={data:t,xhr:n};T("ParseAjax",i);m.appendContent(c(i.data),O);r.finished=true;z();m._setFocus();setTimeout(function(){m.wrap.addClass(p)},16);m.updateStatus("ready");T("AjaxContentAdded")},error:function(){z();r.finished=r.loadError=true;m.updateStatus("error",m.st.ajax.tError.replace("%url%",r.src))}},m.st.ajax.settings);m.req=c.ajax(t);return""}}});var F,j=function(t){if(t.data&&t.data.title!==undefined)return t.data.title;var e=m.st.image.titleSrc;if(e){if(c.isFunction(e)){return e.call(m,t)}else if(t.el){return t.el.attr(e)||""}}return""};c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure">'+'<div class="mfp-close"></div>'+"<figure>"+'<div class="mfp-img"></div>'+"<figcaption>"+'<div class="mfp-bottom-bar">'+'<div class="mfp-title"></div>'+'<div class="mfp-counter"></div>'+"</div>"+"</figcaption>"+"</figure>"+"</div>",cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:true,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var t=m.st.image,e=".image";m.types.push("image");w(h+e,function(){if(m.currItem.type==="image"&&t.cursor){c(document.body).addClass(t.cursor)}});w(u+e,function(){if(t.cursor){c(document.body).removeClass(t.cursor)}y.off("resize"+d)});w("Resize"+e,m.resizeImage);if(m.isLowIE){w("AfterChange",m.resizeImage)}},resizeImage:function(){var t=m.currItem;if(!t||!t.img)return;if(m.st.image.verticalFit){var e=0;if(m.isLowIE){e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)}t.img.css("max-height",m.wH-e)}},_onImageHasSize:function(t){if(t.img){t.hasSize=true;if(F){clearInterval(F)}t.isCheckingImgSize=false;T("ImageHasSize",t);if(t.imgHidden){if(m.content)m.content.removeClass("mfp-loading");t.imgHidden=false}}},findImageSize:function(e){var n=0,i=e.img[0],r=function(t){if(F){clearInterval(F)}F=setInterval(function(){if(i.naturalWidth>0){m._onImageHasSize(e);return}if(n>200){clearInterval(F)}n++;if(n===3){r(10)}else if(n===40){r(50)}else if(n===100){r(500)}},t)};r(1)},getImage:function(t,e){var n=0,i=function(){if(t){if(t.img[0].complete){t.img.off(".mfploader");if(t===m.currItem){m._onImageHasSize(t);m.updateStatus("ready")}t.hasSize=true;t.loaded=true;T("ImageLoadComplete")}else{n++;if(n<200){setTimeout(i,100)}else{r()}}}},r=function(){if(t){t.img.off(".mfploader");if(t===m.currItem){m._onImageHasSize(t);m.updateStatus("error",o.tError.replace("%url%",t.src))}t.hasSize=true;t.loaded=true;t.loadError=true}},o=m.st.image;var s=e.find(".mfp-img");if(s.length){var a=document.createElement("img");a.className="mfp-img";if(t.el&&t.el.find("img").length){a.alt=t.el.find("img").attr("alt")}t.img=c(a).on("load.mfploader",i).on("error.mfploader",r);a.src=t.src;if(s.is("img")){t.img=t.img.clone()}a=t.img[0];if(a.naturalWidth>0){t.hasSize=true}else if(!a.width){t.hasSize=false}}m._parseMarkup(e,{title:j(t),img_replaceWith:t.img},t);m.resizeImage();if(t.hasSize){if(F)clearInterval(F);if(t.loadError){e.addClass("mfp-loading");m.updateStatus("error",o.tError.replace("%url%",t.src))}else{e.removeClass("mfp-loading");m.updateStatus("ready")}return e}m.updateStatus("loading");t.loading=true;if(!t.hasSize){t.imgHidden=true;e.addClass("mfp-loading");m.findImageSize(t)}return e}}});var D,B=function(){if(D===undefined){D=document.createElement("p").style.MozTransform!==undefined}return D};c.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var o=m.st.zoom,t=".zoom",e;if(!o.enabled||!m.supportsTransition){return}var n=o.duration,i=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n;e.css(i);return e},r=function(){m.content.css("visibility","visible")},s,a;w("BuildControls"+t,function(){if(m._allowZoom()){clearTimeout(s);m.content.css("visibility","hidden");e=m._getItemToZoom();if(!e){r();return}a=i(e);a.css(m._getOffset());m.wrap.append(a);s=setTimeout(function(){a.css(m._getOffset(true));s=setTimeout(function(){r();setTimeout(function(){a.remove();e=a=null;T("ZoomAnimationEnded")},16)},n)},16)}});w(l+t,function(){if(m._allowZoom()){clearTimeout(s);m.st.removalDelay=n;if(!e){e=m._getItemToZoom();if(!e){return}a=i(e)}a.css(m._getOffset(true));m.wrap.append(a);m.content.css("visibility","hidden");setTimeout(function(){a.css(m._getOffset())},16)}});w(u+t,function(){if(m._allowZoom()){r();if(a){a.remove()}e=null}})},_allowZoom:function(){return m.currItem.type==="image"},_getItemToZoom:function(){if(m.currItem.hasSize){return m.currItem.img}else{return false}},_getOffset:function(t){var e;if(t){e=m.currItem.img}else{e=m.st.zoom.opener(m.currItem.el||m.currItem)}var n=e.offset();var i=parseInt(e.css("padding-top"),10);var r=parseInt(e.css("padding-bottom"),10);n.top-=c(window).scrollTop()-i;var o={width:e.width(),height:(g?e.innerHeight():e[0].offsetHeight)-r-i};if(B()){o["-moz-transform"]=o["transform"]="translate("+n.left+"px,"+n.top+"px)"}else{o.left=n.left;o.top=n.top}return o}}});var q="iframe",Z="//about:blank",H=function(t){if(m.currTemplate[q]){var e=m.currTemplate[q].find("iframe");if(e.length){if(!t){e[0].src=Z}if(m.isIE8){e.css("display",t?"block":"none")}}}};c.magnificPopup.registerModule(q,{options:{markup:'<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+"</div>",srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(q);w("BeforeChange",function(t,e,n){if(e!==n){if(e===q){H()}else if(n===q){H(true)}}});w(u+"."+q,function(){H()})},getIframe:function(t,e){var n=t.src;var i=m.st.iframe;c.each(i.patterns,function(){if(n.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){n=n.substr(n.lastIndexOf(this.id)+this.id.length,n.length)}else{n=this.id.call(this,n)}}n=this.src.replace("%id%",n);return false}});var r={};if(i.srcAction){r[i.srcAction]=n}m._parseMarkup(e,r,t);m.updateStatus("ready");return e}}});var V=function(t){var e=m.items.length;if(t>e-1){return t-e}else if(t<0){return e+t}return t},W=function(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)};c.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,t=".mfp-gallery";m.direction=true;if(!o||!o.enabled)return false;b+=" mfp-gallery";w(h+t,function(){if(o.navigateByImgClick){m.wrap.on("click"+t,".mfp-img",function(){if(m.items.length>1){m.next();return false}})}_.on("keydown"+t,function(t){if(t.keyCode===37){m.prev()}else if(t.keyCode===39){m.next()}})});w("UpdateStatus"+t,function(t,e){if(e.text){e.text=W(e.text,m.currItem.index,m.items.length)}});w(f+t,function(t,e,n,i){var r=m.items.length;n.counter=r>1?W(o.tCounter,i.index,r):""});w("BuildControls"+t,function(){if(m.items.length>1&&o.arrows&&!m.arrowLeft){var t=o.arrowMarkup,e=m.arrowLeft=c(t.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(a),n=m.arrowRight=c(t.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(a);e.click(function(){m.prev()});n.click(function(){m.next()});m.container.append(e.add(n))}});w(r+t,function(){if(m._preloadTimeout)clearTimeout(m._preloadTimeout);m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages();m._preloadTimeout=null},16)});w(u+t,function(){_.off(t);m.wrap.off("click"+t);m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=true;m.index=V(m.index+1);m.updateItemHTML()},prev:function(){m.direction=false;m.index=V(m.index-1);m.updateItemHTML()},goTo:function(t){m.direction=t>=m.index;m.index=t;m.updateItemHTML()},preloadNearbyImages:function(){var t=m.st.gallery.preload,e=Math.min(t[0],m.items.length),n=Math.min(t[1],m.items.length),i;for(i=1;i<=(m.direction?n:e);i++){m._preloadItem(m.index+i)}for(i=1;i<=(m.direction?e:n);i++){m._preloadItem(m.index-i)}},_preloadItem:function(t){t=V(t);if(m.items[t].preloaded){return}var e=m.items[t];if(!e.parsed){e=m.parseEl(t)}T("LazyLoad",e);if(e.type==="image"){e.img=c('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=true}).on("error.mfploader",function(){e.hasSize=true;e.loadError=true;T("LazyLoadError",e)}).attr("src",e.src)}e.preloaded=true}}});var U="retina";c.magnificPopup.registerModule(U,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=m.st.retina,i=n.ratio;i=!isNaN(i)?i:i();if(i>1){w("ImageHasSize"+"."+U,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})});w("ElementParse"+"."+U,function(t,e){e.src=n.replaceSrc(e,i)})}}}}}),P()})?t.apply(r,e):t)||(i.exports=n)}()}).call(this,o(1))},function(t,e,n){"use strict";n.r(e);n(139),n(140),n(142),n(144);var i={};function r(i){return new Promise(function(t,e){var n=new XMLHttpRequest;n.open("GET",i,n.withCredentials=!0),n.onload=function(){200===n.status?t():e()},n.send()})}var o,s=(o=document.createElement("link")).relList&&o.relList.supports&&o.relList.supports("prefetch")?function(i){return new Promise(function(t,e){var n=document.createElement("link");n.rel="prefetch",n.href=i,n.onload=t,n.onerror=e,document.head.appendChild(n)})}:r;var a=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},u=new Set,l=window.IntersectionObserver&&new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){var e=t.target;u.has(e.href)&&(l.unobserve(e),c(e.href))}})});function c(t){u.delete(t),function(t,e,n){if(!(i[t]||(n=navigator.connection)&&((n.effectiveType||"").includes("2g")||n.saveData)))(e?function(t){return null==self.fetch?r(t):fetch(t,{credentials:"include"})}:s)(t).then(function(){i[t]=!0})}(new URL(t,location.href).toString(),l.priority)}var f=function(t){t=t||{},l&&(l.priority=t.priority||!1);var e=t.origins||[location.hostname],n=t.ignores||[];(t.timeoutFn||a)(function(){t.urls?t.urls.forEach(c):l&&Array.from((t.el||document).querySelectorAll("a"),function(t){l.observe(t),e.length&&!e.includes(t.hostname)||function e(n,t){return Array.isArray(t)?t.some(function(t){return e(n,t)}):(t.test||t).call(t,n.href,n)}(t,n)||u.add(t.href)})},{timeout:t.timeout||2e3})},h=(n(146),n(1)),d=n.n(h),p=(n(348),n(349),n(136),n(99)),m=n.n(p),g=function(t,e){for(var n,i=t.length,r=0;r<t.length;r++)(n=new Image).onload=function(){--i<=0&&e()},n.src=t[r]},v=function(t){var e=t.querySelector("iframe"),n=t.querySelector("video");if(e){var i=e.src;e.src=i}n&&n.pause()},y=function(e,t,n){var i=n,r=t;r&&r.addEventListener("click",function(t){return t.stopPropagation(),t.preventDefault(),m.a.enabled&&i&&(i.classList.toggle("fullscreen",!i.classList.contains("fullscreen")),t.target.classList.toggle("fullscreen",!t.target.classList.contains("fullscreen")),m.a.toggle(i),e.forEach(function(t){(function(n){return new Promise(function(e,t){n||t(new Error("No map!")),setTimeout(function(){var t=document.querySelector(".mfp-content");t?n._container===t.getElementsByTagName("figure")[0].children[0]&&e(n.invalidateSize()):e(n.invalidateSize())},250)})})(t).catch(function(t){return console.log(t)})})),!1})},_=n(137),x=n.n(_);function b(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var w=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.index=this.buildIndex(t),this.contentList=t}return function(t,e,n){e&&b(t.prototype,e),n&&b(t,n)}(e,[{key:"buildIndex",value:function(t){return x()(function(){var e=this;this.field("title",{boost:100}),this.field("url",{boost:10}),this.field("content"),this.ref("id"),t.forEach(function(t){e.add(t)})})}},{key:"search",value:function(t){var e=this;return this.index.search(t).map(function(t){return e.contentList[t.ref]})}}]),e}(),S=n(138),T=n.n(S);function E(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var P=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.boundKeyboardListener=this.keyboardListener.bind(this),this.addListeners()}return function(t,e,n){e&&E(t.prototype,e),n&&E(t,n)}(t,[{key:"prev",value:function(){var t=document.getElementById("js-prev");t&&t.click()}},{key:"next",value:function(){var t=document.getElementById("js-next");t&&t.click()}},{key:"keyboardListener",value:function(t){37==t.which&&(this.prev(),t.preventDefault()),39==t.which&&(this.next(),t.preventDefault())}},{key:"swipeListener",value:function(t){t.deltaX<0?this.next():this.prev()}},{key:"addListeners",value:function(){document.addEventListener("keyup",this.boundKeyboardListener,!1);var t=document.getElementById("main");this.hammer=new T.a(t),this.hammer.on("swipe",this.boundSwipeListener)}},{key:"removeListeners",value:function(){document.removeEventListener("keyup",this.boundKeyboardListener,!1),this.hammer.destroy()}},{key:"teardown",value:function(){this.removeListeners()}}]),t}(),L=n(54),C=n(70);n(352);function k(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n(354);var I=function(t,i){function e(t){function e(t){t?(d()(".mfp-title").hide(),t.caption=d()(t.currItem.el).find(".figure-caption").html()||d()(t.currItem.el).parent().find("figcaption").html(),void 0!==t.caption&&(t.captionCont='<div class="quire-caption-container"><span class="caption">'.concat(t.caption,"</span></div>"),d()(".mfp-wrap").prepend(t.captionCont))):d()(".quire-caption-container")&&d()(".quire-caption-container").remove()}switch(e(),t.currItem.type){case"inline":case"iframe":case"image":e(t);break;default:e()}}var r='\n <div \n class="leaflet-control-fullscreen leaflet-bar leaflet-control remove-from-epub"\n >\n <a\n id="toggleFullscreen" \n class="leaflet-control-fullscreen-button leaflet-bar-part" \n href="#" \n title="View Fullscreen" \n style="outline: none;">\n </a>\n </div>\n ';!function(){k(document.querySelectorAll(".quire-figure--group")).filter(function(t){return t}).map(function(t){return[d()(t).find(".viewSlides"),d()(t).find("a:first")]}).forEach(function(e){d()(e[0]).on("click",function(t){t.preventDefault(),d()(e[1]).click()})})}(),d()(t).magnificPopup({delegate:"a.popup",type:"image",closeBtnInside:!1,closeOnBgClick:!1,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"hidden",image:{titleSrc:function(t){return t.el.find(".figure-caption-container").html()}},gallery:{enabled:!0,preload:[0,2],navigateByImgClick:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><span class="mfp-prevent-close arrow-img-%dir%"></span></button>',tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close"></button>'},callbacks:{beforeOpen:function(){!function(){k(document.querySelectorAll(".quire-figure")).filter(function(t){return void 0!==k(t.children)[0].src&&k(t.children)[0].src.indexOf("soundcloud")?k(t.children)[0]:""}).map(function(t){var e=k(t.children)[0].id;return SC.Widget(e)}).forEach(function(t){return t.pause()})}(),d()("body").addClass("android-fixed"),this.current=this.index+1,this.total=this.items.length-1,this.counter='<span class="counter">'.concat(this.current," of ").concat(this.items.length,"</span>"),this.cont='<div class="quire-counter-container">'.concat(this.counter,"</div>")},elementParse:function(t){"video"===t.el[0].getAttribute("data-type")?(t.type="iframe",t.iframe={patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}}):"inline"===t.el[0].getAttribute("data-type")?t.type="inline":(t.type="image",t.tLoading="Loading image #%curr%...",t.mainClass="mfp-img-mobile",t.image={tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'})},change:function(){this.current=this.index+1,document.querySelector(".counter")&&(document.querySelector(".counter").innerHTML="".concat(this.current," of ").concat(this.items.length)),e(this);var n=this.content.children()[0].id;""===n&&void 0===n||(-1!==n.indexOf("map")&&setTimeout(function(){new C.a(n)},0),-1!==n.indexOf("deepzoom")&&setTimeout(function(){var t=d()("#".concat(n)).attr("src"),e=new Image;e.src=t,e.onload=function(){new L.a(n,i)}},0),-1!==n.indexOf("iiif")&&setTimeout(function(){new L.a(n,i)},0)),d()(".mfp-content").prepend(r)},resize:function(){},open:function(){e(this),d()(".mfp-wrap").prepend(this.cont),d()(".mfp-content").prepend(r),y(i,document.getElementById("toggleFullscreen"),document.querySelector(".mfp-wrap"))},beforeClose:function(){d()("body").removeClass("android-fixed"),d()(".quire-counter-container, .quire-caption-container").remove()},close:function(){},afterClose:function(){},markupParse:function(){},updateStatus:function(){},imageLoadComplete:function(){},parseAjax:function(){},ajaxContentAdded:function(){}}})};function M(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var A,O=[];function N(t){return M(document.querySelectorAll(t)).forEach(function(t){var e=t.getAttribute("id");new C.a(e)})}function z(t,n){return M(document.querySelectorAll(t)).forEach(function(t){var e=t.getAttribute("id");new L.a(e,n)})}function R(t,e,n){e.stopPropagation();var i=d()(".leaflet-image-layer");i.hide();var r=d()(".quire-entry__image__group-container"),o=r.children(".first-image"),s=r.children(".last-image"),a=r.children(".current-image"),u=a.next("figure"),l=a.prev("figure");v(document.querySelector(".current-image")),a.hide(),a.removeClass("current-image"),"next"==t?a.hasClass("last-image")?(o.addClass("current-image"),o.css("display","flex"),o.removeClass("visually-hidden")):(u.addClass("current-image"),u.css("display","flex"),u.removeClass("visually-hidden")):"prev"==t&&(a.hasClass("first-image")?(s.addClass("current-image"),s.css("display","flex"),s.removeClass("visually-hidden")):(l.addClass("current-image"),l.css("display","flex"),l.removeClass("visually-hidden"))),n.forEach(function(t){(function(n){return new Promise(function(t,e){n||e(new Error("No map!")),setTimeout(function(){t(n.invalidateSize())},250)})})(t).then(function(){i.fadeIn({duration:"fast"})}).catch(function(t){return console.log(t)})})}function F(){!function(){var t=d()(".cite-current-date"),e={year:"numeric",month:"short",day:"numeric"},n=new Date,i=-1!==n.toLocaleDateString("en-US",e).indexOf("May")?n.toLocaleDateString("en-US",e):[n.toLocaleDateString("en-US",e).slice(0,3),". ",n.toLocaleDateString("en-US",e).slice(4)].join("");t.empty(),t.text(i)}(),function(){var t=M(document.getElementsByTagName("a"));t=t.filter(function(t){return t.hostname===window.location.hostname}),f({urls:t,timeout:4e3,ignores:[/tel:/g,/mailto:/g,/#(.+)/,function(t){return t.includes("tel:")},function(t){return t.includes("mailto:")},function(t){return t.includes("#")},function(t){return t.includes(".zip")},function(t){return t.includes(".epub")},function(t){return t.includes(".pdf")},function(t){return t.includes(".mobi")}]})}(),function(){for(var t=document.getElementById("nav").getElementsByTagName("a"),e=window.location.protocol+"//"+window.location.host+window.location.pathname,n=0;n<t.length;n++)t[n].href==e&&(t[n].className="active")}(),function(){y(O,document.getElementById("toggleFullscreen"),document.getElementById("quire-entry__image")),d()(".quire-entry__image__group-container").each(function(){var n=d()(this).find("figure");n.each(function(t,e){1<n.length&&d()(e).find(".quire-image-counter-download-container").append('<div class="quire-counter-container"><span class="counter">'.concat(t+1," of ").concat(n.length,"</span></div>"))});var t=d()(n.first()),e=d()(n.last());n.addClass("visually-hidden"),t.addClass("current-image first-image"),t.removeClass("visually-hidden"),t.css("display","flex"),e.addClass("last-image")});var t=M(document.querySelectorAll(".quire-deepzoom-entry")).filter(function(t){return null!==t.getAttribute("src")?t:""}).map(function(t){return t.getAttribute("src")});g(t,function(){N(".quire-map-entry"),z(".quire-deepzoom-entry",O)})}(),function(){A=A||new P}(),function(t){y(O,document.getElementById("toggleFullscreen"),document.querySelector(".mfp-wrap")),t?I(".q-figure__wrapper",O):(N(".quire-map"),z(".quire-deepzoom",O))}(figureModal),function(){for(var t=document.querySelectorAll(".expandable [aria-expanded]"),e=0;e<t.length;e++)t[e].addEventListener("click",function(t){t.stopPropagation(),"false"===t.target.getAttribute("aria-expanded")?t.target.setAttribute("aria-expanded","true"):t.target.setAttribute("aria-expanded","false");var e=t.target.parentNode.querySelector(".quire-citation__content");e&&(e.getAttribute("hidden"),"string"==typeof e.getAttribute("hidden")?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"))});document.addEventListener("click",function(t){var e=t.target.parentNode;if(e&&!e.classList.contains("quire-citation")&&!e.classList.contains("quire-citation__content")){var n=document.querySelectorAll(".quire-citation__button"),i=document.querySelectorAll(".quire-citation__content");if(!i)return;for(var r=0;r<i.length;r++){if(!n[r])return;n[r].setAttribute("aria-expanded","false"),i[r].setAttribute("hidden","hidden")}}})}();var t=document.getElementById("prev-image"),e=document.getElementById("next-image");t&&t.addEventListener("click",function(t){return R("prev",t,O)},!1),e&&e.addEventListener("click",function(t){return R("next",t,O)},!1)}window.toggleMenu=function(){var t=document.getElementById("site-menu");document.getElementsByClassName;var e=t.getAttribute("aria-expanded");t.classList.toggle("is-expanded",!t.classList.contains("is-expanded")),"true"===e?(d()(".side-by-side > .quire-entry__image-wrap > .quire-entry__image").removeClass("menu_open"),t.setAttribute("aria-expanded","false")):(d()(".side-by-side > .quire-entry__image-wrap > .quire-entry__image").addClass("menu_open"),t.setAttribute("aria-expanded","true"))},window.toggleSearch=function(){var t=document.getElementById("js-search"),e=document.getElementById("js-search-input"),n=t.getAttribute("aria-expanded");t.classList.toggle("is-active",!t.classList.contains("is-active")),"true"===n?t.setAttribute("aria-expanded","false"):(e.focus(),t.setAttribute("aria-expanded","true"))},window.search=function(){var t=document.getElementById("js-search-input").value,e=window.QUIRE_SEARCH,s=document.getElementById("js-search-results-list"),a=document.getElementById("js-search-results-template");3<=t.length&&function(t){(function(){s.innerText=""})(),t.forEach(function(t){var e=document.importNode(a.content,!0),n=e.querySelector(".js-search-results-item"),i=e.querySelector(".js-search-results-item-title"),r=e.querySelector(".js-search-results-item-type"),o=e.querySelector(".js-search-results-item-length");n.href=t.url,i.textContent=t.title,r.textContent=t.type,o.textContent=t.length,s.appendChild(e)})}(e.search(t))},function(){document.getElementById("container").classList.remove("no-js");var t=[];navigator.userAgent.match(/(iPad|iPhone|iPod)/i)&&t.push("device-ios"),navigator.userAgent.match(/android/i)&&t.push("device-android"),t.length&&t.push("on-device"),function(){var t=d()("#js-search").data("search-index");d.a.get(t,{cache:!0}).done(function(t){t="string"==typeof t?JSON.parse(t):t,window.QUIRE_SEARCH=new w(t)})}(),function(){d()('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(t){this.pathname.includes(window.location.pathname)&&(t.preventDefault(),window.location.hash=this.hash);var e=this.hash.replace(":","\\:");e=e.replace(".","\\.");var n=d()(e);(n=n.length?n:d()("[name="+this.hash.slice(1)+"]")).length&&d()("html, body").animate({scrollTop:n.offset().top-d()(".quire-navbar").height()-7},1,function(){var t=d()(n);if(t.focus(),t.is(":focus"))return!1;t.attr("tabindex","-1"),t.focus()})})}()}(),d()(window).ready(function(){F(),function(){if(window.location.hash){var t=window.location.hash;t=(t=t.replace(":","\\:")).replace(".","\\."),d()("html, body").animate({scrollTop:d()(t).offset().top-d()(".quire-navbar").height()-7},75,"swing")}}()})}]);
|