{"size": 326924, "ext": "js", "max_stars_repo_path": "www/extensions/Viewing.Extension.Markup3D.min.js", "max_stars_repo_name": "EdenOo2017/Eden-Model-Viewer", "max_stars_repo_stars_event_min_datetime": "2017-03-12T05:22:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-08T10:43:19.000Z", "max_issues_repo_path": "www/extensions/Viewing.Extension.Markup3D.min.js", "max_issues_repo_name": "EdenOo2017/Eden-Model-Viewer", "max_issues_repo_issues_event_min_datetime": "2017-05-30T22:52:37.000Z", "max_issues_repo_issues_event_max_datetime": "2018-01-17T18:30:45.000Z", "max_forks_repo_path": "www/extensions/Viewing.Extension.Markup3D.min.js", "max_forks_repo_name": "EdenOo2017/Eden-Model-Viewer", "max_forks_repo_forks_event_min_datetime": "2017-04-16T13:30:08.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-16T07:10:59.000Z"}
{"max_stars_count": 48, "max_issues_count": 7, "max_forks_count": 46, "avg_line_length": 29720.3636363636, "max_line_length": 32052, "alphanum_fraction": 0.6442414751}
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["Viewing.Extension.Markup3D"]=e():t["Viewing.Extension.Markup3D"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(152),v=(r(d),n(194)),g=r(v),y=n(104),m=r(y),x=n(155),b=r(x),w=n(102),_=r(w),k=function(t){function e(t,n){(0,u.default)(this,e);var r=(0,f.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n));r.markupCollection={},r.markup3DTool=new g.default(t,r.markupCollection,n),r.tooltip=new b.default(t),r.tooltip.setContent('\n      <div id="markup3D-tooltipId" class="markup3D-tooltip">\n        <b>Place new markup (or ESC) ...</b>\n      </div>',"#markup3D-tooltipId"),r._viewer.toolController.registerTool(r.markup3DTool);var i=r.markup3DTool.getName();return r._viewer.toolController.activateTool(i),r.onExplodeHandler=function(t){return r.onExplode(t)},r.onVisibilityHandler=function(t){return r.onVisibility(t)},r}return(0,h.default)(e,t),(0,c.default)(e,[{key:"load",value:function(){var t=this;if(this._control=_.default.createButton("toolbar-markup3D","glyphicon glyphicon-check","Markup 3D",function(){t.markup3DTool.create?t.markup3DTool.stopCreate():t.markup3DTool.startCreate()}),this.parentControl=this._options.parentControl,!this.parentControl){var e=this._viewer.getToolbar(!0);this.parentControl=new Autodesk.Viewing.UI.ControlGroup("markup"),e.addControl(this.parentControl)}return this.parentControl.addControl(this._control),this.markup3DTool.on("startCreate",function(){t.tooltip.activate(),t._control.container.classList.add("active")}),this.markup3DTool.on("pinSelected",function(){t.tooltip.deactivate()}),this.markup3DTool.on("markupCreated",function(){}),this.markup3DTool.on("stopCreate",function(){t.tooltip.deactivate(),t._control.container.classList.remove("active")}),this.markup3DTool.on("markupLabel.mouseover",function(e){t.tooltip.deactivate()}),this.markup3DTool.on("markupLabel.mouseout",function(e){if(t.markup3DTool.create){var n=t.markup3DTool.currentMarkup;n?n.created&&!n.dragging&&t.tooltip.activate():t.tooltip.activate()}}),this.eventHandlers=[{event:Autodesk.Viewing.EXPLODE_CHANGE_EVENT,handler:this.onExplodeHandler},{event:Autodesk.Viewing.ISOLATE_EVENT,handler:this.onVisibilityHandler},{event:Autodesk.Viewing.HIDE_EVENT,handler:this.onVisibilityHandler},{event:Autodesk.Viewing.SHOW_EVENT,handler:this.onVisibilityHandler}],this.eventHandlers.forEach(function(e){t._viewer.addEventListener(e.event,e.handler)}),console.log("Viewing.Extension.Markup3D loaded"),!0}},{key:"unload",value:function(){var t=this;return this.eventHandlers.forEach(function(e){e.removeOnDeactivate&&t._viewer.removeEventListener(e.event,e.handler)}),this.parentControl.removeControl(this._control),this._viewer.toolController.deactivateTool(this.markup3DTool.getName()),console.log("Viewing.Extension.Markup3D unloaded"),!0}},{key:"getState",value:function(t){this.markup3DTool.getState(t)}},{key:"restoreState",value:function(t,e){this.markup3DTool.restoreState(t,e)}},{key:"onExplode",value:function(t){for(var e in this.markupCollection){var n=this.markupCollection[e];n.updateFragmentTransform()}}},{key:"onVisibility",value:function(t){for(var e in this.markupCollection){var n=this.markupCollection[e];n.updateVisibilty(t)}}}],[{key:"ExtensionId",get:function(){return"Viewing.Extension.Markup3D"}}]),e}(m.default);Autodesk.Viewing.theExtensionManager.registerExtension(k.ExtensionId,k)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},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,n){var r=n(34)("wks"),i=n(23),o=n(2).Symbol,a="function"==typeof o,u=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};u.store=r},function(t,e,n){var r=n(7),i=n(46),o=n(36),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(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 r=n(2),i=n(1),o=n(18),a=n(10),u="prototype",s=function(t,e,n){var c,l,f,p=t&s.F,h=t&s.G,d=t&s.S,v=t&s.P,g=t&s.B,y=t&s.W,m=h?i:i[e]||(i[e]={}),x=m[u],b=h?r:d?r[e]:(r[e]||{})[u];h&&(n=e);for(c in n)l=!p&&b&&void 0!==b[c],l&&c in m||(f=l?b[c]:n[c],m[c]=h&&"function"!=typeof b[c]?n[c]:g&&l?o(f,r):y&&b[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&s.R&&x&&!x[c]&&a(x,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(49),i=n(32);t.exports=function(t){return r(i(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(4),i=n(20);t.exports=n(6)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(80),o=r(i);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports={default:n(85),__esModule:!0}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(81),o=r(i),a=n(57),u=r(a),s=n(37),c=r(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(37),o=r(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){var r=n(38);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(47),i=n(31);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(4).f,i=n(9),o=n(3)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports=!0},function(t,e,n){var r,i;!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function a(t){var e=!!t&&"length"in t&&t.length,n=ct.type(t);return"function"!==n&&!ct.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function u(t,e,n){if(ct.isFunction(e))return ct.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ct.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(xt.test(e))return ct.filter(e,t,n);e=ct.filter(e,t)}return ct.grep(t,function(t){return rt.call(e,t)>-1!==n})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={};return ct.each(t.match(Tt)||[],function(t,n){e[n]=!0}),e}function l(){Q.removeEventListener("DOMContentLoaded",l),n.removeEventListener("load",l),ct.ready()}function f(){this.expando=ct.expando+f.uid++}function p(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(It,"-$&").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Pt.test(n)?ct.parseJSON(n):n)}catch(t){}At.set(t,e,n)}else n=void 0;return n}function h(t,e,n,r){var i,o=1,a=20,u=r?function(){return r.cur()}:function(){return ct.css(t,e,"")},s=u(),c=n&&n[3]||(ct.cssNumber[e]?"":"px"),l=(ct.cssNumber[e]||"px"!==c&&+s)&&Ot.exec(ct.css(t,e));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+s||1;do o=o||".5",l/=o,ct.style(t,e,l+c);while(o!==(o=u()/s)&&1!==o&&--a)}return n&&(l=+l||+s||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function d(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ct.nodeName(t,e)?ct.merge([t],n):n}function v(t,e){for(var n=0,r=t.length;n<r;n++)jt.set(t[n],"globalEval",!e||jt.get(e[n],"globalEval"))}function g(t,e,n,r,i){for(var o,a,u,s,c,l,f=e.createDocumentFragment(),p=[],h=0,g=t.length;h<g;h++)if(o=t[h],o||0===o)if("object"===ct.type(o))ct.merge(p,o.nodeType?[o]:o);else if(qt.test(o)){for(a=a||f.appendChild(e.createElement("div")),u=(Rt.exec(o)||["",""])[1].toLowerCase(),s=zt[u]||zt._default,a.innerHTML=s[1]+ct.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;ct.merge(p,a.childNodes),a=f.firstChild,a.textContent=""}else p.push(e.createTextNode(o));for(f.textContent="",h=0;o=p[h++];)if(r&&ct.inArray(o,r)>-1)i&&i.push(o);else if(c=ct.contains(o.ownerDocument,o),a=d(f.appendChild(o),"script"),c&&v(a),n)for(l=0;o=a[l++];)Bt.test(o.type||"")&&n.push(o);return f}function y(){return!0}function m(){return!1}function x(){try{return Q.activeElement}catch(t){}}function b(t,e,n,r,i,o){var a,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(u in e)b(t,u,n,r,e[u],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=m;else if(!i)return t;return 1===o&&(a=i,i=function(t){return ct().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ct.guid++)),t.each(function(){ct.event.add(this,e,i,r,n)})}function w(t,e){return ct.nodeName(t,"table")&&ct.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function _(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function k(t){var e=Xt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function C(t,e){var n,r,i,o,a,u,s,c;if(1===e.nodeType){if(jt.hasData(t)&&(o=jt.access(t),a=jt.set(e,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)ct.event.add(e,i,c[i][n])}At.hasData(t)&&(u=At.access(t),s=ct.extend({},u),At.set(e,s))}}function T(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Ft.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function S(t,e,n,r){e=et.apply([],e);var i,o,a,u,s,c,l=0,f=t.length,p=f-1,h=e[0],v=ct.isFunction(h);if(v||f>1&&"string"==typeof h&&!ut.checkClone&&Gt.test(h))return t.each(function(i){var o=t.eq(i);v&&(e[0]=h.call(this,i,o.html())),S(o,e,n,r)});if(f&&(i=g(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=ct.map(d(i,"script"),_),u=a.length;l<f;l++)s=i,l!==p&&(s=ct.clone(s,!0,!0),u&&ct.merge(a,d(s,"script"))),n.call(t[l],s,l);if(u)for(c=a[a.length-1].ownerDocument,ct.map(a,k),l=0;l<u;l++)s=a[l],Bt.test(s.type||"")&&!jt.access(s,"globalEval")&&ct.contains(c,s)&&(s.src?ct._evalUrl&&ct._evalUrl(s.src):ct.globalEval(s.textContent.replace(Yt,"")))}return t}function E(t,e,n){for(var r,i=e?ct.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ct.cleanData(d(r)),r.parentNode&&(n&&ct.contains(r.ownerDocument,r)&&v(d(r,"script")),r.parentNode.removeChild(r));return t}function M(t,e){var n=ct(e.createElement(t)).appendTo(e.body),r=ct.css(n[0],"display");return n.detach(),r}function j(t){var e=Q,n=Jt[t];return n||(n=M(t,e),"none"!==n&&n||(Kt=(Kt||ct("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Kt[0].contentDocument,e.write(),e.close(),n=M(t,e),Kt.detach()),Jt[t]=n),n}function A(t,e,n){var r,i,o,a,u=t.style;return n=n||te(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||ct.contains(t.ownerDocument,t)||(a=ct.style(t,e)),n&&!ut.pixelMarginRight()&&Qt.test(a)&&Zt.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o),void 0!==a?a+"":a}function P(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function I(t){if(t in ue)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ae.length;n--;)if(t=ae[n]+e,t in ue)return t}function N(t,e,n){var r=Ot.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function O(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ct.css(t,n+Dt[o],!0,i)),r?("content"===n&&(a-=ct.css(t,"padding"+Dt[o],!0,i)),"margin"!==n&&(a-=ct.css(t,"border"+Dt[o]+"Width",!0,i))):(a+=ct.css(t,"padding"+Dt[o],!0,i),"padding"!==n&&(a+=ct.css(t,"border"+Dt[o]+"Width",!0,i)));return a}function D(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=te(t),a="border-box"===ct.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=A(t,e,o),(i<0||null==i)&&(i=t.style[e]),Qt.test(i))return i;r=a&&(ut.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+O(t,e,n||(a?"border":"content"),r,o)+"px"}function L(t,e){for(var n,r,i,o=[],a=0,u=t.length;a<u;a++)r=t[a],r.style&&(o[a]=jt.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[a]=jt.access(r,"olddisplay",j(r.nodeName)))):(i=Lt(r),"none"===n&&i||jt.set(r,"olddisplay",i?n:ct.css(r,"display"))));for(a=0;a<u;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function F(t,e,n,r,i){return new F.prototype.init(t,e,n,r,i)}function R(){return n.setTimeout(function(){se=void 0}),se=ct.now()}function B(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=Dt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function z(t,e,n){for(var r,i=(V.tweeners[e]||[]).concat(V.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function q(t,e,n){var r,i,o,a,u,s,c,l,f=this,p={},h=t.style,d=t.nodeType&&Lt(t),v=jt.get(t,"fxshow");n.queue||(u=ct._queueHooks(t,"fx"),null==u.unqueued&&(u.unqueued=0,s=u.empty.fire,u.empty.fire=function(){u.unqueued||s()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,ct.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=ct.css(t,"display"),l="none"===c?jt.get(t,"olddisplay")||j(t.nodeName):c,"inline"===l&&"none"===ct.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],le.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;d=!0}p[r]=v&&v[r]||ct.style(t,r)}else c=void 0;if(ct.isEmptyObject(p))"inline"===("none"===c?j(t.nodeName):c)&&(h.display=c);else{v?"hidden"in v&&(d=v.hidden):v=jt.access(t,"fxshow",{}),o&&(v.hidden=!d),d?ct(t).show():f.done(function(){ct(t).hide()}),f.done(function(){var e;jt.remove(t,"fxshow");for(e in p)ct.style(t,e,p[e])});for(r in p)a=z(d?v[r]:0,r,f),r in v||(v[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function H(t,e){var n,r,i,o,a;for(n in t)if(r=ct.camelCase(n),i=e[r],o=t[n],ct.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=ct.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function V(t,e,n){var r,i,o=0,a=V.prefilters.length,u=ct.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var e=se||R(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(o);return u.notifyWith(t,[c,o,n]),o<1&&s?n:(u.resolveWith(t,[c]),!1)},c=u.promise({elem:t,props:ct.extend({},e),opts:ct.extend(!0,{specialEasing:{},easing:ct.easing._default},n),originalProperties:e,originalOptions:n,startTime:se||R(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ct.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(u.notifyWith(t,[c,1,0]),u.resolveWith(t,[c,e])):u.rejectWith(t,[c,e]),this}}),l=c.props;for(H(l,c.opts.specialEasing);o<a;o++)if(r=V.prefilters[o].call(c,t,l,c.opts))return ct.isFunction(r.stop)&&(ct._queueHooks(c.elem,c.opts.queue).stop=ct.proxy(r.stop,r)),r;return ct.map(l,z,c),ct.isFunction(c.opts.start)&&c.opts.start.call(t,c),ct.fx.timer(ct.extend(s,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function W(t){return t.getAttribute&&t.getAttribute("class")||""}function U(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(Tt)||[];if(ct.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $(t,e,n,r){function i(u){var s;return o[u]=!0,ct.each(t[u]||[],function(t,u){var c=u(e,n,r);return"string"!=typeof c||a||o[c]?a?!(s=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),s}var o={},a=t===Ae;return i(e.dataTypes[0])||!o["*"]&&i("*")}function G(t,e){var n,r,i=ct.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&ct.extend(!0,t,r),t}function X(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}function Y(t,e,n,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=c[s+" "+o]||c["* "+o],!a)for(i in c)if(u=i.split(" "),u[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=u[0],l.unshift(u[1]));break}if(a!==!0)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}function K(t,e,n,r){var i;if(ct.isArray(e))ct.each(e,function(e,i){n||Oe.test(t)?r(t,i):K(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ct.type(e))r(t,e);else for(i in e)K(t+"["+i+"]",e[i],n,r)}function J(t){return ct.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Z=[],Q=n.document,tt=Z.slice,et=Z.concat,nt=Z.push,rt=Z.indexOf,it={},ot=it.toString,at=it.hasOwnProperty,ut={},st="2.2.4",ct=function(t,e){return new ct.fn.init(t,e)},lt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ft=/^-ms-/,pt=/-([\da-z])/gi,ht=function(t,e){return e.toUpperCase()};ct.fn=ct.prototype={jquery:st,constructor:ct,selector:"",length:0,toArray:function(){return tt.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:tt.call(this)},pushStack:function(t){var e=ct.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ct.each(this,t)},map:function(t){return this.pushStack(ct.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(tt.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(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:nt,sort:Z.sort,splice:Z.splice},ct.extend=ct.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[u]||{},u++),"object"==typeof a||ct.isFunction(a)||(a={}),u===s&&(a=this,u--);u<s;u++)if(null!=(t=arguments[u]))for(e in t)n=a[e],r=t[e],a!==r&&(c&&r&&(ct.isPlainObject(r)||(i=ct.isArray(r)))?(i?(i=!1,o=n&&ct.isArray(n)?n:[]):o=n&&ct.isPlainObject(n)?n:{},a[e]=ct.extend(c,o,r)):void 0!==r&&(a[e]=r));return a},ct.extend({expando:"jQuery"+(st+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ct.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ct.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ct.type(t)||t.nodeType||ct.isWindow(t))return!1;if(t.constructor&&!at.call(t,"constructor")&&!at.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||at.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?it[ot.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ct.trim(t),t&&(1===t.indexOf("use strict")?(e=Q.createElement("script"),e.text=t,Q.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ft,"ms-").replace(pt,ht)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(a(t))for(n=t.length;r<n&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(lt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(a(Object(t))?ct.merge(n,"string"==typeof t?[t]:t):nt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:rt.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,u=!n;o<a;o++)r=!e(t[o],o),r!==u&&i.push(t[o]);return i},map:function(t,e,n){var r,i,o=0,u=[];if(a(t))for(r=t.length;o<r;o++)i=e(t[o],o,n),null!=i&&u.push(i);else for(o in t)i=e(t[o],o,n),null!=i&&u.push(i);return et.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),ct.isFunction(t))return r=tt.call(arguments,2),i=function(){return t.apply(e||this,r.concat(tt.call(arguments)))},i.guid=t.guid=t.guid||ct.guid++,i},now:Date.now,support:ut}),"function"==typeof Symbol&&(ct.fn[Symbol.iterator]=Z[Symbol.iterator]),ct.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){it["[object "+e+"]"]=e.toLowerCase()});var dt=function(t){function e(t,e,n,r){var i,o,a,u,s,c,f,h,d=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&((e?e.ownerDocument||e:z)!==I&&P(e),e=e||I,O)){if(11!==v&&(c=yt.exec(t)))if(i=c[1]){if(9===v){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&R(e,a)&&a.id===i)return n.push(a),n}else{if(c[2])return Z.apply(n,e.getElementsByTagName(t)),n;if((i=c[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Z.apply(n,e.getElementsByClassName(i)),n}if(w.qsa&&!U[t+" "]&&(!D||!D.test(t))){if(1!==v)d=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(xt,"\\$&"):e.setAttribute("id",u=B),f=T(t),o=f.length,s=pt.test(u)?"#"+u:"[id='"+u+"']";o--;)f[o]=s+" "+p(f[o]);h=f.join(","),d=mt.test(t)&&l(e.parentNode)||e}if(h)try{return Z.apply(n,d.querySelectorAll(h)),n}catch(t){}finally{u===B&&e.removeAttribute("id")}}}return E(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[B]=!0,t}function i(t){var e=I.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function u(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function s(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function p(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function h(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var u,s,c,l=[q,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(c=e[B]||(e[B]={}),s=c[e.uniqueID]||(c[e.uniqueID]={}),(u=s[r])&&u[0]===q&&u[1]===o)return l[2]=u[2];if(s[r]=l,l[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function v(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function g(t,e,n,r,i){for(var o,a=[],u=0,s=t.length,c=null!=e;u<s;u++)(o=t[u])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(u)));return a}function y(t,e,n,i,o,a){return i&&!i[B]&&(i=y(i)),o&&!o[B]&&(o=y(o,a)),r(function(r,a,u,s){var c,l,f,p=[],h=[],d=a.length,y=r||v(e||"*",u.nodeType?[u]:u,[]),m=!t||!r&&e?y:g(y,p,t,u,s),x=n?o||(r?t:d||i)?[]:a:m;if(n&&n(m,x,u,s),i)for(c=g(x,h),i(c,[],u,s),l=c.length;l--;)(f=c[l])&&(x[h[l]]=!(m[h[l]]=f));if(r){if(o||t){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(m[l]=f);o(null,x=[],c,s)}for(l=x.length;l--;)(f=x[l])&&(c=o?tt(r,f):p[l])>-1&&(r[c]=!(a[c]=f))}}else x=g(x===a?x.splice(d,x.length):x),o?o(null,a,x,s):Z.apply(a,x)})}function m(t){for(var e,n,r,i=t.length,o=_.relative[t[0].type],a=o||_.relative[" "],u=o?1:0,s=h(function(t){return t===e},a,!0),c=h(function(t){return tt(e,t)>-1},a,!0),l=[function(t,n,r){var i=!o&&(r||n!==M)||((e=n).nodeType?s(t,n,r):c(t,n,r));return e=null,i}];u<i;u++)if(n=_.relative[t[u].type])l=[h(d(l),n)];else{if(n=_.filter[t[u].type].apply(null,t[u].matches),n[B]){for(r=++u;r<i&&!_.relative[t[r].type];r++);return y(u>1&&d(l),u>1&&p(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(ut,"$1"),n,u<r&&m(t.slice(u,r)),r<i&&m(t=t.slice(r)),r<i&&p(t))}l.push(n)}return d(l)}function x(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,u,s,c){var l,f,p,h=0,d="0",v=r&&[],y=[],m=M,x=r||o&&_.find.TAG("*",c),b=q+=null==m?1:Math.random()||.1,w=x.length;for(c&&(M=a===I||a||c);d!==w&&null!=(l=x[d]);d++){if(o&&l){for(f=0,a||l.ownerDocument===I||(P(l),u=!O);p=t[f++];)if(p(l,a||I,u)){s.push(l);break}c&&(q=b)}i&&((l=!p&&l)&&h--,r&&v.push(l))}if(h+=d,i&&d!==h){for(f=0;p=n[f++];)p(v,y,a,u);if(r){if(h>0)for(;d--;)v[d]||y[d]||(y[d]=K.call(s));y=g(y)}Z.apply(s,y),c&&!r&&y.length>0&&h+n.length>1&&e.uniqueSort(s)}return c&&(q=b,M=m),v};return i?r(a):a}var b,w,_,k,C,T,S,E,M,j,A,P,I,N,O,D,L,F,R,B="sizzle"+1*new Date,z=t.document,q=0,H=0,V=n(),W=n(),U=n(),$=function(t,e){return t===e&&(A=!0),0},G=1<<31,X={}.hasOwnProperty,Y=[],K=Y.pop,J=Y.push,Z=Y.push,Q=Y.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),st=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),lt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),pt=new RegExp("^"+rt+"$"),ht={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,xt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_t=function(){P()};try{Z.apply(Y=Q.call(z.childNodes),z.childNodes),Y[z.childNodes.length].nodeType}catch(t){Z={apply:Y.length?function(t,e){J.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},P=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:z;return r!==I&&9===r.nodeType&&r.documentElement?(I=r,N=I.documentElement,O=!C(I),(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(I.getElementsByClassName),w.getById=i(function(t){return N.appendChild(t).id=B,!I.getElementsByName||!I.getElementsByName(B).length}),w.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);
if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&O)return e.getElementsByClassName(t)},L=[],D=[],(w.qsa=gt.test(I.querySelectorAll))&&(i(function(t){N.appendChild(t).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+B+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||D.push(".#.+[+~]")}),i(function(t){var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(w.matchesSelector=gt.test(F=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){w.disconnectedMatch=F.call(t,"div"),F.call(t,"[s!='']:x"),L.push("!=",ot)}),D=D.length&&new RegExp(D.join("|")),L=L.length&&new RegExp(L.join("|")),e=gt.test(N.compareDocumentPosition),R=e||gt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return A=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===I||t.ownerDocument===z&&R(z,t)?-1:e===I||e.ownerDocument===z&&R(z,e)?1:j?tt(j,t)-tt(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return A=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,u=[t],s=[e];if(!i||!o)return t===I?-1:e===I?1:i?-1:o?1:j?tt(j,t)-tt(j,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;u[r]===s[r];)r++;return r?a(u[r],s[r]):u[r]===z?-1:s[r]===z?1:0},I):I},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==I&&P(t),n=n.replace(lt,"='$1']"),w.matchesSelector&&O&&!U[n+" "]&&(!L||!L.test(n))&&(!D||!D.test(n)))try{var r=F.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&&P(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&&P(t);var n=_.attrHandle[e.toLowerCase()],r=n&&X.call(_.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==r?r:w.attributes||!O?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(A=!w.detectDuplicates,j=!w.sortStable&&t.slice(0),t.sort($),A){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return j=null,t},k=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},_=e.selectors={cacheLength:50,createPseudo:r,match:ht,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(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=T(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(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,s){var c,l,f,p,h,d,v=o!==a?"nextSibling":"previousSibling",g=e.parentNode,y=u&&e.nodeName.toLowerCase(),m=!s&&!u,x=!1;if(g){if(o){for(;v;){for(p=e;p=p[v];)if(u?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&m){for(p=g,f=p[B]||(p[B]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[t]||[],h=c[0]===q&&c[1],x=h&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[v]||(x=h=0)||d.pop();)if(1===p.nodeType&&++x&&p===e){l[t]=[q,h,x];break}}else if(m&&(p=e,f=p[B]||(p[B]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[t]||[],h=c[0]===q&&c[1],x=h),x===!1)for(;(p=++h&&p&&p[v]||(x=h=0)||d.pop())&&((u?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&(f=p[B]||(p[B]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),l[t]=[q,x]),p!==e)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(t,n){var i,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[B]?o(n):o.length>1?(i=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(ut,"$1"));return i[B]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return vt.test(t.nodeName)},input:function(t){return dt.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:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:c(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=u(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=s(b);return f.prototype=_.filters=_.pseudos,_.setFilters=new f,T=e.tokenize=function(t,n){var r,i,o,a,u,s,c,l=W[t+" "];if(l)return n?0:l.slice(0);for(u=t,s=[],c=_.preFilter;u;){r&&!(i=st.exec(u))||(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ct.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),u=u.slice(r.length));for(a in _.filter)!(i=ht[a].exec(u))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return n?u.length:u?e.error(t):W(t,s).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],o=U[t+" "];if(!o){for(e||(e=T(t)),n=e.length;n--;)o=m(e[n]),o[B]?r.push(o):i.push(o);o=U(t,x(i,r)),o.selector=t}return o},E=e.select=function(t,e,n,r){var i,o,a,u,s,c="function"==typeof t&&t,f=!r&&T(t=c.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&O&&_.relative[o[1].type]){if(e=(_.find.ID(a.matches[0].replace(bt,wt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=ht.needsContext.test(t)?0:o.length;i--&&(a=o[i],!_.relative[u=a.type]);)if((s=_.find[u])&&(r=s(a.matches[0].replace(bt,wt),mt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&p(o),!t)return Z.apply(n,r),n;break}}return(c||S(t,f))(r,e,!O,n,!e||mt.test(t)&&l(e.parentNode)||e),n},w.sortStable=B.split("").sort($).join("")===B,w.detectDuplicates=!!A,P(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(I.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);ct.find=dt,ct.expr=dt.selectors,ct.expr[":"]=ct.expr.pseudos,ct.uniqueSort=ct.unique=dt.uniqueSort,ct.text=dt.getText,ct.isXMLDoc=dt.isXML,ct.contains=dt.contains;var vt=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ct(t).is(n))break;r.push(t)}return r},gt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},yt=ct.expr.match.needsContext,mt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xt=/^.[^:#\[\.,]*$/;ct.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ct.find.matchesSelector(r,t)?[r]:[]:ct.find.matches(t,ct.grep(e,function(t){return 1===t.nodeType}))},ct.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ct(t).filter(function(){for(e=0;e<n;e++)if(ct.contains(i[e],this))return!0}));for(e=0;e<n;e++)ct.find(t,i[e],r);return r=this.pushStack(n>1?ct.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(u(this,t||[],!1))},not:function(t){return this.pushStack(u(this,t||[],!0))},is:function(t){return!!u(this,"string"==typeof t&&yt.test(t)?ct(t):t||[],!1).length}});var bt,wt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,_t=ct.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||bt,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:wt.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ct?e[0]:e,ct.merge(this,ct.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),mt.test(r[1])&&ct.isPlainObject(e))for(r in e)ct.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=Q.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ct.isFunction(t)?void 0!==n.ready?n.ready(t):t(ct):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ct.makeArray(t,this))};_t.prototype=ct.fn,bt=ct(Q);var kt=/^(?:parents|prev(?:Until|All))/,Ct={children:!0,contents:!0,next:!0,prev:!0};ct.fn.extend({has:function(t){var e=ct(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ct.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=yt.test(t)||"string"!=typeof t?ct(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ct.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ct.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?rt.call(ct(t),this[0]):rt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ct.uniqueSort(ct.merge(this.get(),ct(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ct.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vt(t,"parentNode")},parentsUntil:function(t,e,n){return vt(t,"parentNode",n)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return vt(t,"nextSibling")},prevAll:function(t){return vt(t,"previousSibling")},nextUntil:function(t,e,n){return vt(t,"nextSibling",n)},prevUntil:function(t,e,n){return vt(t,"previousSibling",n)},siblings:function(t){return gt((t.parentNode||{}).firstChild,t)},children:function(t){return gt(t.firstChild)},contents:function(t){return t.contentDocument||ct.merge([],t.childNodes)}},function(t,e){ct.fn[t]=function(n,r){var i=ct.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ct.filter(r,i)),this.length>1&&(Ct[t]||ct.uniqueSort(i),kt.test(t)&&i.reverse()),this.pushStack(i)}});var Tt=/\S+/g;ct.Callbacks=function(t){t="string"==typeof t?c(t):ct.extend({},t);var e,n,r,i,o=[],a=[],u=-1,s=function(){for(i=t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)o[u].apply(n[0],n[1])===!1&&t.stopOnFalse&&(u=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(u=o.length-1,a.push(n)),function e(n){ct.each(n,function(n,r){ct.isFunction(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==ct.type(r)&&e(r)})}(arguments),n&&!e&&s()),this},remove:function(){return ct.each(arguments,function(t,e){for(var n;(n=ct.inArray(e,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ct.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||s()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ct.extend({Deferred:function(t){var e=[["resolve","done",ct.Callbacks("once memory"),"resolved"],["reject","fail",ct.Callbacks("once memory"),"rejected"],["notify","progress",ct.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ct.Deferred(function(n){ct.each(e,function(e,o){var a=ct.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&ct.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ct.extend(t,r):r}},i={};return r.pipe=r.then,ct.each(e,function(t,o){var a=o[2],u=o[3];r[o[1]]=a.add,u&&a.add(function(){n=u},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=tt.call(arguments),a=o.length,u=1!==a||t&&ct.isFunction(t.promise)?a:0,s=1===u?t:ct.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?tt.call(arguments):i,r===e?s.notifyWith(n,r):--u||s.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&ct.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,e)).done(c(i,r,o)).fail(s.reject):--u;return u||s.resolveWith(r,o),s.promise()}});var St;ct.fn.ready=function(t){return ct.ready.promise().done(t),this},ct.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ct.readyWait++:ct.ready(!0)},ready:function(t){(t===!0?--ct.readyWait:ct.isReady)||(ct.isReady=!0,t!==!0&&--ct.readyWait>0||(St.resolveWith(Q,[ct]),ct.fn.triggerHandler&&(ct(Q).triggerHandler("ready"),ct(Q).off("ready"))))}}),ct.ready.promise=function(t){return St||(St=ct.Deferred(),"complete"===Q.readyState||"loading"!==Q.readyState&&!Q.documentElement.doScroll?n.setTimeout(ct.ready):(Q.addEventListener("DOMContentLoaded",l),n.addEventListener("load",l))),St.promise(t)},ct.ready.promise();var Et=function(t,e,n,r,i,o,a){var u=0,s=t.length,c=null==n;if("object"===ct.type(n)){i=!0;for(u in n)Et(t,e,u,n[u],!0,o,a)}else if(void 0!==r&&(i=!0,ct.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(ct(t),n)})),e))for(;u<s;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return i?t:c?e.call(t):s?e(t[0],n):o},Mt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};f.uid=1,f.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Mt(t))return{};var e=t[this.expando];return e||(e={},Mt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,ct.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ct.isArray(e)?r=e.concat(e.map(ct.camelCase)):(i=ct.camelCase(e),e in o?r=[e,i]:(r=i,r=r in o?[r]:r.match(Tt)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===e||ct.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ct.isEmptyObject(e)}};var jt=new f,At=new f,Pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,It=/[A-Z]/g;ct.extend({hasData:function(t){return At.hasData(t)||jt.hasData(t)},data:function(t,e,n){return At.access(t,e,n)},removeData:function(t,e){At.remove(t,e)},_data:function(t,e,n){return jt.access(t,e,n)},_removeData:function(t,e){jt.remove(t,e)}}),ct.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=At.get(o),1===o.nodeType&&!jt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ct.camelCase(r.slice(5)),p(o,r,i[r])));jt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){At.set(this,t)}):Et(this,function(e){var n,r;if(o&&void 0===e){if(n=At.get(o,t)||At.get(o,t.replace(It,"-$&").toLowerCase()),void 0!==n)return n;if(r=ct.camelCase(t),n=At.get(o,r),void 0!==n)return n;if(n=p(o,r,void 0),void 0!==n)return n}else r=ct.camelCase(t),this.each(function(){var n=At.get(this,r);At.set(this,r,e),t.indexOf("-")>-1&&void 0!==n&&At.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){At.remove(this,t)})}}),ct.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=jt.get(t,e),n&&(!r||ct.isArray(n)?r=jt.access(t,e,ct.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ct.queue(t,e),r=n.length,i=n.shift(),o=ct._queueHooks(t,e),a=function(){ct.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return jt.get(t,n)||jt.access(t,n,{empty:ct.Callbacks("once memory").add(function(){jt.remove(t,[e+"queue",n])})})}}),ct.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ct.queue(this[0],t):void 0===e?this:this.each(function(){var n=ct.queue(this,t,e);ct._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ct.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ct.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ct.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=jt.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(e)}});var Nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ot=new RegExp("^(?:([+-])=|)("+Nt+")([a-z%]*)$","i"),Dt=["Top","Right","Bottom","Left"],Lt=function(t,e){return t=e||t,"none"===ct.css(t,"display")||!ct.contains(t.ownerDocument,t)},Ft=/^(?:checkbox|radio)$/i,Rt=/<([\w:-]+)/,Bt=/^$|\/(?:java|ecma)script/i,zt={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,"",""]};zt.optgroup=zt.option,zt.tbody=zt.tfoot=zt.colgroup=zt.caption=zt.thead,zt.th=zt.td;var qt=/<|&#?\w+;/;!function(){var t=Q.createDocumentFragment(),e=t.appendChild(Q.createElement("div")),n=Q.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),ut.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",ut.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ht=/^key/,Vt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wt=/^([^.]*)(?:\.(.+)|)/;ct.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,c,l,f,p,h,d,v,g=jt.get(t);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ct.guid++),(s=g.events)||(s=g.events={}),(a=g.handle)||(a=g.handle=function(e){return"undefined"!=typeof ct&&ct.event.triggered!==e.type?ct.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Tt)||[""],c=e.length;c--;)u=Wt.exec(e[c])||[],h=v=u[1],d=(u[2]||"").split(".").sort(),h&&(f=ct.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=ct.event.special[h]||{},l=ct.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ct.expr.match.needsContext.test(i),namespace:d.join(".")},o),(p=s[h])||(p=s[h]=[],p.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),ct.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,c,l,f,p,h,d,v,g=jt.hasData(t)&&jt.get(t);if(g&&(s=g.events)){for(e=(e||"").match(Tt)||[""],c=e.length;c--;)if(u=Wt.exec(e[c])||[],h=v=u[1],d=(u[2]||"").split(".").sort(),h){for(f=ct.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=s[h]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&v!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(t,l));a&&!p.length&&(f.teardown&&f.teardown.call(t,d,g.handle)!==!1||ct.removeEvent(t,h,g.handle),delete s[h])}else for(h in s)ct.event.remove(t,h+e[c],n,r,!0);ct.isEmptyObject(s)&&jt.remove(t,"handle events")}},dispatch:function(t){t=ct.event.fix(t);var e,n,r,i,o,a=[],u=tt.call(arguments),s=(jt.get(this,"events")||{})[t.type]||[],c=ct.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(a=ct.event.handlers.call(this,t,s),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,r=((ct.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],u=e.delegateCount,s=t.target;if(u&&s.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&(s.disabled!==!0||"click"!==t.type)){for(r=[],n=0;n<u;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ct(i,this).index(s)>-1:ct.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&a.push({elem:s,handlers:r})}return u<e.length&&a.push({elem:this,handlers:e.slice(u)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||Q,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ct.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Vt.test(i)?this.mouseHooks:Ht.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new ct.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==x()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===x()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ct.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ct.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ct.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ct.Event=function(t,e){return this instanceof ct.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?y:m):this.type=t,e&&ct.extend(this,e),this.timeStamp=t&&t.timeStamp||ct.now(),void(this[ct.expando]=!0)):new ct.Event(t,e)},ct.Event.prototype={constructor:ct.Event,isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ct.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ct.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ct.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ct.fn.extend({on:function(t,e,n,r){return b(this,t,e,n,r)},one:function(t,e,n,r){return b(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ct(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=m),this.each(function(){ct.event.remove(this,t,n,e)})}});var Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,$t=/<script|<style|<link/i,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Xt=/^true\/(.*)/,Yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ct.extend({htmlPrefilter:function(t){return t.replace(Ut,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),s=ct.contains(t.ownerDocument,t);if(!(ut.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ct.isXMLDoc(t)))for(a=d(u),o=d(t),r=0,i=o.length;r<i;r++)T(o[r],a[r]);if(e)if(n)for(o=o||d(t),a=a||d(u),r=0,i=o.length;r<i;r++)C(o[r],a[r]);else C(t,u);return a=d(u,"script"),a.length>0&&v(a,!s&&d(t,"script")),u},cleanData:function(t){for(var e,n,r,i=ct.event.special,o=0;void 0!==(n=t[o]);o++)if(Mt(n)){if(e=n[jt.expando]){if(e.events)for(r in e.events)i[r]?ct.event.remove(n,r):ct.removeEvent(n,r,e.handle);n[jt.expando]=void 0}n[At.expando]&&(n[At.expando]=void 0)}}}),ct.fn.extend({domManip:S,detach:function(t){return E(this,t,!0)},remove:function(t){return E(this,t)},text:function(t){return Et(this,function(t){return void 0===t?ct.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 S(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=w(this,t);e.appendChild(t)}})},prepend:function(){return S(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=w(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return S(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return S(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&&(ct.cleanData(d(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ct.clone(this,t,e)})},html:function(t){return Et(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!$t.test(t)&&!zt[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=ct.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(ct.cleanData(d(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return S(this,arguments,function(e){var n=this.parentNode;ct.inArray(this,t)<0&&(ct.cleanData(d(this)),n&&n.replaceChild(e,this))},t)}}),ct.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ct.fn[t]=function(t){for(var n,r=[],i=ct(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),ct(i[a])[e](n),nt.apply(r,n.get());return this.pushStack(r)}});var Kt,Jt={HTML:"block",BODY:"block"},Zt=/^margin/,Qt=new RegExp("^("+Nt+")(?!px)[a-z%]+$","i"),te=function(t){var e=t.ownerDocument.defaultView;
return e&&e.opener||(e=n),e.getComputedStyle(t)},ee=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i},ne=Q.documentElement;!function(){function t(){u.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",u.innerHTML="",ne.appendChild(a);var t=n.getComputedStyle(u);e="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,u.style.marginRight="50%",i="4px"===t.marginRight,ne.removeChild(a)}var e,r,i,o,a=Q.createElement("div"),u=Q.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",ut.clearCloneStyle="content-box"===u.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(u),ct.extend(ut,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==r&&t(),r},pixelMarginRight:function(){return null==r&&t(),i},reliableMarginLeft:function(){return null==r&&t(),o},reliableMarginRight:function(){var t,e=u.appendChild(Q.createElement("div"));return e.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",u.style.width="1px",ne.appendChild(a),t=!parseFloat(n.getComputedStyle(e).marginRight),ne.removeChild(a),u.removeChild(e),t}}))}();var re=/^(none|table(?!-c[ea]).+)/,ie={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"},ae=["Webkit","O","Moz","ms"],ue=Q.createElement("div").style;ct.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=A(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=ct.camelCase(e),s=t.style;return e=ct.cssProps[u]||(ct.cssProps[u]=I(u)||u),a=ct.cssHooks[e]||ct.cssHooks[u],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[e]:(o=typeof n,"string"===o&&(i=Ot.exec(n))&&i[1]&&(n=h(t,e,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ct.cssNumber[u]?"":"px")),ut.clearCloneStyle||""!==n||0!==e.indexOf("background")||(s[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,u=ct.camelCase(e);return e=ct.cssProps[u]||(ct.cssProps[u]=I(u)||u),a=ct.cssHooks[e]||ct.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=A(t,e,r)),"normal"===i&&e in oe&&(i=oe[e]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ct.each(["height","width"],function(t,e){ct.cssHooks[e]={get:function(t,n,r){if(n)return re.test(ct.css(t,"display"))&&0===t.offsetWidth?ee(t,ie,function(){return D(t,e,r)}):D(t,e,r)},set:function(t,n,r){var i,o=r&&te(t),a=r&&O(t,e,r,"border-box"===ct.css(t,"boxSizing",!1,o),o);return a&&(i=Ot.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=ct.css(t,e)),N(t,n,a)}}}),ct.cssHooks.marginLeft=P(ut.reliableMarginLeft,function(t,e){if(e)return(parseFloat(A(t,"marginLeft"))||t.getBoundingClientRect().left-ee(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ct.cssHooks.marginRight=P(ut.reliableMarginRight,function(t,e){if(e)return ee(t,{display:"inline-block"},A,[t,"marginRight"])}),ct.each({margin:"",padding:"",border:"Width"},function(t,e){ct.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Dt[r]+e]=o[r]||o[r-2]||o[0];return i}},Zt.test(t)||(ct.cssHooks[t+e].set=N)}),ct.fn.extend({css:function(t,e){return Et(this,function(t,e,n){var r,i,o={},a=0;if(ct.isArray(e)){for(r=te(t),i=e.length;a<i;a++)o[e[a]]=ct.css(t,e[a],!1,r);return o}return void 0!==n?ct.style(t,e,n):ct.css(t,e)},t,e,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Lt(this)?ct(this).show():ct(this).hide()})}}),ct.Tween=F,F.prototype={constructor:F,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ct.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ct.cssNumber[n]?"":"px")},cur:function(){var t=F.propHooks[this.prop];return t&&t.get?t.get(this):F.propHooks._default.get(this)},run:function(t){var e,n=F.propHooks[this.prop];return this.options.duration?this.pos=e=ct.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):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.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=ct.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ct.fx.step[t.prop]?ct.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ct.cssProps[t.prop]]&&!ct.cssHooks[t.prop]?t.elem[t.prop]=t.now:ct.style(t.elem,t.prop,t.now+t.unit)}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ct.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ct.fx=F.prototype.init,ct.fx.step={};var se,ce,le=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;ct.Animation=ct.extend(V,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return h(n.elem,t,Ot.exec(e),n),n}]},tweener:function(t,e){ct.isFunction(t)?(e=t,t=["*"]):t=t.match(Tt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],V.tweeners[n]=V.tweeners[n]||[],V.tweeners[n].unshift(e)},prefilters:[q],prefilter:function(t,e){e?V.prefilters.unshift(t):V.prefilters.push(t)}}),ct.speed=function(t,e,n){var r=t&&"object"==typeof t?ct.extend({},t):{complete:n||!n&&e||ct.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ct.isFunction(e)&&e};return r.duration=ct.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ct.fx.speeds?ct.fx.speeds[r.duration]:ct.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ct.isFunction(r.old)&&r.old.call(this),r.queue&&ct.dequeue(this,r.queue)},r},ct.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Lt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ct.isEmptyObject(t),o=ct.speed(e,n,r),a=function(){var e=V(this,ct.extend({},t),o);(i||jt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ct.timers,a=jt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&fe.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ct.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=jt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ct.timers,a=r?r.length:0;for(n.finish=!0,ct.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ct.each(["toggle","show","hide"],function(t,e){var n=ct.fn[e];ct.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(B(e,!0),t,r,i)}}),ct.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ct.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ct.timers=[],ct.fx.tick=function(){var t,e=0,n=ct.timers;for(se=ct.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ct.fx.stop(),se=void 0},ct.fx.timer=function(t){ct.timers.push(t),t()?ct.fx.start():ct.timers.pop()},ct.fx.interval=13,ct.fx.start=function(){ce||(ce=n.setInterval(ct.fx.tick,ct.fx.interval))},ct.fx.stop=function(){n.clearInterval(ce),ce=null},ct.fx.speeds={slow:600,fast:200,_default:400},ct.fn.delay=function(t,e){return t=ct.fx?ct.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),n=e.appendChild(Q.createElement("option"));t.type="checkbox",ut.checkOn=""!==t.value,ut.optSelected=n.selected,e.disabled=!0,ut.optDisabled=!n.disabled,t=Q.createElement("input"),t.value="t",t.type="radio",ut.radioValue="t"===t.value}();var pe,he=ct.expr.attrHandle;ct.fn.extend({attr:function(t,e){return Et(this,ct.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ct.removeAttr(this,t)})}}),ct.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ct.prop(t,e,n):(1===o&&ct.isXMLDoc(t)||(e=e.toLowerCase(),i=ct.attrHooks[e]||(ct.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void ct.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=ct.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!ut.radioValue&&"radio"===e&&ct.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(Tt);if(o&&1===t.nodeType)for(;n=o[i++];)r=ct.propFix[n]||n,ct.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),pe={set:function(t,e,n){return e===!1?ct.removeAttr(t,n):t.setAttribute(n,n),n}},ct.each(ct.expr.match.bool.source.match(/\w+/g),function(t,e){var n=he[e]||ct.find.attr;he[e]=function(t,e,r){var i,o;return r||(o=he[e],he[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,he[e]=o),i}});var de=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;ct.fn.extend({prop:function(t,e){return Et(this,ct.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ct.propFix[t]||t]})}}),ct.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ct.isXMLDoc(t)||(e=ct.propFix[e]||e,i=ct.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ct.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ut.optSelected||(ct.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)}}),ct.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ct.propFix[this.toLowerCase()]=this});var ge=/[\t\r\n\f]/g;ct.fn.extend({addClass:function(t){var e,n,r,i,o,a,u,s=0;if(ct.isFunction(t))return this.each(function(e){ct(this).addClass(t.call(this,e,W(this)))});if("string"==typeof t&&t)for(e=t.match(Tt)||[];n=this[s++];)if(i=W(n),r=1===n.nodeType&&(" "+i+" ").replace(ge," ")){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");u=ct.trim(r),i!==u&&n.setAttribute("class",u)}return this},removeClass:function(t){var e,n,r,i,o,a,u,s=0;if(ct.isFunction(t))return this.each(function(e){ct(this).removeClass(t.call(this,e,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Tt)||[];n=this[s++];)if(i=W(n),r=1===n.nodeType&&(" "+i+" ").replace(ge," ")){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");u=ct.trim(r),i!==u&&n.setAttribute("class",u)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ct.isFunction(t)?this.each(function(n){ct(this).toggleClass(t.call(this,n,W(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ct(this),o=t.match(Tt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=W(this),e&&jt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":jt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+W(n)+" ").replace(ge," ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g,me=/[\x20\t\r\n\f]+/g;ct.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=ct.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,ct(this).val()):t,null==i?i="":"number"==typeof i?i+="":ct.isArray(i)&&(i=ct.map(i,function(t){return null==t?"":t+""})),e=ct.valHooks[this.type]||ct.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=ct.valHooks[i.type]||ct.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ye,""):null==n?"":n)}}}),ct.extend({valHooks:{option:{get:function(t){var e=ct.find.attr(t,"value");return null!=e?e:ct.trim(ct.text(t)).replace(me," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],u=o?i+1:r.length,s=i<0?u:o?i:0;s<u;s++)if(n=r[s],(n.selected||s===i)&&(ut.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ct.nodeName(n.parentNode,"optgroup"))){if(e=ct(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=ct.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=ct.inArray(ct.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ct.each(["radio","checkbox"],function(){ct.valHooks[this]={set:function(t,e){if(ct.isArray(e))return t.checked=ct.inArray(ct(t).val(),e)>-1}},ut.checkOn||(ct.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var xe=/^(?:focusinfocus|focusoutblur)$/;ct.extend(ct.event,{trigger:function(t,e,r,i){var o,a,u,s,c,l,f,p=[r||Q],h=at.call(t,"type")?t.type:t,d=at.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||Q,3!==r.nodeType&&8!==r.nodeType&&!xe.test(h+ct.event.triggered)&&(h.indexOf(".")>-1&&(d=h.split("."),h=d.shift(),d.sort()),c=h.indexOf(":")<0&&"on"+h,t=t[ct.expando]?t:new ct.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:ct.makeArray(e,[t]),f=ct.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,e)!==!1)){if(!i&&!f.noBubble&&!ct.isWindow(r)){for(s=f.delegateType||h,xe.test(s+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(r.ownerDocument||Q)&&p.push(u.defaultView||u.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)t.type=o>1?s:f.bindType||h,l=(jt.get(a,"events")||{})[t.type]&&jt.get(a,"handle"),l&&l.apply(a,e),l=c&&a[c],l&&l.apply&&Mt(a)&&(t.result=l.apply(a,e),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),e)!==!1||!Mt(r)||c&&ct.isFunction(r[h])&&!ct.isWindow(r)&&(u=r[c],u&&(r[c]=null),ct.event.triggered=h,r[h](),ct.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,e,n){var r=ct.extend(new ct.Event,n,{type:t,isSimulated:!0});ct.event.trigger(r,null,e)}}),ct.fn.extend({trigger:function(t,e){return this.each(function(){ct.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ct.event.trigger(t,e,n,!0)}}),ct.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ct.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ct.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),ut.focusin="onfocusin"in n,ut.focusin||ct.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ct.event.simulate(e,t.target,ct.event.fix(t))};ct.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=jt.access(r,e);i||r.addEventListener(t,n,!0),jt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=jt.access(r,e)-1;i?jt.access(r,e,i):(r.removeEventListener(t,n,!0),jt.remove(r,e))}}});var be=n.location,we=ct.now(),_e=/\?/;ct.parseJSON=function(t){return JSON.parse(t+"")},ct.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||ct.error("Invalid XML: "+t),e};var ke=/#.*$/,Ce=/([?&])_=[^&]*/,Te=/^(.*?):[ \t]*([^\r\n]*)$/gm,Se=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ee=/^(?:GET|HEAD)$/,Me=/^\/\//,je={},Ae={},Pe="*/".concat("*"),Ie=Q.createElement("a");Ie.href=be.href,ct.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:Se.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,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":ct.parseJSON,"text xml":ct.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?G(G(t,ct.ajaxSettings),e):G(ct.ajaxSettings,t)},ajaxPrefilter:U(je),ajaxTransport:U(Ae),ajax:function(t,e){function r(t,e,r,u){var c,f,m,x,w,k=e;2!==b&&(b=2,s&&n.clearTimeout(s),i=void 0,a=u||"",_.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(x=X(p,_,r)),x=Y(p,x,_,c),c?(p.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(ct.lastModified[o]=w),w=_.getResponseHeader("etag"),w&&(ct.etag[o]=w)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=x.state,f=x.data,m=x.error,c=!m)):(m=k,!t&&k||(k="error",t<0&&(t=0))),_.status=t,_.statusText=(e||k)+"",c?v.resolveWith(h,[f,k,_]):v.rejectWith(h,[_,k,m]),_.statusCode(y),y=void 0,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[_,p,c?f:m]),g.fireWith(h,[_,k]),l&&(d.trigger("ajaxComplete",[_,p]),--ct.active||ct.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,u,s,c,l,f,p=ct.ajaxSetup({},e),h=p.context||p,d=p.context&&(h.nodeType||h.jquery)?ct(h):ct.event,v=ct.Deferred(),g=ct.Callbacks("once memory"),y=p.statusCode||{},m={},x={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!u)for(u={};e=Te.exec(a);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=x[n]=x[n]||t,m[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)y[e]=[y[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(v.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,p.url=((t||p.url||be.href)+"").replace(ke,"").replace(Me,be.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=ct.trim(p.dataType||"*").toLowerCase().match(Tt)||[""],null==p.crossDomain){c=Q.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Ie.protocol+"//"+Ie.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ct.param(p.data,p.traditional)),$(je,p,e,_),2===b)return _;l=ct.event&&p.global,l&&0===ct.active++&&ct.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ee.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(_e.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Ce.test(o)?o.replace(Ce,"$1_="+we++):o+(_e.test(o)?"&":"?")+"_="+we++)),p.ifModified&&(ct.lastModified[o]&&_.setRequestHeader("If-Modified-Since",ct.lastModified[o]),ct.etag[o]&&_.setRequestHeader("If-None-Match",ct.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||e.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Pe+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)_.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(h,_,p)===!1||2===b))return _.abort();w="abort";for(f in{success:1,error:1,complete:1})_[f](p[f]);if(i=$(Ae,p,e,_)){if(_.readyState=1,l&&d.trigger("ajaxSend",[_,p]),2===b)return _;p.async&&p.timeout>0&&(s=n.setTimeout(function(){_.abort("timeout")},p.timeout));try{b=1,i.send(m,r)}catch(t){if(!(b<2))throw t;r(-1,t)}}else r(-1,"No Transport");return _},getJSON:function(t,e,n){return ct.get(t,e,n,"json")},getScript:function(t,e){return ct.get(t,void 0,e,"script")}}),ct.each(["get","post"],function(t,e){ct[e]=function(t,n,r,i){return ct.isFunction(n)&&(i=i||r,r=n,n=void 0),ct.ajax(ct.extend({url:t,type:e,dataType:i,data:n,success:r},ct.isPlainObject(t)&&t))}}),ct._evalUrl=function(t){return ct.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ct.fn.extend({wrapAll:function(t){var e;return ct.isFunction(t)?this.each(function(e){ct(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ct(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(t){return ct.isFunction(t)?this.each(function(e){ct(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ct(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ct.isFunction(t);return this.each(function(n){ct(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ct.nodeName(this,"body")||ct(this).replaceWith(this.childNodes)}).end()}}),ct.expr.filters.hidden=function(t){return!ct.expr.filters.visible(t)},ct.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Ne=/%20/g,Oe=/\[\]$/,De=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;ct.param=function(t,e){var n,r=[],i=function(t,e){e=ct.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ct.ajaxSettings&&ct.ajaxSettings.traditional),ct.isArray(t)||t.jquery&&!ct.isPlainObject(t))ct.each(t,function(){i(this.name,this.value)});else for(n in t)K(n,t[n],e,i);return r.join("&").replace(Ne,"+")},ct.fn.extend({serialize:function(){return ct.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ct.prop(this,"elements");return t?ct.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ct(this).is(":disabled")&&Fe.test(this.nodeName)&&!Le.test(t)&&(this.checked||!Ft.test(t))}).map(function(t,e){var n=ct(this).val();return null==n?null:ct.isArray(n)?ct.map(n,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:n.replace(De,"\r\n")}}).get()}}),ct.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},Be=ct.ajaxSettings.xhr();ut.cors=!!Be&&"withCredentials"in Be,ut.ajax=Be=!!Be,ct.ajaxTransport(function(t){var e,r;if(ut.cors||Be&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)u.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=u.onload=u.onerror=u.onabort=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Re[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),r=u.onerror=e("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),ct.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 ct.globalEval(t),t}}}),ct.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ct.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=ct("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){n&&n()}}}});var ze=[],qe=/(=)\?(?=&|$)|\?\?/;ct.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ze.pop()||ct.expando+"_"+we++;return this[t]=!0,t}}),ct.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,u=t.jsonp!==!1&&(qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ct.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(qe,"$1"+i):t.jsonp!==!1&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ct.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?ct(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,ze.push(i)),a&&ct.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ct.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||Q;var r=mt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=g([t],e,i),i&&i.length&&ct(i).remove(),ct.merge([],r.childNodes))};var He=ct.fn.load;ct.fn.load=function(t,e,n){if("string"!=typeof t&&He)return He.apply(this,arguments);var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=ct.trim(t.slice(u)),t=t.slice(0,u)),ct.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&ct.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?ct("<div>").append(ct.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ct.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ct.fn[e]=function(t){return this.on(e,t)}}),ct.expr.filters.animated=function(t){return ct.grep(ct.timers,function(e){return t===e.elem}).length},ct.offset={setOffset:function(t,e,n){var r,i,o,a,u,s,c,l=ct.css(t,"position"),f=ct(t),p={};"static"===l&&(t.style.position="relative"),u=f.offset(),o=ct.css(t,"top"),s=ct.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+s).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),ct.isFunction(e)&&(e=e.call(t,n,ct.extend({},u))),null!=e.top&&(p.top=e.top-u.top+a),null!=e.left&&(p.left=e.left-u.left+i),"using"in e?e.using.call(t,p):f.css(p)}},ct.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ct.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,ct.contains(e,r)?(i=r.getBoundingClientRect(),n=J(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===ct.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ct.nodeName(t[0],"html")||(r=t.offset()),r.top+=ct.css(t[0],"borderTopWidth",!0),r.left+=ct.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-ct.css(n,"marginTop",!0),left:e.left-r.left-ct.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ct.css(t,"position");)t=t.offsetParent;return t||ne})}}),ct.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ct.fn[t]=function(r){return Et(this,function(t,r,i){var o=J(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),ct.each(["top","left"],function(t,e){ct.cssHooks[e]=P(ut.pixelPosition,function(t,n){if(n)return n=A(t,e),Qt.test(n)?ct(t).position()[e]+"px":n})}),ct.each({Height:"height",Width:"width"},function(t,e){ct.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ct.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Et(this,function(e,n,r){var i;return ct.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ct.css(e,n,a):ct.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),ct.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,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ct.fn.andSelf=ct.fn.addBack,r=[],i=function(){return ct}.apply(e,r),!(void 0!==i&&(t.exports=i));var Ve=n.jQuery,We=n.$;return ct.noConflict=function(t){return n.$===ct&&(n.$=We),t&&n.jQuery===ct&&(n.jQuery=Ve),ct},o||(n.jQuery=n.$=ct),ct})},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(34)("keys"),i=n(23);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var r=n(7),i=n(63),o=n(31),a=n(29)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(35)("iframe"),r=o.length,i="<",a=">";for(e.style.display="none",n(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(2),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(13),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(13);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,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(83),o=r(i),a=n(82),u=r(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t;
}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(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 r=n(2),i=n(1),o=n(25),a=n(40),u=n(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(3)},function(t,e,n){var r=n(30),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(101),o=r(i);o.default.Composer=i.EventsEmitterComposer,e.default=o.default},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(78)(!0);n(50)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(28),i=n(20),o=n(8),a=n(36),u=n(9),s=n(46),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=o(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){t.exports=!n(6)&&!n(15)(function(){return 7!=Object.defineProperty(n(35)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(9),i=n(8),o=n(62)(!1),a=n(29)("IE_PROTO");t.exports=function(t,e){var n,u=i(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){var r=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(25),i=n(5),o=n(52),a=n(10),u=n(9),s=n(21),c=n(76),l=n(24),f=n(51),p=n(3)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",g="values",y=function(){return this};t.exports=function(t,e,n,m,x,b,w){c(n,e,m);var _,k,C,T=function(t){if(!h&&t in j)return j[t];switch(t){case v:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",E=x==g,M=!1,j=t.prototype,A=j[p]||j[d]||x&&j[x],P=A||T(x),I=x?E?T("entries"):P:void 0,N="Array"==e?j.entries||A:A;if(N&&(C=f(N.call(new t)),C!==Object.prototype&&(l(C,S,!0),r||u(C,p)||a(C,p,y))),E&&A&&A.name!==g&&(M=!0,P=function(){return A.call(this)}),r&&!w||!h&&!M&&j[p]||a(j,p,P),s[e]=P,s[S]=y,x)if(_={values:E?P:T(g),keys:b?P:T(v),entries:I},w)for(k in _)k in j||o(j,k,_[k]);else i(i.P+i.F*(h||M),e,_);return _}},function(t,e,n){var r=n(9),i=n(27),o=n(29)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){t.exports=n(10)},function(t,e,n){var r=n(47),i=n(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){n(79);for(var r=n(2),i=n(10),o=n(21),a=n(3)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=u[s],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(c(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(c(r.parts[o],e));h[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],u=i[2],s=i[3],c={css:a,media:u,sourceMap:s};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function o(t,e){var n=g(),r=x[x.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),x.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=x.indexOf(t);e>=0&&x.splice(e,1)}function u(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,i;if(e.singleton){var o=m++;n=y||(y=u(e)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=p.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=f.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function l(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},d=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},v=d(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=d(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,x=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=v()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var u=n[a],s=h[u.id];s.refs--,o.push(s)}if(t){var c=i(t);r(c,e)}for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete h[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e){},function(t,e,n){t.exports={default:n(107),__esModule:!0}},function(t,e,n){var r=n(5),i=n(1),o=n(15);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){n(66);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(8),i=n(41),o=n(64);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=i(s.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(4),i=n(7),o=n(19);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(30),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(67),i=n(3)("iterator"),o=n(21);t.exports=n(1).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(33)})},function(t,e,n){var r=n(22),i=n(3)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r,i,o,a=n(18),u=n(110),s=n(48),c=n(35),l=n(2),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,v=0,g={},y="onreadystatechange",m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},x=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete g[t]},"process"==n(22)(f)?r=function(t){f.nextTick(a(m,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=x,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",x,!1)):r=y in c("script")?function(t){s.appendChild(c("script"))[y]=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(21),i=n(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(7);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(59),o=r(i);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){function r(i,a){try{var u=e[i](a),s=u.value}catch(t){return void n(t)}return u.done?void t(s):o.default.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){t.exports=n(118)},function(t,e,n){t.exports={default:n(106),__esModule:!0}},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r=n(33),i=n(20),o=n(24),a={};n(10)(a,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(30),i=n(32);t.exports=function(t){return function(e,n){var o,a,u=String(i(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(75),i=n(77),o=n(21),a=n(8);t.exports=n(50)(Array,"Array",function(t,e){this._t=a(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,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){t.exports={default:n(84),__esModule:!0}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){n(95);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(96),t.exports=n(1).Object.getPrototypeOf},function(t,e,n){n(97),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(98),n(58),n(99),n(100),t.exports=n(1).Symbol},function(t,e,n){n(44),n(54),t.exports=n(40).f("iterator")},function(t,e,n){var r=n(19),i=n(43),o=n(28);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,u=n(t),s=o.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var r=n(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(19),i=n(8);t.exports=function(t,e){for(var n,o=i(t),a=r(o),u=a.length,s=0;u>s;)if(o[n=a[s++]]===e)return n}},function(t,e,n){var r=n(23)("meta"),i=n(13),o=n(9),a=n(4).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(15)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!o(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&d.NEED&&s(t)&&!o(t,r)&&l(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(8),i=n(53).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(r(t))}},function(t,e,n){var r=n(13),i=n(7),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(18)(Function.call,n(45).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var r=n(5);r(r.S+r.F*!n(6),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(27),i=n(51);n(60)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(94).set})},function(t,e,n){"use strict";var r=n(2),i=n(9),o=n(6),a=n(5),u=n(52),s=n(92).KEY,c=n(15),l=n(34),f=n(24),p=n(23),h=n(3),d=n(40),v=n(39),g=n(91),y=n(89),m=n(90),x=n(7),b=n(8),w=n(36),_=n(20),k=n(33),C=n(93),T=n(45),S=n(4),E=n(19),M=T.f,j=S.f,A=C.f,P=r.Symbol,I=r.JSON,N=I&&I.stringify,O="prototype",D=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,R=l("symbol-registry"),B=l("symbols"),z=l("op-symbols"),q=Object[O],H="function"==typeof P,V=r.QObject,W=!V||!V[O]||!V[O].findChild,U=o&&c(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(q,e);r&&delete q[e],j(t,e,n),r&&t!==q&&j(q,e,r)}:j,$=function(t){var e=B[t]=k(P[O]);return e._k=t,e},G=H&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},X=function(t,e,n){return t===q&&X(z,e,n),x(t),e=w(e,!0),x(n),i(B,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=k(n,{enumerable:_(0,!1)})):(i(t,D)||j(t,D,_(1,{})),t[D][e]=!0),U(t,e,n)):j(t,e,n)},Y=function(t,e){x(t);for(var n,r=y(e=b(e)),i=0,o=r.length;o>i;)X(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?k(t):Y(k(t),e)},J=function(t){var e=F.call(this,t=w(t,!0));return!(this===q&&i(B,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=b(t),e=w(e,!0),t!==q||!i(B,e)||i(z,e)){var n=M(t,e);return!n||!i(B,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=A(b(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==D||e==s||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=A(n?z:b(t)),o=[],a=0;r.length>a;)!i(B,e=r[a++])||n&&!i(q,e)||o.push(B[e]);return o};H||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(z,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),U(this,t,_(1,n))};return o&&W&&U(q,t,{configurable:!0,set:e}),$(t)},u(P[O],"toString",function(){return this._k}),T.f=Z,S.f=X,n(53).f=C.f=Q,n(28).f=J,n(43).f=tt,o&&!n(25)&&u(q,"propertyIsEnumerable",J,!0),d.f=function(t){return $(h(t))}),a(a.G+a.W+a.F*!H,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var et=E(h.store),nt=0;et.length>nt;)v(et[nt++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=P(t)},keyFor:function(t){if(G(t))return g(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:K,defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),I&&a(a.S+a.F*(!H||c(function(){var t=P();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(I,r)}}}),P[O][L]||n(10)(P[O],L,P[O].valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){n(39)("asyncIterator")},function(t,e,n){n(39)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.EventsEmitterComposer=void 0;var i=n(14),o=r(i),a=n(17),u=r(a),s=n(16),c=r(s),l=n(11),f=r(l),p=n(12),h=r(p),d=function(){function t(){(0,f.default)(this,t),this._events={}}return(0,h.default)(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n._events[t]=n._events[t]||[],n._events[t].push(e)}),this}},{key:"off",value:function(t,e){var n=this;return void 0==t?void(this._events={}):(t.split(" ").forEach(function(t){t in n._events!=!1&&(e?n._events[t].splice(n._events[t].indexOf(e),1):n._events[t]=[])}),this)}},{key:"emit",value:function(t){if(void 0!==this._events[t])for(var e=this._events[t].slice(),n=0;n<e.length;++n){var r=e[n].apply(this,Array.prototype.slice.call(arguments,1));if(void 0!==r)return r}}},{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}}]),t}();e.default=d;e.EventsEmitterComposer=function(t){return function(t){function e(t,n,r,i,a){(0,f.default)(this,e);var s=(0,u.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n,r,i,a));return s._events={},s}return(0,c.default)(e,t),(0,h.default)(e,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n._events[t]=n._events[t]||[],n._events[t].push(e)}),this}},{key:"off",value:function(t,e){var n=this;return void 0==t?void(this._events={}):(t.split(" ").forEach(function(t){t in n._events!=!1&&(e?n._events[t].splice(n._events[t].indexOf(e),1):n._events[t]=[])}),this)}},{key:"emit",value:function(t){if(void 0!==this._events[t])for(var e=this._events[t].slice(),n=0;n<e.length;++n){var r=e[n].apply(this,Array.prototype.slice.call(arguments,1));if(void 0!==r)return r}}},{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}}]),e}(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(120),o=r(i);e.default=o.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(42),v=r(d),g=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.default)(this,e);var r=(0,f.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t,n));return r._viewer=t,r._options=n,r._events={},r}return(0,h.default)(e,t),(0,c.default)(e,[{key:"load",value:function(){return!0}},{key:"unload",value:function(){return!0}}],[{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}},{key:"ExtensionId",get:function(){return"Viewing.Extension.Base"}}]),e}(v.default.Composer(Autodesk.Viewing.Extension));e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(103),o=r(i);e.default=o.default},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?d=h.concat(d):g=-1,d.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=d.length;e;){for(h=d,d=[];++g<e;)h&&h[g].run();g=-1,e=d.length}h=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],v=!1,g=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){n(116),t.exports=n(1).Object.assign},function(t,e,n){n(58),n(44),n(54),n(117),t.exports=n(1).Promise},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(18),i=n(70),o=n(69),a=n(7),u=n(41),s=n(65),c={},l={},e=t.exports=function(t,e,n,f,p){var h,d,v,g,y=p?function(){return t}:s(t),m=r(n,f,e?2:1),x=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(h=u(t.length);h>x;x++)if(g=e?m(a(d=t[x])[0],d[1]):m(t[x]),g===c||g===l)return g}else for(v=y.call(t);!(d=v.next()).done;)if(g=i(v,m,d.value,e),g===c||g===l)return g};e.BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?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 r=n(2),i=n(68).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(22)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(s&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(o){var l=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r=n(19),i=n(43),o=n(28),a=n(27),u=n(49),s=Object.assign;t.exports=!s||n(15)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=i.f,f=o.f;s>c;)for(var p,h=u(arguments[c++]),d=l?r(h).concat(l(h)):r(h),v=d.length,g=0;v>g;)f.call(h,p=d[g++])&&(n[p]=h[p]);return n}:s},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(4),a=n(6),u=n(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(7),i=n(38),o=n(3)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(112)})},function(t,e,n){"use strict";var r,i,o,a=n(25),u=n(2),s=n(18),c=n(67),l=n(5),f=n(13),p=n(38),h=n(108),d=n(109),v=n(115),g=n(68).set,y=n(111)(),m="Promise",x=u.TypeError,b=u.process,w=u[m],b=u.process,_="process"==c(b),k=function(){},C=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(k,k)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),T=function(t,e){return t===e||t===w&&e===o},S=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},E=function(t){return T(w,t)?new M(t):new i(t)},M=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw x("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},j=function(t){try{t()}catch(t){return{error:t}}},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a=i?e.ok:e.fail,u=e.resolve,s=e.reject,c=e.domain;try{a?(i||(2==t._h&&N(t),t._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?s(x("Promise-chain cycle")):(o=S(n))?o.call(n,u,s):u(n)):s(r)}catch(t){s(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(u,function(){var e,n,r,i=t._v;if(I(t)&&(e=j(function(){_?b.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=_||I(t)?2:1),t._a=void 0,e)throw e.error})},I=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!I(e.promise))return!1;return!0},N=function(t){g.call(u,function(){var e;_?b.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},O=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=S(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,s(D,r,1),s(O,r,1))}catch(t){O.call(r,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){O.call({_w:n,_d:!1},t)}}};C||(w=function(t){h(this,w,m,"_h"),p(t),r.call(this);try{t(s(D,this,1),s(O,this,1))}catch(t){O.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(113)(w.prototype,{then:function(t,e){var n=E(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),M=function(){var t=new r;this.promise=t,this.resolve=s(D,t,1),this.reject=s(O,t,1)}),l(l.G+l.W+l.F*!C,{Promise:w}),n(24)(w,m),n(114)(m),o=n(1)[m],l(l.S+l.F*!C,m,{reject:function(t){var e=E(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!C),m,{resolve:function(t){if(t instanceof w&&T(t.constructor,this))return t;var e=E(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(C&&n(71)(function(t){w.all(t).catch(k)})),m,{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=j(function(){var n=[],o=0,a=1;d(t,!1,function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=j(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(119),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,function(){return this}())},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new d(r||[]);return a._invoke=l(t,n,u),a}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function a(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(n,r,o,a){var u=i(t[n],t,r);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&x.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){s.value=t,o(s)},a)}a(u.arg)}function r(t,n){function r(){return new Promise(function(r,i){e(t,n,r,i)})}return o=o?o.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var o;this._invoke=r}function l(t,e,n){var r=T;return function(o,a){if(r===E)throw new Error("Generator is already running");if(r===M){if("throw"===o)throw a;return g()}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=f(u,n);if(s){if(s===j)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===T)throw r=M,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=E;var c=i(t,e,n);if("normal"===c.type){if(r=n.done?M:S,c.arg===j)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=M,n.method="throw",n.arg=c.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return j;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var r=i(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,j;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,j):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,j)}function p(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 h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function v(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(x.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:g}}function g(){return{value:y,done:!0}}var y,m=Object.prototype,x=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",_=b.toStringTag||"@@toStringTag",k="object"==typeof t,C=e.regeneratorRuntime;if(C)return void(k&&(t.exports=C));C=e.regeneratorRuntime=k?t.exports:{},C.wrap=r;var T="suspendedStart",S="suspendedYield",E="executing",M="completed",j={},A={};A[w]=function(){return this};var P=Object.getPrototypeOf,I=P&&P(P(v([])));I&&I!==m&&x.call(I,w)&&(A=I);var N=u.prototype=o.prototype=Object.create(A);a.prototype=N.constructor=u,u.constructor=a,u[_]=a.displayName="GeneratorFunction",
C.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},C.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(N),t},C.awrap=function(t){return{__await:t}},s(c.prototype),C.AsyncIterator=c,C.async=function(t,e,n,i){var o=new c(r(t,e,n,i));return C.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(N),N[_]="Generator",N.toString=function(){return"[object Generator]"},C.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},C.values=v,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&x.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=x.call(i,"catchLoc"),u=x.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&x.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,j):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),j},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),j}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),j}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(105))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(74),o=r(i),a=n(37),u=r(a),s=n(73),c=r(s),l=n(72),f=r(l),p=n(59),h=r(p),d=n(122),v=r(d),g=n(11),y=r(g),m=n(12),x=r(m),b=function(){function t(){(0,y.default)(this,t)}return(0,x.default)(t,null,[{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}},{key:"getDefaultViewablePath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["3d","2d"],n=t.getRootItem(),r=[].concat((0,v.default)(e)),i=[];return r.forEach(function(t){i=[].concat((0,v.default)(i),(0,v.default)(Autodesk.Viewing.Document.getSubItemsWithProperties(n,{type:"geometry",role:t},!0)))}),i.length?t.getViewablePath(i[0]):null}},{key:"createButton",value:function(t,e,n,r){var i=new Autodesk.Viewing.UI.Button(t);return i.icon.style.fontSize="24px",i.icon.className=e,i.setToolTip(n),i.onClick=r,i}},{key:"createControlGroup",value:function(t,e){var n=t.getToolbar(!0);if(n){var r=new Autodesk.Viewing.UI.ControlGroup(e);return n.addControl(r),r}}},{key:"getLeafNodes",value:function(t,e){return new h.default(function(n,r){try{var i=t.getData().instanceTree;e=e||i.getRootId();for(var o=Array.isArray(e)?e:[e],a=[],u=function t(e){var n=0;i.enumNodeChildren(e,function(e){t(e),++n}),0==n&&a.push(e)},s=0;s<o.length;++s)u(o[s]);return n(a)}catch(t){return r(t)}})}},{key:"getFragIds",value:function(e,n){var r=this;return new h.default(function(){var i=(0,f.default)(c.default.mark(function i(o,a){var s,l;return c.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.delegateYield(c.default.mark(function i(){var a,u,l,f;return c.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=Array.isArray(n)?n:[n],u=e.getData().instanceTree,r.next=4,t.getLeafNodes(e,a);case 4:for(l=r.sent,f=[],s=0;s<l.length;++s)u.enumNodeFragments(l[s],function(t){f.push(t)});return r.abrupt("return",{v:o(f)});case 8:case"end":return r.stop()}},i,r)})(),"t0",2);case 2:if(l=i.t0,"object"!==("undefined"==typeof l?"undefined":(0,u.default)(l))){i.next=5;break}return i.abrupt("return",l.v);case 5:i.next=10;break;case 7:return i.prev=7,i.t1=i.catch(0),i.abrupt("return",a(i.t1));case 10:case"end":return i.stop()}},i,r,[[0,7]])}));return function(t,e){return i.apply(this,arguments)}}())}},{key:"getWorldBoundingBox",value:function(e,n){var r=this;return new h.default(function(){var i=(0,f.default)(c.default.mark(function i(o,a){var u,s,l,f;return c.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.getFragIds(e,n);case 3:if(u=r.sent,u.length){r.next=6;break}return r.abrupt("return",a("No geometry, invalid dbId?"));case 6:return s=e.getFragmentList(),l=new THREE.Box3,f=new THREE.Box3,u.forEach(function(t){s.getWorldBounds(t,l),f.union(l)}),r.abrupt("return",o(f));case 13:return r.prev=13,r.t0=r.catch(0),r.abrupt("return",a(r.t0));case 16:case"end":return r.stop()}},i,r,[[0,13]])}));return function(t,e){return i.apply(this,arguments)}}())}},{key:"getProperties",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new h.default(function(i,o){try{if(r){var a=r.map(function(r){return t.getProperty(e,n,r,"Not Available")});h.default.all(a).then(function(t){i(t)})}else e.getProperties(n,function(t){return t.properties?i(t.properties):o("No Properties")})}catch(t){return console.log(t),o(t)}})}},{key:"getProperty",value:function(t,e,n,r){return new h.default(function(i,o){try{t.getProperties(e,function(t){if(t.properties){if(t.properties.forEach(function(t){"function"==typeof n?n(t.displayName)&&i(t):n===t.displayName&&i(t)}),r)return i({displayValue:r,displayName:n});o(new Error("Not Found"))}else o(new Error("Error getting properties"))})}catch(t){return o(t)}})}},{key:"getPropertyList",value:function(e,n){var r=this;return new h.default(function(){var i=(0,f.default)(c.default.mark(function i(o,a){var u,s,l;return c.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,u=n.map(function(n){return t.getProperties(e,n)}),r.next=4,h.default.all(u);case 4:return s=r.sent,l=[],s.forEach(function(t){t.forEach(function(t){l.indexOf(t.displayName)<0&&l.push(t.displayName)})}),r.abrupt("return",o(l.sort()));case 10:return r.prev=10,r.t0=r.catch(0),r.abrupt("return",a(r.t0));case 13:case"end":return r.stop()}},i,r,[[0,10]])}));return function(t,e){return i.apply(this,arguments)}}())}},{key:"getBulkPropertiesAsync",value:function(t,e,n){return new h.default(function(r,i){t.getBulkProperties(e,n,function(t){r(t)},function(t){i(t)})})}},{key:"mapComponentsByProp",value:function(e,n,r,i){var a=this;return new h.default(function(){var i=(0,f.default)(c.default.mark(function i(u,s){var l,f,p;return c.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,t.getBulkPropertiesAsync(e,r,[n]);case 3:return l=i.sent,f=l.map(function(t){return(0,o.default)({},t.properties[0],{dbId:t.dbId})}),p={},f.forEach(function(t){var e=t.displayValue;"string"==typeof e&&(e=e.split(":")[0]),p[e]||(p[e]=[]),p[e].push(t.dbId)}),i.abrupt("return",u(p));case 10:return i.prev=10,i.t0=i.catch(0),i.abrupt("return",s(i.t0));case 13:case"end":return i.stop()}},i,a,[[0,10]])}));return function(t,e){return i.apply(this,arguments)}}())}},{key:"runTaskOnDataTree",value:function(t,e){var n=[],r=function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r.children&&r.children.forEach(function(e){t(e,r)});var o=e(r,i);n.push(o)};return r(t),h.default.all(n)}},{key:"drawBox",value:function(t,e,n){function r(e,n){for(var r=[],i=0;i<e.length;i+=2){var o=e[i],a=e[i+1],u=new THREE.Geometry;u.vertices.push(new THREE.Vector3(o.x,o.y,o.z)),u.vertices.push(new THREE.Vector3(a.x,a.y,a.z)),u.computeLineDistances();var s=new THREE.Line(u,n);t.impl.scene.add(s),r.push(s)}return r}var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i;o||(o=new THREE.LineBasicMaterial({color:16776960,linewidth:2}),t.impl.matman().addMaterial("ADN-Material-Line",o,!0));var a=r([{x:e.x,y:e.y,z:e.z},{x:n.x,y:e.y,z:e.z},{x:n.x,y:e.y,z:e.z},{x:n.x,y:e.y,z:n.z},{x:n.x,y:e.y,z:n.z},{x:e.x,y:e.y,z:n.z},{x:e.x,y:e.y,z:n.z},{x:e.x,y:e.y,z:e.z},{x:e.x,y:n.y,z:n.z},{x:n.x,y:n.y,z:n.z},{x:n.x,y:n.y,z:n.z},{x:n.x,y:n.y,z:e.z},{x:n.x,y:n.y,z:e.z},{x:e.x,y:n.y,z:e.z},{x:e.x,y:n.y,z:e.z},{x:e.x,y:n.y,z:n.z},{x:e.x,y:e.y,z:e.z},{x:e.x,y:n.y,z:e.z},{x:n.x,y:e.y,z:e.z},{x:n.x,y:n.y,z:e.z},{x:n.x,y:e.y,z:n.z},{x:n.x,y:n.y,z:n.z},{x:e.x,y:e.y,z:n.z},{x:e.x,y:n.y,z:n.z}],o);return t.impl.sceneUpdated(!0),a}},{key:"setMaterial",value:function(){function e(t,e,r){return n.apply(this,arguments)}var n=(0,f.default)(c.default.mark(function e(n,r,i){var o,a;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFragIds(n,r);case 2:o=e.sent,a=n.getFragmentList(),o.forEach(function(t){a.setMaterial(t,i)});case 5:case"end":return e.stop()}},e,this)}));return e}()},{key:"buildModelTree",value:function(t){function e(t){r.enumNodeChildren(t.dbId,function(i){var o=null;n?o=n(i):(t.children=t.children||[],o={dbId:i,name:r.getNodeName(i)},t.children.push(o)),e(o)})}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.getData().instanceTree,i=r.getRootId(),o={dbId:i,name:r.getNodeName(i)};return e(o),o}},{key:"executeTaskOnModelTree",value:function(t,e){function n(o){i.enumNodeChildren(o,function(i){r.push(e(t,i)),n(i)})}var r=[],i=t.getData().instanceTree,o=i.getRootId();return n(o),r}},{key:"isolateFull",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new h.default(function(){var o=(0,f.default)(c.default.mark(function o(a,u){var s,l,f,p;return c.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=r||e.model,e.isolate(i),s=Array.isArray(i)?i:[i],n.next=6,t.getLeafNodes(r,s);case 6:return l=n.sent,n.next=9,t.getLeafNodes(r);case 9:return f=n.sent,p=f.map(function(t){return new h.default(function(n){var r=!l.length||l.indexOf(t)>-1;e.impl.visibilityManager.setNodeOff(t,!r),n()})}),n.abrupt("return",h.default.all(p));case 14:return n.prev=14,n.t0=n.catch(0),n.abrupt("return",u(n.t0));case 17:case"end":return n.stop()}},o,n,[[0,14]])}));return function(t,e){return o.apply(this,arguments)}}())}},{key:"mobile",get:function(){return{getUserAgent:function(){return navigator.userAgent},isAndroid:function(){return this.getUserAgent().match(/Android/i)},isBlackBerry:function(){return this.getUserAgent().match(/BlackBerry/i)},isIOS:function(){return this.getUserAgent().match(/iPhone|iPad|iPod/i)},isOpera:function(){return this.getUserAgent().match(/Opera Mini/i)},isWindows:function(){return this.isWindowsDesktop()||this.isWindowsMobile()},isWindowsMobile:function(){return this.getUserAgent().match(/IEMobile/i)},isWindowsDesktop:function(){return this.getUserAgent().match(/WPDesktop/i)},isAny:function(){return this.isAndroid()||this.isBlackBerry()||this.isIOS()||this.isWindowsMobile()}}}}]),t}();e.default=b},function(t,e,n){t.exports={default:n(123),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(121),o=r(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){n(44),n(125),t.exports=n(1).Array.from},function(t,e,n){"use strict";var r=n(4),i=n(20);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){"use strict";var r=n(18),i=n(5),o=n(27),a=n(70),u=n(69),s=n(41),c=n(124),l=n(65);i(i.S+i.F*!n(71)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,p=o(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v,y=0,m=l(p);if(g&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(e=s(p.length),n=new h(e);e>y;y++)c(n,y,g?v(p[y],y):p[y]);else for(f=m.call(p),n=new h;!(i=f.next()).done;y++)c(n,y,g?a(f,v,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(14),o=r(i),a=n(127),u=r(a);e.default=function t(e,n,r){null===e&&(e=Function.prototype);var i=(0,u.default)(e,n);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,e,n){t.exports={default:n(128),__esModule:!0}},function(t,e,n){n(129);var r=n(1).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var r=n(8),i=n(45).f;n(60)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},,,,,,function(t,e,n){var r;(function(t,i,o){(function(){function o(t,e){return t.set(e[0],e[1]),t}function a(t,e){return t.add(e),t}function u(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function c(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function l(t,e){for(var n=null==t?0:t.length;n--&&e(t[n],n,t)!==!1;);return t}function f(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function p(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function h(t,e){var n=null==t?0:t.length;return!!n&&C(t,e,0)>-1}function d(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function v(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function g(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function y(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function m(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function x(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function b(t){return t.split("")}function w(t){return t.match(Ve)||[]}function _(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function k(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function C(t,e,n){return e===e?J(t,e,n):k(t,S,n)}function T(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function S(t){return t!==t}function E(t,e){var n=null==t?0:t.length;return n?I(t,e)/n:Ft}function M(t){return function(e){return null==e?it:e[t]}}function j(t){return function(e){return null==t?it:t[e]}}function A(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function P(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function I(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==it&&(n=n===it?o:n+o)}return n}function N(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function O(t,e){return v(e,function(e){return[e,t[e]]})}function D(t){return function(e){return t(e)}}function L(t,e){return v(e,function(e){return t[e]})}function F(t,e){return t.has(e)}function R(t,e){for(var n=-1,r=t.length;++n<r&&C(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length;n--&&C(e,t[n],0)>-1;);return n}function z(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function q(t){return"\\"+nr[t]}function H(t,e){return null==t?it:t[e]}function V(t){return Gn.test(t)}function W(t){return Xn.test(t)}function U(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function $(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t,e){return function(n){return t(e(n))}}function X(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==ft||(t[n]=ft,o[i++]=n)}return o}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function K(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function J(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Z(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function Q(t){return V(t)?et(t):xr(t)}function tt(t){return V(t)?nt(t):b(t)}function et(t){for(var e=Un.lastIndex=0;Un.test(t);)++e;return e}function nt(t){return t.match(Un)||[]}function rt(t){return t.match($n)||[]}var it,ot="4.17.4",at=200,ut="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",st="Expected a function",ct="__lodash_hash_undefined__",lt=500,ft="__lodash_placeholder__",pt=1,ht=2,dt=4,vt=1,gt=2,yt=1,mt=2,xt=4,bt=8,wt=16,_t=32,kt=64,Ct=128,Tt=256,St=512,Et=30,Mt="...",jt=800,At=16,Pt=1,It=2,Nt=3,Ot=1/0,Dt=9007199254740991,Lt=1.7976931348623157e308,Ft=NaN,Rt=4294967295,Bt=Rt-1,zt=Rt>>>1,qt=[["ary",Ct],["bind",yt],["bindKey",mt],["curry",bt],["curryRight",wt],["flip",St],["partial",_t],["partialRight",kt],["rearg",Tt]],Ht="[object Arguments]",Vt="[object Array]",Wt="[object AsyncFunction]",Ut="[object Boolean]",$t="[object Date]",Gt="[object DOMException]",Xt="[object Error]",Yt="[object Function]",Kt="[object GeneratorFunction]",Jt="[object Map]",Zt="[object Number]",Qt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",ce="[object WeakSet]",le="[object ArrayBuffer]",fe="[object DataView]",pe="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",ye="[object Uint8Array]",me="[object Uint8ClampedArray]",xe="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Se=RegExp(Ce.source),Ee=RegExp(Te.source),Me=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Ne=/^\./,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(De.source),Fe=/^\s+|\s+$/g,Re=/^\s+/,Be=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",an=nn+rn+on,un="\\u2700-\\u27bf",sn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",ln="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fn="\\u2000-\\u206f",pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",dn="\\ufe0e\\ufe0f",vn=cn+ln+fn+pn,gn="['’]",yn="["+en+"]",mn="["+vn+"]",xn="["+an+"]",bn="\\d+",wn="["+un+"]",_n="["+sn+"]",kn="[^"+en+vn+bn+un+sn+hn+"]",Cn="\\ud83c[\\udffb-\\udfff]",Tn="(?:"+xn+"|"+Cn+")",Sn="[^"+en+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Mn="[\\ud800-\\udbff][\\udc00-\\udfff]",jn="["+hn+"]",An="\\u200d",Pn="(?:"+_n+"|"+kn+")",In="(?:"+jn+"|"+kn+")",Nn="(?:"+gn+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+gn+"(?:D|LL|M|RE|S|T|VE))?",Dn=Tn+"?",Ln="["+dn+"]?",Fn="(?:"+An+"(?:"+[Sn,En,Mn].join("|")+")"+Ln+Dn+")*",Rn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Bn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",zn=Ln+Dn+Fn,qn="(?:"+[wn,En,Mn].join("|")+")"+zn,Hn="(?:"+[Sn+xn+"?",xn,En,Mn,yn].join("|")+")",Vn=RegExp(gn,"g"),Wn=RegExp(xn,"g"),Un=RegExp(Cn+"(?="+Cn+")|"+Hn+zn,"g"),$n=RegExp([jn+"?"+_n+"+"+Nn+"(?="+[mn,jn,"$"].join("|")+")",In+"+"+On+"(?="+[mn,jn+Pn,"$"].join("|")+")",jn+"?"+Pn+"+"+Nn,jn+"+"+On,Bn,Rn,bn,qn].join("|"),"g"),Gn=RegExp("["+An+en+an+dn+"]"),Xn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kn=-1,Jn={};Jn[pe]=Jn[he]=Jn[de]=Jn[ve]=Jn[ge]=Jn[ye]=Jn[me]=Jn[xe]=Jn[be]=!0,Jn[Ht]=Jn[Vt]=Jn[le]=Jn[Ut]=Jn[fe]=Jn[$t]=Jn[Xt]=Jn[Yt]=Jn[Jt]=Jn[Zt]=Jn[te]=Jn[re]=Jn[ie]=Jn[oe]=Jn[se]=!1;var Zn={};Zn[Ht]=Zn[Vt]=Zn[le]=Zn[fe]=Zn[Ut]=Zn[$t]=Zn[pe]=Zn[he]=Zn[de]=Zn[ve]=Zn[ge]=Zn[Jt]=Zn[Zt]=Zn[te]=Zn[re]=Zn[ie]=Zn[oe]=Zn[ae]=Zn[ye]=Zn[me]=Zn[xe]=Zn[be]=!0,Zn[Xt]=Zn[Yt]=Zn[se]=!1;var Qn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},er={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,ir=parseInt,or="object"==typeof t&&t&&t.Object===Object&&t,ar="object"==typeof self&&self&&self.Object===Object&&self,ur=or||ar||Function("return this")(),sr="object"==typeof e&&e&&!e.nodeType&&e,cr=sr&&"object"==typeof i&&i&&!i.nodeType&&i,lr=cr&&cr.exports===sr,fr=lr&&or.process,pr=function(){try{return fr&&fr.binding&&fr.binding("util")}catch(t){}}(),hr=pr&&pr.isArrayBuffer,dr=pr&&pr.isDate,vr=pr&&pr.isMap,gr=pr&&pr.isRegExp,yr=pr&&pr.isSet,mr=pr&&pr.isTypedArray,xr=M("length"),br=j(Qn),wr=j(tr),_r=j(er),kr=function t(e){function n(t){if(cs(t)&&!wp(t)&&!(t instanceof b)){if(t instanceof i)return t;if(bl.call(t,"__wrapped__"))return aa(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function b(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function j(){var t=new b(this.__wrapped__);return t.__actions__=zi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zi(this.__views__),t}function J(){if(this.__filtered__){var t=new b(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=wp(t),r=e<0,i=n?t.length:0,o=Ao(0,i,this.__views__),a=o.start,u=o.end,s=u-a,c=r?u:a-1,l=this.__iteratees__,f=l.length,p=0,h=Kl(s,this.__takeCount__);if(!n||!r&&i==s&&h==s)return wi(t,this.__actions__);var d=[];t:for(;s--&&p<h;){c+=e;for(var v=-1,g=t[c];++v<f;){var y=l[v],m=y.iteratee,x=y.type,b=m(g);if(x==It)g=b;else if(!b){if(x==Pt)continue t;break t}}d[p++]=g}return d}function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ve(){this.__data__=uf?uf(null):{},this.size=0}function en(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function nn(t){var e=this.__data__;if(uf){var n=e[t];return n===ct?it:n}return bl.call(e,t)?e[t]:it}function rn(t){var e=this.__data__;return uf?e[t]!==it:bl.call(e,t)}function on(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uf&&e===it?ct:e,this}function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function un(){this.__data__=[],this.size=0}function sn(t){var e=this.__data__,n=Nn(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ol.call(e,n,1),--this.size,!0}function cn(t){var e=this.__data__,n=Nn(e,t);return n<0?it:e[n][1]}function ln(t){return Nn(this.__data__,t)>-1}function fn(t,e){var n=this.__data__,r=Nn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function pn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function hn(){this.size=0,this.__data__={hash:new nt,map:new(nf||an),string:new nt}}function dn(t){var e=So(this,t).delete(t);return this.size-=e?1:0,e}function vn(t){return So(this,t).get(t)}function gn(t){return So(this,t).has(t)}function yn(t,e){var n=So(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function mn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new pn;++e<n;)this.add(t[e])}function xn(t){return this.__data__.set(t,ct),this}function bn(t){return this.__data__.has(t)}function wn(t){var e=this.__data__=new an(t);this.size=e.size}function _n(){this.__data__=new an,this.size=0}function kn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Cn(t){return this.__data__.get(t)}function Tn(t){return this.__data__.has(t)}function Sn(t,e){var n=this.__data__;if(n instanceof an){var r=n.__data__;if(!nf||r.length<at-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new pn(r)}return n.set(t,e),this.size=n.size,this}function En(t,e){var n=wp(t),r=!n&&bp(t),i=!n&&!r&&kp(t),o=!n&&!r&&!i&&Mp(t),a=n||r||i||o,u=a?N(t.length,hl):[],s=u.length;for(var c in t)!e&&!bl.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ro(c,s))||u.push(c);return u}function Mn(t){var e=t.length;return e?t[ni(0,e-1)]:it}function jn(t,e){return na(zi(t),Bn(e,0,t.length))}function An(t){return na(zi(t))}function Pn(t,e,n){(n===it||Yu(t[e],n))&&(n!==it||e in t)||Fn(t,e,n)}function In(t,e,n){var r=t[e];bl.call(t,e)&&Yu(r,n)&&(n!==it||e in t)||Fn(t,e,n)}function Nn(t,e){for(var n=t.length;n--;)if(Yu(t[n][0],e))return n;return-1}function On(t,e,n,r){return xf(t,function(t,i,o){e(r,t,n(t),o)}),r}function Dn(t,e){return t&&qi(e,Ws(e),t)}function Ln(t,e){return t&&qi(e,Us(e),t)}function Fn(t,e,n){"__proto__"==e&&Rl?Rl(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rn(t,e){for(var n=-1,r=e.length,i=al(r),o=null==t;++n<r;)i[n]=o?it:qs(t,e[n]);return i}function Bn(t,e,n){return t===t&&(n!==it&&(t=t<=n?t:n),e!==it&&(t=t>=e?t:e)),t}function zn(t,e,n,r,i,o){var a,u=e&pt,s=e&ht,l=e&dt;if(n&&(a=i?n(t,r,i,o):n(t)),a!==it)return a;if(!ss(t))return t;var f=wp(t);if(f){if(a=No(t),!u)return zi(t,a)}else{var p=Pf(t),h=p==Yt||p==Kt;if(kp(t))return Mi(t,u);if(p==te||p==Ht||h&&!i){if(a=s||h?{}:Oo(t),!u)return s?Vi(t,Ln(a,t)):Hi(t,Dn(a,t))}else{if(!Zn[p])return i?t:{};a=Do(t,p,zn,u)}}o||(o=new wn);var d=o.get(t);if(d)return d;o.set(t,a);var v=l?s?_o:wo:s?Us:Ws,g=f?it:v(t);return c(g||t,function(r,i){g&&(i=r,r=t[i]),In(a,i,zn(r,e,n,i,t,o))}),a}function qn(t){var e=Ws(t);return function(n){return Hn(n,t,e)}}function Hn(t,e,n){var r=n.length;if(null==t)return!r;for(t=fl(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===it&&!(i in t)||!o(a))return!1}return!0}function Un(t,e,n){if("function"!=typeof t)throw new dl(st);return Of(function(){t.apply(it,n)},e)}function $n(t,e,n,r){var i=-1,o=h,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=v(e,D(n))),r?(o=d,a=!1):e.length>=at&&(o=F,a=!1,e=new mn(e));t:for(;++i<u;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f===f){for(var p=c;p--;)if(e[p]===f)continue t;s.push(l)}else o(e,f,r)||s.push(l)}return s}function Gn(t,e){var n=!0;return xf(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Xn(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(u===it?a===a&&!bs(a):n(a,u)))var u=a,s=o}return s}function Qn(t,e,n,r){var i=t.length;for(n=Ss(n),n<0&&(n=-n>i?0:i+n),r=r===it||r>i?i:Ss(r),r<0&&(r+=i),r=n>r?0:Es(r);n<r;)t[n++]=e;return t}function tr(t,e){var n=[];return xf(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function er(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Fo),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?er(u,e-1,n,r,i):g(i,u):r||(i[i.length]=u)}return i}function nr(t,e){return t&&wf(t,e,Ws)}function or(t,e){return t&&_f(t,e,Ws)}function ar(t,e){return p(e,function(e){return os(t[e])})}function sr(t,e){e=Si(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[ra(e[n++])];return n&&n==r?t:it}function cr(t,e,n){var r=e(t);return wp(t)?r:g(r,n(t))}function fr(t){return null==t?t===it?ue:Qt:Fl&&Fl in fl(t)?jo(t):Ko(t)}function pr(t,e){return t>e}function xr(t,e){return null!=t&&bl.call(t,e)}function kr(t,e){return null!=t&&e in fl(t)}function Tr(t,e,n){return t>=Kl(e,n)&&t<Yl(e,n)}function Sr(t,e,n){for(var r=n?d:h,i=t[0].length,o=t.length,a=o,u=al(o),s=1/0,c=[];a--;){var l=t[a];a&&e&&(l=v(l,D(e))),s=Kl(l.length,s),u[a]=!n&&(e||i>=120&&l.length>=120)?new mn(a&&l):it}l=t[0];var f=-1,p=u[0];t:for(;++f<i&&c.length<s;){var g=l[f],y=e?e(g):g;if(g=n||0!==g?g:0,!(p?F(p,y):r(c,y,n))){for(a=o;--a;){var m=u[a];if(!(m?F(m,y):r(t[a],y,n)))continue t}p&&p.push(y),c.push(g)}}return c}function Er(t,e,n,r){return nr(t,function(t,i,o){e(r,n(t),i,o)}),r}function Mr(t,e,n){e=Si(e,t),t=Zo(t,e);var r=null==t?t:t[ra(Ta(e))];return null==r?it:u(r,t,n)}function jr(t){return cs(t)&&fr(t)==Ht}function Ar(t){return cs(t)&&fr(t)==le}function Pr(t){return cs(t)&&fr(t)==$t}function Ir(t,e,n,r,i){return t===e||(null==t||null==e||!cs(t)&&!cs(e)?t!==t&&e!==e:Nr(t,e,n,r,Ir,i))}function Nr(t,e,n,r,i,o){var a=wp(t),u=wp(e),s=a?Vt:Pf(t),c=u?Vt:Pf(e);s=s==Ht?te:s,c=c==Ht?te:c;var l=s==te,f=c==te,p=s==c;if(p&&kp(t)){if(!kp(e))return!1;a=!0,l=!1}if(p&&!l)return o||(o=new wn),a||Mp(t)?yo(t,e,n,r,i,o):mo(t,e,s,n,r,i,o);if(!(n&vt)){var h=l&&bl.call(t,"__wrapped__"),d=f&&bl.call(e,"__wrapped__");
if(h||d){var v=h?t.value():t,g=d?e.value():e;return o||(o=new wn),i(v,g,n,r,o)}}return!!p&&(o||(o=new wn),xo(t,e,n,r,i,o))}function Or(t){return cs(t)&&Pf(t)==Jt}function Dr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=fl(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){u=n[i];var s=u[0],c=t[s],l=u[1];if(a&&u[2]){if(c===it&&!(s in t))return!1}else{var f=new wn;if(r)var p=r(c,l,s,t,e,f);if(!(p===it?Ir(l,c,vt|gt,r,f):p))return!1}}return!0}function Lr(t){if(!ss(t)||Vo(t))return!1;var e=os(t)?Sl:Ye;return e.test(ia(t))}function Fr(t){return cs(t)&&fr(t)==re}function Rr(t){return cs(t)&&Pf(t)==ie}function Br(t){return cs(t)&&us(t.length)&&!!Jn[fr(t)]}function zr(t){return"function"==typeof t?t:null==t?Oc:"object"==typeof t?wp(t)?$r(t[0],t[1]):Ur(t):Hc(t)}function qr(t){if(!Wo(t))return Xl(t);var e=[];for(var n in fl(t))bl.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Hr(t){if(!ss(t))return Yo(t);var e=Wo(t),n=[];for(var r in t)("constructor"!=r||!e&&bl.call(t,r))&&n.push(r);return n}function Vr(t,e){return t<e}function Wr(t,e){var n=-1,r=Ku(t)?al(t.length):[];return xf(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Ur(t){var e=Eo(t);return 1==e.length&&e[0][2]?$o(e[0][0],e[0][1]):function(n){return n===t||Dr(n,t,e)}}function $r(t,e){return zo(t)&&Uo(e)?$o(ra(t),e):function(n){var r=qs(n,t);return r===it&&r===e?Vs(n,t):Ir(e,r,vt|gt)}}function Gr(t,e,n,r,i){t!==e&&wf(e,function(o,a){if(ss(o))i||(i=new wn),Xr(t,e,a,n,Gr,r,i);else{var u=r?r(t[a],o,a+"",t,e,i):it;u===it&&(u=o),Pn(t,a,u)}},Us)}function Xr(t,e,n,r,i,o,a){var u=t[n],s=e[n],c=a.get(s);if(c)return void Pn(t,n,c);var l=o?o(u,s,n+"",t,e,a):it,f=l===it;if(f){var p=wp(s),h=!p&&kp(s),d=!p&&!h&&Mp(s);l=s,p||h||d?wp(u)?l=u:Ju(u)?l=zi(u):h?(f=!1,l=Mi(s,!0)):d?(f=!1,l=Di(s,!0)):l=[]:ys(s)||bp(s)?(l=u,bp(u)?l=js(u):(!ss(u)||r&&os(u))&&(l=Oo(s))):f=!1}f&&(a.set(s,l),i(l,s,r,o,a),a.delete(s)),Pn(t,n,l)}function Yr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Ro(e,n)?t[e]:it}function Kr(t,e,n){var r=-1;e=v(e.length?e:[Oc],D(To()));var i=Wr(t,function(t,n,i){var o=v(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return P(i,function(t,e){return Fi(t,e,n)})}function Jr(t,e){return Zr(t,e,function(e,n){return Vs(t,n)})}function Zr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=sr(t,a);n(u,a)&&si(o,Si(a,t),u)}return o}function Qr(t){return function(e){return sr(e,t)}}function ti(t,e,n,r){var i=r?T:C,o=-1,a=e.length,u=t;for(t===e&&(e=zi(e)),n&&(u=v(t,D(n)));++o<a;)for(var s=0,c=e[o],l=n?n(c):c;(s=i(u,l,s,r))>-1;)u!==t&&Ol.call(u,s,1),Ol.call(t,s,1);return t}function ei(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Ro(i)?Ol.call(t,i,1):mi(t,i)}}return t}function ni(t,e){return t+Vl(Ql()*(e-t+1))}function ri(t,e,n,r){for(var i=-1,o=Yl(Hl((e-t)/(n||1)),0),a=al(o);o--;)a[r?o:++i]=t,t+=n;return a}function ii(t,e){var n="";if(!t||e<1||e>Dt)return n;do e%2&&(n+=t),e=Vl(e/2),e&&(t+=t);while(e);return n}function oi(t,e){return Df(Jo(t,e,Oc),t+"")}function ai(t){return Mn(rc(t))}function ui(t,e){var n=rc(t);return na(n,Bn(e,0,n.length))}function si(t,e,n,r){if(!ss(t))return t;e=Si(e,t);for(var i=-1,o=e.length,a=o-1,u=t;null!=u&&++i<o;){var s=ra(e[i]),c=n;if(i!=a){var l=u[s];c=r?r(l,s,u):it,c===it&&(c=ss(l)?l:Ro(e[i+1])?[]:{})}In(u,s,c),u=u[s]}return t}function ci(t){return na(rc(t))}function li(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=al(i);++r<i;)o[r]=t[r+e];return o}function fi(t,e){var n;return xf(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function pi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=zt){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!bs(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return hi(t,e,Oc,n)}function hi(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,a=e!==e,u=null===e,s=bs(e),c=e===it;i<o;){var l=Vl((i+o)/2),f=n(t[l]),p=f!==it,h=null===f,d=f===f,v=bs(f);if(a)var g=r||d;else g=c?d&&(r||p):u?d&&p&&(r||!h):s?d&&p&&!h&&(r||!v):!h&&!v&&(r?f<=e:f<e);g?i=l+1:o=l}return Kl(o,Bt)}function di(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!Yu(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function vi(t){return"number"==typeof t?t:bs(t)?Ft:+t}function gi(t){if("string"==typeof t)return t;if(wp(t))return v(t,gi)+"";if(bs(t))return yf?yf.call(t):"";var e=t+"";return"0"==e&&1/t==-Ot?"-0":e}function yi(t,e,n){var r=-1,i=h,o=t.length,a=!0,u=[],s=u;if(n)a=!1,i=d;else if(o>=at){var c=e?null:Ef(t);if(c)return Y(c);a=!1,i=F,s=new mn}else s=e?[]:u;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f===f){for(var p=s.length;p--;)if(s[p]===f)continue t;e&&s.push(f),u.push(l)}else i(s,f,n)||(s!==u&&s.push(f),u.push(l))}return u}function mi(t,e){return e=Si(e,t),t=Zo(t,e),null==t||delete t[ra(Ta(e))]}function xi(t,e,n,r){return si(t,e,n(sr(t,e)),r)}function bi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?li(t,r?0:o,r?o+1:i):li(t,r?o+1:0,r?i:o)}function wi(t,e){var n=t;return n instanceof b&&(n=n.value()),y(e,function(t,e){return e.func.apply(e.thisArg,g([t],e.args))},n)}function _i(t,e,n){var r=t.length;if(r<2)return r?yi(t[0]):[];for(var i=-1,o=al(r);++i<r;)for(var a=t[i],u=-1;++u<r;)u!=i&&(o[i]=$n(o[i]||a,t[u],e,n));return yi(er(o,1),e,n)}function ki(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var u=r<o?e[r]:it;n(a,t[r],u)}return a}function Ci(t){return Ju(t)?t:[]}function Ti(t){return"function"==typeof t?t:Oc}function Si(t,e){return wp(t)?t:zo(t,e)?[t]:Lf(Ps(t))}function Ei(t,e,n){var r=t.length;return n=n===it?r:n,!e&&n>=r?t:li(t,e,n)}function Mi(t,e){if(e)return t.slice();var n=t.length,r=Al?Al(n):new t.constructor(n);return t.copy(r),r}function ji(t){var e=new t.constructor(t.byteLength);return new jl(e).set(new jl(t)),e}function Ai(t,e){var n=e?ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Pi(t,e,n){var r=e?n($(t),pt):$(t);return y(r,o,new t.constructor)}function Ii(t){var e=new t.constructor(t.source,$e.exec(t));return e.lastIndex=t.lastIndex,e}function Ni(t,e,n){var r=e?n(Y(t),pt):Y(t);return y(r,a,new t.constructor)}function Oi(t){return gf?fl(gf.call(t)):{}}function Di(t,e){var n=e?ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Li(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,o=bs(t),a=e!==it,u=null===e,s=e===e,c=bs(e);if(!u&&!c&&!o&&t>e||o&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!s)return-1}return 0}function Fi(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var s=Li(i[r],o[r]);if(s){if(r>=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}function Ri(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,s=e.length,c=Yl(o-a,0),l=al(s+c),f=!r;++u<s;)l[u]=e[u];for(;++i<a;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[u++]=t[i++];return l}function Bi(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,s=-1,c=e.length,l=Yl(o-u,0),f=al(l+c),p=!r;++i<l;)f[i]=t[i];for(var h=i;++s<c;)f[h+s]=e[s];for(;++a<u;)(p||i<o)&&(f[h+n[a]]=t[i++]);return f}function zi(t,e){var n=-1,r=t.length;for(e||(e=al(r));++n<r;)e[n]=t[n];return e}function qi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],s=r?r(n[u],t[u],u,n,t):it;s===it&&(s=t[u]),i?Fn(n,u,s):In(n,u,s)}return n}function Hi(t,e){return qi(t,jf(t),e)}function Vi(t,e){return qi(t,Af(t),e)}function Wi(t,e){return function(n,r){var i=wp(n)?s:On,o=e?e():{};return i(n,t,To(r,2),o)}}function Ui(t){return oi(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:it,a=i>2?n[2]:it;for(o=t.length>3&&"function"==typeof o?(i--,o):it,a&&Bo(n[0],n[1],a)&&(o=i<3?it:o,i=1),e=fl(e);++r<i;){var u=n[r];u&&t(e,u,r,o)}return e})}function $i(t,e){return function(n,r){if(null==n)return n;if(!Ku(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=fl(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Gi(t){return function(e,n,r){for(var i=-1,o=fl(e),a=r(e),u=a.length;u--;){var s=a[t?u:++i];if(n(o[s],s,o)===!1)break}return e}}function Xi(t,e,n){function r(){var e=this&&this!==ur&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&yt,o=Ji(t);return r}function Yi(t){return function(e){e=Ps(e);var n=V(e)?tt(e):it,r=n?n[0]:e.charAt(0),i=n?Ei(n,1).join(""):e.slice(1);return r[t]()+i}}function Ki(t){return function(e){return y(jc(cc(e).replace(Vn,"")),t,"")}}function Ji(t){return function(){var e=arguments;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]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=mf(t.prototype),r=t.apply(n,e);return ss(r)?r:n}}function Zi(t,e,n){function r(){for(var o=arguments.length,a=al(o),s=o,c=Co(r);s--;)a[s]=arguments[s];var l=o<3&&a[0]!==c&&a[o-1]!==c?[]:X(a,c);if(o-=l.length,o<n)return co(t,e,eo,r.placeholder,it,a,l,it,it,n-o);var f=this&&this!==ur&&this instanceof r?i:t;return u(f,this,a)}var i=Ji(t);return r}function Qi(t){return function(e,n,r){var i=fl(e);if(!Ku(e)){var o=To(n,3);e=Ws(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:it}}function to(t){return bo(function(e){var n=e.length,r=n,o=i.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new dl(st);if(o&&!u&&"wrapper"==ko(a))var u=new i([],!0)}for(r=u?r:n;++r<n;){a=e[r];var s=ko(a),c="wrapper"==s?Mf(a):it;u=c&&Ho(c[0])&&c[1]==(Ct|bt|_t|Tt)&&!c[4].length&&1==c[9]?u[ko(c[0])].apply(u,c[3]):1==a.length&&Ho(a)?u[s]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&wp(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function eo(t,e,n,r,i,o,a,u,s,c){function l(){for(var y=arguments.length,m=al(y),x=y;x--;)m[x]=arguments[x];if(d)var b=Co(l),w=z(m,b);if(r&&(m=Ri(m,r,i,d)),o&&(m=Bi(m,o,a,d)),y-=w,d&&y<c){var _=X(m,b);return co(t,e,eo,l.placeholder,n,m,_,u,s,c-y)}var k=p?n:this,C=h?k[t]:t;return y=m.length,u?m=Qo(m,u):v&&y>1&&m.reverse(),f&&s<y&&(m.length=s),this&&this!==ur&&this instanceof l&&(C=g||Ji(C)),C.apply(k,m)}var f=e&Ct,p=e&yt,h=e&mt,d=e&(bt|wt),v=e&St,g=h?it:Ji(t);return l}function no(t,e){return function(n,r){return Er(n,t,e(r),{})}}function ro(t,e){return function(n,r){var i;if(n===it&&r===it)return e;if(n!==it&&(i=n),r!==it){if(i===it)return r;"string"==typeof n||"string"==typeof r?(n=gi(n),r=gi(r)):(n=vi(n),r=vi(r)),i=t(n,r)}return i}}function io(t){return bo(function(e){return e=v(e,D(To())),oi(function(n){var r=this;return t(e,function(t){return u(t,r,n)})})})}function oo(t,e){e=e===it?" ":gi(e);var n=e.length;if(n<2)return n?ii(e,t):e;var r=ii(e,Hl(t/Q(e)));return V(e)?Ei(tt(r),0,t).join(""):r.slice(0,t)}function ao(t,e,n,r){function i(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=al(l+s),p=this&&this!==ur&&this instanceof i?a:t;++c<l;)f[c]=r[c];for(;s--;)f[c++]=arguments[++e];return u(p,o?n:this,f)}var o=e&yt,a=Ji(t);return i}function uo(t){return function(e,n,r){return r&&"number"!=typeof r&&Bo(e,n,r)&&(n=r=it),e=Ts(e),n===it?(n=e,e=0):n=Ts(n),r=r===it?e<n?1:-1:Ts(r),ri(e,n,r,t)}}function so(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Ms(e),n=Ms(n)),t(e,n)}}function co(t,e,n,r,i,o,a,u,s,c){var l=e&bt,f=l?a:it,p=l?it:a,h=l?o:it,d=l?it:o;e|=l?_t:kt,e&=~(l?kt:_t),e&xt||(e&=~(yt|mt));var v=[t,e,i,h,f,d,p,u,s,c],g=n.apply(it,v);return Ho(t)&&Nf(g,v),g.placeholder=r,ta(g,t,e)}function lo(t){var e=ll[t];return function(t,n){if(t=Ms(t),n=null==n?0:Kl(Ss(n),292)){var r=(Ps(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Ps(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function fo(t){return function(e){var n=Pf(e);return n==Jt?$(e):n==ie?K(e):O(e,t(e))}}function po(t,e,n,r,i,o,a,u){var s=e&mt;if(!s&&"function"!=typeof t)throw new dl(st);var c=r?r.length:0;if(c||(e&=~(_t|kt),r=i=it),a=a===it?a:Yl(Ss(a),0),u=u===it?u:Ss(u),c-=i?i.length:0,e&kt){var l=r,f=i;r=i=it}var p=s?it:Mf(t),h=[t,e,n,r,i,l,f,o,a,u];if(p&&Xo(h,p),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],u=h[9]=h[9]===it?s?0:t.length:Yl(h[9]-c,0),!u&&e&(bt|wt)&&(e&=~(bt|wt)),e&&e!=yt)d=e==bt||e==wt?Zi(t,e,u):e!=_t&&e!=(yt|_t)||i.length?eo.apply(it,h):ao(t,e,n,r);else var d=Xi(t,e,n);var v=p?kf:Nf;return ta(v(d,h),t,e)}function ho(t,e,n,r){return t===it||Yu(t,yl[n])&&!bl.call(r,n)?e:t}function vo(t,e,n,r,i,o){return ss(t)&&ss(e)&&(o.set(e,t),Gr(t,e,it,vo,o),o.delete(e)),t}function go(t){return ys(t)?it:t}function yo(t,e,n,r,i,o){var a=n&vt,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,f=!0,p=n&gt?new mn:it;for(o.set(t,e),o.set(e,t);++l<u;){var h=t[l],d=e[l];if(r)var v=a?r(d,h,l,e,t,o):r(h,d,l,t,e,o);if(v!==it){if(v)continue;f=!1;break}if(p){if(!x(e,function(t,e){if(!F(p,e)&&(h===t||i(h,t,n,r,o)))return p.push(e)})){f=!1;break}}else if(h!==d&&!i(h,d,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function mo(t,e,n,r,i,o,a){switch(n){case fe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case le:return!(t.byteLength!=e.byteLength||!o(new jl(t),new jl(e)));case Ut:case $t:case Zt:return Yu(+t,+e);case Xt:return t.name==e.name&&t.message==e.message;case re:case oe:return t==e+"";case Jt:var u=$;case ie:var s=r&vt;if(u||(u=Y),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;r|=gt,a.set(t,e);var l=yo(u(t),u(e),r,i,o,a);return a.delete(t),l;case ae:if(gf)return gf.call(t)==gf.call(e)}return!1}function xo(t,e,n,r,i,o){var a=n&vt,u=wo(t),s=u.length,c=wo(e),l=c.length;if(s!=l&&!a)return!1;for(var f=s;f--;){var p=u[f];if(!(a?p in e:bl.call(e,p)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var d=!0;o.set(t,e),o.set(e,t);for(var v=a;++f<s;){p=u[f];var g=t[p],y=e[p];if(r)var m=a?r(y,g,p,e,t,o):r(g,y,p,t,e,o);if(!(m===it?g===y||i(g,y,n,r,o):m)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var x=t.constructor,b=e.constructor;x!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o.delete(t),o.delete(e),d}function bo(t){return Df(Jo(t,it,ya),t+"")}function wo(t){return cr(t,Ws,jf)}function _o(t){return cr(t,Us,Af)}function ko(t){for(var e=t.name+"",n=cf[e],r=bl.call(cf,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Co(t){var e=bl.call(n,"placeholder")?n:t;return e.placeholder}function To(){var t=n.iteratee||Dc;return t=t===Dc?zr:t,arguments.length?t(arguments[0],arguments[1]):t}function So(t,e){var n=t.__data__;return qo(e)?n["string"==typeof e?"string":"hash"]:n.map}function Eo(t){for(var e=Ws(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Uo(i)]}return e}function Mo(t,e){var n=H(t,e);return Lr(n)?n:it}function jo(t){var e=bl.call(t,Fl),n=t[Fl];try{t[Fl]=it;var r=!0}catch(t){}var i=kl.call(t);return r&&(e?t[Fl]=n:delete t[Fl]),i}function Ao(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Kl(e,t+a);break;case"takeRight":t=Yl(t,e-a)}}return{start:t,end:e}}function Po(t){var e=t.match(qe);return e?e[1].split(He):[]}function Io(t,e,n){e=Si(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=ra(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&us(i)&&Ro(a,i)&&(wp(t)||bp(t)))}function No(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&bl.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Oo(t){return"function"!=typeof t.constructor||Wo(t)?{}:mf(Pl(t))}function Do(t,e,n,r){var i=t.constructor;switch(e){case le:return ji(t);case Ut:case $t:return new i(+t);case fe:return Ai(t,r);case pe:case he:case de:case ve:case ge:case ye:case me:case xe:case be:return Di(t,r);case Jt:return Pi(t,r,n);case Zt:case oe:return new i(t);case re:return Ii(t);case ie:return Ni(t,r,n);case ae:return Oi(t)}}function Lo(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ze,"{\n/* [wrapped with "+e+"] */\n")}function Fo(t){return wp(t)||bp(t)||!!(Dl&&t&&t[Dl])}function Ro(t,e){return e=null==e?Dt:e,!!e&&("number"==typeof t||Je.test(t))&&t>-1&&t%1==0&&t<e}function Bo(t,e,n){if(!ss(n))return!1;var r=typeof e;return!!("number"==r?Ku(n)&&Ro(e,n.length):"string"==r&&e in n)&&Yu(n[e],t)}function zo(t,e){if(wp(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!bs(t))||(Ie.test(t)||!Pe.test(t)||null!=e&&t in fl(e))}function qo(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ho(t){var e=ko(t),r=n[e];if("function"!=typeof r||!(e in b.prototype))return!1;if(t===r)return!0;var i=Mf(r);return!!i&&t===i[0]}function Vo(t){return!!_l&&_l in t}function Wo(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||yl;return t===n}function Uo(t){return t===t&&!ss(t)}function $o(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==it||t in fl(n)))}}function Go(t){var e=Du(t,function(t){return n.size===lt&&n.clear(),t}),n=e.cache;return e}function Xo(t,e){var n=t[1],r=e[1],i=n|r,o=i<(yt|mt|Ct),a=r==Ct&&n==bt||r==Ct&&n==Tt&&t[7].length<=e[8]||r==(Ct|Tt)&&e[7].length<=e[8]&&n==bt;if(!o&&!a)return t;r&yt&&(t[2]=e[2],i|=n&yt?0:xt);var u=e[3];if(u){var s=t[3];t[3]=s?Ri(s,u,e[4]):u,t[4]=s?X(t[3],ft):e[4]}return u=e[5],u&&(s=t[5],t[5]=s?Bi(s,u,e[6]):u,t[6]=s?X(t[5],ft):e[6]),u=e[7],u&&(t[7]=u),r&Ct&&(t[8]=null==t[8]?e[8]:Kl(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Yo(t){var e=[];if(null!=t)for(var n in fl(t))e.push(n);return e}function Ko(t){return kl.call(t)}function Jo(t,e,n){return e=Yl(e===it?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Yl(r.length-e,0),a=al(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=al(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),u(t,this,s)}}function Zo(t,e){return e.length<2?t:sr(t,li(e,0,-1))}function Qo(t,e){for(var n=t.length,r=Kl(e.length,n),i=zi(t);r--;){var o=e[r];t[r]=Ro(o,n)?i[o]:it}return t}function ta(t,e,n){var r=e+"";return Df(t,Lo(r,oa(Po(r),n)))}function ea(t){var e=0,n=0;return function(){var r=Jl(),i=At-(r-n);if(n=r,i>0){if(++e>=jt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function na(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n<e;){var o=ni(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function ra(t){if("string"==typeof t||bs(t))return t;var e=t+"";return"0"==e&&1/t==-Ot?"-0":e}function ia(t){if(null!=t){try{return xl.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function oa(t,e){return c(qt,function(n){var r="_."+n[0];e&n[1]&&!h(t,r)&&t.push(r)}),t.sort()}function aa(t){if(t instanceof b)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=zi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ua(t,e,n){e=(n?Bo(t,e,n):e===it)?1:Yl(Ss(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=al(Hl(r/e));i<r;)a[o++]=li(t,i,i+=e);return a}function sa(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function ca(){var t=arguments.length;if(!t)return[];for(var e=al(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return g(wp(n)?zi(n):[n],er(e,1))}function la(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:Ss(e),li(t,e<0?0:e,r)):[]}function fa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:Ss(e),e=r-e,li(t,0,e<0?0:e)):[]}function pa(t,e){return t&&t.length?bi(t,To(e,3),!0,!0):[]}function ha(t,e){return t&&t.length?bi(t,To(e,3),!0):[]}function da(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Bo(t,e,n)&&(n=0,r=i),Qn(t,e,n,r)):[]}function va(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Ss(n);return i<0&&(i=Yl(r+i,0)),k(t,To(e,3),i)}function ga(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==it&&(i=Ss(n),i=n<0?Yl(r+i,0):Kl(i,r-1)),k(t,To(e,3),i,!0)}function ya(t){var e=null==t?0:t.length;return e?er(t,1):[]}function ma(t){var e=null==t?0:t.length;return e?er(t,Ot):[]}function xa(t,e){var n=null==t?0:t.length;return n?(e=e===it?1:Ss(e),er(t,e)):[]}function ba(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function wa(t){return t&&t.length?t[0]:it}function _a(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Ss(n);return i<0&&(i=Yl(r+i,0)),C(t,e,i)}function ka(t){var e=null==t?0:t.length;return e?li(t,0,-1):[]}function Ca(t,e){return null==t?"":Gl.call(t,e)}function Ta(t){var e=null==t?0:t.length;return e?t[e-1]:it}function Sa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==it&&(i=Ss(n),i=i<0?Yl(r+i,0):Kl(i,r-1)),e===e?Z(t,e,i):k(t,S,i,!0)}function Ea(t,e){return t&&t.length?Yr(t,Ss(e)):it}function Ma(t,e){return t&&t.length&&e&&e.length?ti(t,e):t}function ja(t,e,n){return t&&t.length&&e&&e.length?ti(t,e,To(n,2)):t}function Aa(t,e,n){return t&&t.length&&e&&e.length?ti(t,e,it,n):t}function Pa(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=To(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return ei(t,i),n}function Ia(t){return null==t?t:tf.call(t)}function Na(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Bo(t,e,n)?(e=0,n=r):(e=null==e?0:Ss(e),n=n===it?r:Ss(n)),li(t,e,n)):[]}function Oa(t,e){return pi(t,e)}function Da(t,e,n){return hi(t,e,To(n,2))}function La(t,e){var n=null==t?0:t.length;if(n){var r=pi(t,e);if(r<n&&Yu(t[r],e))return r}return-1}function Fa(t,e){return pi(t,e,!0)}function Ra(t,e,n){return hi(t,e,To(n,2),!0)}function Ba(t,e){var n=null==t?0:t.length;if(n){var r=pi(t,e,!0)-1;if(Yu(t[r],e))return r}return-1}function za(t){return t&&t.length?di(t):[]}function qa(t,e){return t&&t.length?di(t,To(e,2)):[]}function Ha(t){var e=null==t?0:t.length;return e?li(t,1,e):[]}function Va(t,e,n){return t&&t.length?(e=n||e===it?1:Ss(e),li(t,0,e<0?0:e)):[]}function Wa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:Ss(e),e=r-e,li(t,e<0?0:e,r)):[]}function Ua(t,e){return t&&t.length?bi(t,To(e,3),!1,!0):[]}function $a(t,e){return t&&t.length?bi(t,To(e,3)):[]}function Ga(t){return t&&t.length?yi(t):[]}function Xa(t,e){return t&&t.length?yi(t,To(e,2)):[]}function Ya(t,e){return e="function"==typeof e?e:it,t&&t.length?yi(t,it,e):[]}function Ka(t){if(!t||!t.length)return[];var e=0;return t=p(t,function(t){if(Ju(t))return e=Yl(t.length,e),!0}),N(e,function(e){return v(t,M(e))})}function Ja(t,e){if(!t||!t.length)return[];var n=Ka(t);return null==e?n:v(n,function(t){return u(e,it,t)})}function Za(t,e){return ki(t||[],e||[],In)}function Qa(t,e){return ki(t||[],e||[],si)}function tu(t){var e=n(t);return e.__chain__=!0,e}function eu(t,e){return e(t),t}function nu(t,e){return e(t)}function ru(){return tu(this)}function iu(){return new i(this.value(),this.__chain__)}function ou(){this.__values__===it&&(this.__values__=Cs(this.value()));var t=this.__index__>=this.__values__.length,e=t?it:this.__values__[this.__index__++];return{done:t,value:e}}function au(){return this}function uu(t){for(var e,n=this;n instanceof r;){var i=aa(n);i.__index__=0,i.__values__=it,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e}function su(){var t=this.__wrapped__;if(t instanceof b){var e=t;return this.__actions__.length&&(e=new b(this)),e=e.reverse(),e.__actions__.push({func:nu,args:[Ia],thisArg:it}),new i(e,this.__chain__)}return this.thru(Ia)}function cu(){return wi(this.__wrapped__,this.__actions__)}function lu(t,e,n){var r=wp(t)?f:Gn;return n&&Bo(t,e,n)&&(e=it),r(t,To(e,3))}function fu(t,e){var n=wp(t)?p:tr;return n(t,To(e,3))}function pu(t,e){return er(mu(t,e),1)}function hu(t,e){return er(mu(t,e),Ot)}function du(t,e,n){return n=n===it?1:Ss(n),er(mu(t,e),n)}function vu(t,e){var n=wp(t)?c:xf;return n(t,To(e,3))}function gu(t,e){var n=wp(t)?l:bf;return n(t,To(e,3))}function yu(t,e,n,r){t=Ku(t)?t:rc(t),n=n&&!r?Ss(n):0;var i=t.length;return n<0&&(n=Yl(i+n,0)),xs(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&C(t,e,n)>-1}function mu(t,e){var n=wp(t)?v:Wr;return n(t,To(e,3))}function xu(t,e,n,r){return null==t?[]:(wp(e)||(e=null==e?[]:[e]),n=r?it:n,wp(n)||(n=null==n?[]:[n]),Kr(t,e,n))}function bu(t,e,n){var r=wp(t)?y:A,i=arguments.length<3;return r(t,To(e,4),n,i,xf)}function wu(t,e,n){var r=wp(t)?m:A,i=arguments.length<3;return r(t,To(e,4),n,i,bf)}function _u(t,e){var n=wp(t)?p:tr;return n(t,Lu(To(e,3)))}function ku(t){var e=wp(t)?Mn:ai;return e(t)}function Cu(t,e,n){e=(n?Bo(t,e,n):e===it)?1:Ss(e);var r=wp(t)?jn:ui;return r(t,e)}function Tu(t){var e=wp(t)?An:ci;return e(t)}function Su(t){if(null==t)return 0;if(Ku(t))return xs(t)?Q(t):t.length;var e=Pf(t);return e==Jt||e==ie?t.size:qr(t).length}function Eu(t,e,n){var r=wp(t)?x:fi;return n&&Bo(t,e,n)&&(e=it),r(t,To(e,3))}function Mu(t,e){if("function"!=typeof e)throw new dl(st);return t=Ss(t),function(){if(--t<1)return e.apply(this,arguments)}}function ju(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,po(t,Ct,it,it,it,it,e)}function Au(t,e){var n;if("function"!=typeof e)throw new dl(st);return t=Ss(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Pu(t,e,n){e=n?it:e;var r=po(t,bt,it,it,it,it,it,e);return r.placeholder=Pu.placeholder,r}function Iu(t,e,n){e=n?it:e;var r=po(t,wt,it,it,it,it,it,e);return r.placeholder=Iu.placeholder,r}function Nu(t,e,n){function r(e){var n=p,r=h;return p=h=it,m=e,v=t.apply(r,n)}function i(t){return m=t,g=Of(u,e),x?r(t):v}function o(t){var n=t-y,r=t-m,i=e-n;return b?Kl(i,d-r):i}function a(t){var n=t-y,r=t-m;return y===it||n>=e||n<0||b&&r>=d}function u(){var t=cp();return a(t)?s(t):void(g=Of(u,o(t)))}function s(t){return g=it,w&&p?r(t):(p=h=it,v)}function c(){g!==it&&Sf(g),m=0,p=y=h=g=it}function l(){return g===it?v:s(cp())}function f(){var t=cp(),n=a(t);if(p=arguments,h=this,y=t,n){if(g===it)return i(y);if(b)return g=Of(u,e),r(y)}return g===it&&(g=Of(u,e)),v}var p,h,d,v,g,y,m=0,x=!1,b=!1,w=!0;if("function"!=typeof t)throw new dl(st);return e=Ms(e)||0,ss(n)&&(x=!!n.leading,b="maxWait"in n,d=b?Yl(Ms(n.maxWait)||0,e):d,w="trailing"in n?!!n.trailing:w),f.cancel=c,f.flush=l,f}function Ou(t){return po(t,St)}function Du(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new dl(st);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Du.Cache||pn),n}function Lu(t){if("function"!=typeof t)throw new dl(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Fu(t){return Au(2,t)}function Ru(t,e){if("function"!=typeof t)throw new dl(st);return e=e===it?e:Ss(e),oi(t,e)}function Bu(t,e){if("function"!=typeof t)throw new dl(st);return e=null==e?0:Yl(Ss(e),0),oi(function(n){var r=n[e],i=Ei(n,0,e);return r&&g(i,r),u(t,this,i)})}function zu(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new dl(st);return ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Nu(t,e,{leading:r,maxWait:e,trailing:i})}function qu(t){return ju(t,1)}function Hu(t,e){return vp(Ti(e),t)}function Vu(){if(!arguments.length)return[];var t=arguments[0];return wp(t)?t:[t]}function Wu(t){return zn(t,dt)}function Uu(t,e){return e="function"==typeof e?e:it,zn(t,dt,e)}function $u(t){return zn(t,pt|dt)}function Gu(t,e){return e="function"==typeof e?e:it,zn(t,pt|dt,e)}function Xu(t,e){return null==e||Hn(t,e,Ws(e))}function Yu(t,e){return t===e||t!==t&&e!==e}function Ku(t){return null!=t&&us(t.length)&&!os(t)}function Ju(t){return cs(t)&&Ku(t)}function Zu(t){return t===!0||t===!1||cs(t)&&fr(t)==Ut}function Qu(t){return cs(t)&&1===t.nodeType&&!ys(t)}function ts(t){if(null==t)return!0;if(Ku(t)&&(wp(t)||"string"==typeof t||"function"==typeof t.splice||kp(t)||Mp(t)||bp(t)))return!t.length;var e=Pf(t);if(e==Jt||e==ie)return!t.size;if(Wo(t))return!qr(t).length;for(var n in t)if(bl.call(t,n))return!1;return!0}function es(t,e){return Ir(t,e)}function ns(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?Ir(t,e,it,n):!!r}function rs(t){if(!cs(t))return!1;var e=fr(t);return e==Xt||e==Gt||"string"==typeof t.message&&"string"==typeof t.name&&!ys(t)}function is(t){return"number"==typeof t&&$l(t)}function os(t){if(!ss(t))return!1;var e=fr(t);return e==Yt||e==Kt||e==Wt||e==ne}function as(t){return"number"==typeof t&&t==Ss(t)}function us(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Dt}function ss(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function cs(t){return null!=t&&"object"==typeof t}function ls(t,e){return t===e||Dr(t,e,Eo(e))}function fs(t,e,n){return n="function"==typeof n?n:it,Dr(t,e,Eo(e),n)}function ps(t){return gs(t)&&t!=+t}function hs(t){if(If(t))throw new sl(ut);return Lr(t)}function ds(t){return null===t}function vs(t){return null==t}function gs(t){return"number"==typeof t||cs(t)&&fr(t)==Zt}function ys(t){if(!cs(t)||fr(t)!=te)return!1;var e=Pl(t);if(null===e)return!0;var n=bl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&xl.call(n)==Cl}function ms(t){return as(t)&&t>=-Dt&&t<=Dt}function xs(t){return"string"==typeof t||!wp(t)&&cs(t)&&fr(t)==oe}function bs(t){return"symbol"==typeof t||cs(t)&&fr(t)==ae}function ws(t){return t===it}function _s(t){return cs(t)&&Pf(t)==se}function ks(t){return cs(t)&&fr(t)==ce}function Cs(t){if(!t)return[];if(Ku(t))return xs(t)?tt(t):zi(t);if(Ll&&t[Ll])return U(t[Ll]());var e=Pf(t),n=e==Jt?$:e==ie?Y:rc;return n(t)}function Ts(t){if(!t)return 0===t?t:0;if(t=Ms(t),t===Ot||t===-Ot){var e=t<0?-1:1;return e*Lt}return t===t?t:0}function Ss(t){var e=Ts(t),n=e%1;return e===e?n?e-n:e:0}function Es(t){return t?Bn(Ss(t),0,Rt):0}function Ms(t){if("number"==typeof t)return t;if(bs(t))return Ft;if(ss(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ss(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Fe,"");var n=Xe.test(t);return n||Ke.test(t)?ir(t.slice(2),n?2:8):Ge.test(t)?Ft:+t}function js(t){return qi(t,Us(t))}function As(t){return t?Bn(Ss(t),-Dt,Dt):0===t?t:0}function Ps(t){return null==t?"":gi(t)}function Is(t,e){var n=mf(t);return null==e?n:Dn(n,e)}function Ns(t,e){return _(t,To(e,3),nr)}function Os(t,e){return _(t,To(e,3),or)}function Ds(t,e){return null==t?t:wf(t,To(e,3),Us)}function Ls(t,e){return null==t?t:_f(t,To(e,3),Us)}function Fs(t,e){return t&&nr(t,To(e,3))}function Rs(t,e){return t&&or(t,To(e,3))}function Bs(t){return null==t?[]:ar(t,Ws(t))}function zs(t){return null==t?[]:ar(t,Us(t))}function qs(t,e,n){var r=null==t?it:sr(t,e);return r===it?n:r}function Hs(t,e){return null!=t&&Io(t,e,xr)}function Vs(t,e){return null!=t&&Io(t,e,kr)}function Ws(t){return Ku(t)?En(t):qr(t)}function Us(t){return Ku(t)?En(t,!0):Hr(t)}function $s(t,e){var n={};return e=To(e,3),nr(t,function(t,r,i){Fn(n,e(t,r,i),t)}),n}function Gs(t,e){var n={};return e=To(e,3),nr(t,function(t,r,i){Fn(n,r,e(t,r,i))}),n}function Xs(t,e){return Ys(t,Lu(To(e)))}function Ys(t,e){if(null==t)return{};var n=v(_o(t),function(t){return[t]});return e=To(e),Zr(t,n,function(t,n){return e(t,n[0])})}function Ks(t,e,n){e=Si(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++r<i;){var o=null==t?it:t[ra(e[r])];o===it&&(r=i,o=n),t=os(o)?o.call(t):o}return t}function Js(t,e,n){return null==t?t:si(t,e,n)}function Zs(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:si(t,e,n,r)}function Qs(t,e,n){var r=wp(t),i=r||kp(t)||Mp(t);if(e=To(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ss(t)&&os(o)?mf(Pl(t)):{}}return(i?c:nr)(t,function(t,r,i){return e(n,t,r,i)}),n}function tc(t,e){return null==t||mi(t,e)}function ec(t,e,n){return null==t?t:xi(t,e,Ti(n))}function nc(t,e,n,r){return r="function"==typeof r?r:it,null==t?t:xi(t,e,Ti(n),r)}function rc(t){return null==t?[]:L(t,Ws(t))}function ic(t){return null==t?[]:L(t,Us(t))}function oc(t,e,n){return n===it&&(n=e,e=it),n!==it&&(n=Ms(n),n=n===n?n:0),e!==it&&(e=Ms(e),e=e===e?e:0),
Bn(Ms(t),e,n)}function ac(t,e,n){return e=Ts(e),n===it?(n=e,e=0):n=Ts(n),t=Ms(t),Tr(t,e,n)}function uc(t,e,n){if(n&&"boolean"!=typeof n&&Bo(t,e,n)&&(e=n=it),n===it&&("boolean"==typeof e?(n=e,e=it):"boolean"==typeof t&&(n=t,t=it)),t===it&&e===it?(t=0,e=1):(t=Ts(t),e===it?(e=t,t=0):e=Ts(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ql();return Kl(t+i*(e-t+rr("1e-"+((i+"").length-1))),e)}return ni(t,e)}function sc(t){return th(Ps(t).toLowerCase())}function cc(t){return t=Ps(t),t&&t.replace(Ze,br).replace(Wn,"")}function lc(t,e,n){t=Ps(t),e=gi(e);var r=t.length;n=n===it?r:Bn(Ss(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function fc(t){return t=Ps(t),t&&Ee.test(t)?t.replace(Te,wr):t}function pc(t){return t=Ps(t),t&&Le.test(t)?t.replace(De,"\\$&"):t}function hc(t,e,n){t=Ps(t),e=Ss(e);var r=e?Q(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return oo(Vl(i),n)+t+oo(Hl(i),n)}function dc(t,e,n){t=Ps(t),e=Ss(e);var r=e?Q(t):0;return e&&r<e?t+oo(e-r,n):t}function vc(t,e,n){t=Ps(t),e=Ss(e);var r=e?Q(t):0;return e&&r<e?oo(e-r,n)+t:t}function gc(t,e,n){return n||null==e?e=0:e&&(e=+e),Zl(Ps(t).replace(Re,""),e||0)}function yc(t,e,n){return e=(n?Bo(t,e,n):e===it)?1:Ss(e),ii(Ps(t),e)}function mc(){var t=arguments,e=Ps(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function xc(t,e,n){return n&&"number"!=typeof n&&Bo(t,e,n)&&(e=n=it),(n=n===it?Rt:n>>>0)?(t=Ps(t),t&&("string"==typeof e||null!=e&&!Sp(e))&&(e=gi(e),!e&&V(t))?Ei(tt(t),0,n):t.split(e,n)):[]}function bc(t,e,n){return t=Ps(t),n=null==n?0:Bn(Ss(n),0,t.length),e=gi(e),t.slice(n,n+e.length)==e}function wc(t,e,r){var i=n.templateSettings;r&&Bo(t,e,r)&&(e=it),t=Ps(t),e=Np({},e,i,ho);var o,a,u=Np({},e.imports,i.imports,ho),s=Ws(u),c=L(u,s),l=0,f=e.interpolate||Qe,p="__p += '",h=pl((e.escape||Qe).source+"|"+f.source+"|"+(f===Ae?Ue:Qe).source+"|"+(e.evaluate||Qe).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Kn+"]")+"\n";t.replace(h,function(e,n,r,i,u,s){return r||(r=i),p+=t.slice(l,s).replace(tn,q),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var v=e.variable;v||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(we,""):p).replace(_e,"$1").replace(ke,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=eh(function(){return cl(s,d+"return "+p).apply(it,c)});if(g.source=p,rs(g))throw g;return g}function _c(t){return Ps(t).toLowerCase()}function kc(t){return Ps(t).toUpperCase()}function Cc(t,e,n){if(t=Ps(t),t&&(n||e===it))return t.replace(Fe,"");if(!t||!(e=gi(e)))return t;var r=tt(t),i=tt(e),o=R(r,i),a=B(r,i)+1;return Ei(r,o,a).join("")}function Tc(t,e,n){if(t=Ps(t),t&&(n||e===it))return t.replace(Be,"");if(!t||!(e=gi(e)))return t;var r=tt(t),i=B(r,tt(e))+1;return Ei(r,0,i).join("")}function Sc(t,e,n){if(t=Ps(t),t&&(n||e===it))return t.replace(Re,"");if(!t||!(e=gi(e)))return t;var r=tt(t),i=R(r,tt(e));return Ei(r,i).join("")}function Ec(t,e){var n=Et,r=Mt;if(ss(e)){var i="separator"in e?e.separator:i;n="length"in e?Ss(e.length):n,r="omission"in e?gi(e.omission):r}t=Ps(t);var o=t.length;if(V(t)){var a=tt(t);o=a.length}if(n>=o)return t;var u=n-Q(r);if(u<1)return r;var s=a?Ei(a,0,u).join(""):t.slice(0,u);if(i===it)return s+r;if(a&&(u+=s.length-u),Sp(i)){if(t.slice(u).search(i)){var c,l=s;for(i.global||(i=pl(i.source,Ps($e.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;s=s.slice(0,f===it?u:f)}}else if(t.indexOf(gi(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function Mc(t){return t=Ps(t),t&&Se.test(t)?t.replace(Ce,_r):t}function jc(t,e,n){return t=Ps(t),e=n?it:e,e===it?W(t)?rt(t):w(t):t.match(e)||[]}function Ac(t){var e=null==t?0:t.length,n=To();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new dl(st);return[n(t[0]),t[1]]}):[],oi(function(n){for(var r=-1;++r<e;){var i=t[r];if(u(i[0],this,n))return u(i[1],this,n)}})}function Pc(t){return qn(zn(t,pt))}function Ic(t){return function(){return t}}function Nc(t,e){return null==t||t!==t?e:t}function Oc(t){return t}function Dc(t){return zr("function"==typeof t?t:zn(t,pt))}function Lc(t){return Ur(zn(t,pt))}function Fc(t,e){return $r(t,zn(e,pt))}function Rc(t,e,n){var r=Ws(e),i=ar(e,r);null!=n||ss(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=ar(e,Ws(e)));var o=!(ss(n)&&"chain"in n&&!n.chain),a=os(t);return c(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=zi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,g([this.value()],arguments))})}),t}function Bc(){return ur._===this&&(ur._=Tl),this}function zc(){}function qc(t){return t=Ss(t),oi(function(e){return Yr(e,t)})}function Hc(t){return zo(t)?M(ra(t)):Qr(t)}function Vc(t){return function(e){return null==t?it:sr(t,e)}}function Wc(){return[]}function Uc(){return!1}function $c(){return{}}function Gc(){return""}function Xc(){return!0}function Yc(t,e){if(t=Ss(t),t<1||t>Dt)return[];var n=Rt,r=Kl(t,Rt);e=To(e),t-=Rt;for(var i=N(r,e);++n<t;)e(n);return i}function Kc(t){return wp(t)?v(t,ra):bs(t)?[t]:zi(Lf(Ps(t)))}function Jc(t){var e=++wl;return Ps(t)+e}function Zc(t){return t&&t.length?Xn(t,Oc,pr):it}function Qc(t,e){return t&&t.length?Xn(t,To(e,2),pr):it}function tl(t){return E(t,Oc)}function el(t,e){return E(t,To(e,2))}function nl(t){return t&&t.length?Xn(t,Oc,Vr):it}function rl(t,e){return t&&t.length?Xn(t,To(e,2),Vr):it}function il(t){return t&&t.length?I(t,Oc):0}function ol(t,e){return t&&t.length?I(t,To(e,2)):0}e=null==e?ur:Cr.defaults(ur.Object(),e,Cr.pick(ur,Yn));var al=e.Array,ul=e.Date,sl=e.Error,cl=e.Function,ll=e.Math,fl=e.Object,pl=e.RegExp,hl=e.String,dl=e.TypeError,vl=al.prototype,gl=cl.prototype,yl=fl.prototype,ml=e["__core-js_shared__"],xl=gl.toString,bl=yl.hasOwnProperty,wl=0,_l=function(){var t=/[^.]+$/.exec(ml&&ml.keys&&ml.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),kl=yl.toString,Cl=xl.call(fl),Tl=ur._,Sl=pl("^"+xl.call(bl).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),El=lr?e.Buffer:it,Ml=e.Symbol,jl=e.Uint8Array,Al=El?El.allocUnsafe:it,Pl=G(fl.getPrototypeOf,fl),Il=fl.create,Nl=yl.propertyIsEnumerable,Ol=vl.splice,Dl=Ml?Ml.isConcatSpreadable:it,Ll=Ml?Ml.iterator:it,Fl=Ml?Ml.toStringTag:it,Rl=function(){try{var t=Mo(fl,"defineProperty");return t({},"",{}),t}catch(t){}}(),Bl=e.clearTimeout!==ur.clearTimeout&&e.clearTimeout,zl=ul&&ul.now!==ur.Date.now&&ul.now,ql=e.setTimeout!==ur.setTimeout&&e.setTimeout,Hl=ll.ceil,Vl=ll.floor,Wl=fl.getOwnPropertySymbols,Ul=El?El.isBuffer:it,$l=e.isFinite,Gl=vl.join,Xl=G(fl.keys,fl),Yl=ll.max,Kl=ll.min,Jl=ul.now,Zl=e.parseInt,Ql=ll.random,tf=vl.reverse,ef=Mo(e,"DataView"),nf=Mo(e,"Map"),rf=Mo(e,"Promise"),of=Mo(e,"Set"),af=Mo(e,"WeakMap"),uf=Mo(fl,"create"),sf=af&&new af,cf={},lf=ia(ef),ff=ia(nf),pf=ia(rf),hf=ia(of),df=ia(af),vf=Ml?Ml.prototype:it,gf=vf?vf.valueOf:it,yf=vf?vf.toString:it,mf=function(){function t(){}return function(e){if(!ss(e))return{};if(Il)return Il(e);t.prototype=e;var n=new t;return t.prototype=it,n}}();n.templateSettings={escape:Me,evaluate:je,interpolate:Ae,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,i.prototype=mf(r.prototype),i.prototype.constructor=i,b.prototype=mf(r.prototype),b.prototype.constructor=b,nt.prototype.clear=Ve,nt.prototype.delete=en,nt.prototype.get=nn,nt.prototype.has=rn,nt.prototype.set=on,an.prototype.clear=un,an.prototype.delete=sn,an.prototype.get=cn,an.prototype.has=ln,an.prototype.set=fn,pn.prototype.clear=hn,pn.prototype.delete=dn,pn.prototype.get=vn,pn.prototype.has=gn,pn.prototype.set=yn,mn.prototype.add=mn.prototype.push=xn,mn.prototype.has=bn,wn.prototype.clear=_n,wn.prototype.delete=kn,wn.prototype.get=Cn,wn.prototype.has=Tn,wn.prototype.set=Sn;var xf=$i(nr),bf=$i(or,!0),wf=Gi(),_f=Gi(!0),kf=sf?function(t,e){return sf.set(t,e),t}:Oc,Cf=Rl?function(t,e){return Rl(t,"toString",{configurable:!0,enumerable:!1,value:Ic(e),writable:!0})}:Oc,Tf=oi,Sf=Bl||function(t){return ur.clearTimeout(t)},Ef=of&&1/Y(new of([,-0]))[1]==Ot?function(t){return new of(t)}:zc,Mf=sf?function(t){return sf.get(t)}:zc,jf=Wl?function(t){return null==t?[]:(t=fl(t),p(Wl(t),function(e){return Nl.call(t,e)}))}:Wc,Af=Wl?function(t){for(var e=[];t;)g(e,jf(t)),t=Pl(t);return e}:Wc,Pf=fr;(ef&&Pf(new ef(new ArrayBuffer(1)))!=fe||nf&&Pf(new nf)!=Jt||rf&&Pf(rf.resolve())!=ee||of&&Pf(new of)!=ie||af&&Pf(new af)!=se)&&(Pf=function(t){var e=fr(t),n=e==te?t.constructor:it,r=n?ia(n):"";if(r)switch(r){case lf:return fe;case ff:return Jt;case pf:return ee;case hf:return ie;case df:return se}return e});var If=ml?os:Uc,Nf=ea(kf),Of=ql||function(t,e){return ur.setTimeout(t,e)},Df=ea(Cf),Lf=Go(function(t){var e=[];return Ne.test(t)&&e.push(""),t.replace(Oe,function(t,n,r,i){e.push(r?i.replace(We,"$1"):n||t)}),e}),Ff=oi(function(t,e){return Ju(t)?$n(t,er(e,1,Ju,!0)):[]}),Rf=oi(function(t,e){var n=Ta(e);return Ju(n)&&(n=it),Ju(t)?$n(t,er(e,1,Ju,!0),To(n,2)):[]}),Bf=oi(function(t,e){var n=Ta(e);return Ju(n)&&(n=it),Ju(t)?$n(t,er(e,1,Ju,!0),it,n):[]}),zf=oi(function(t){var e=v(t,Ci);return e.length&&e[0]===t[0]?Sr(e):[]}),qf=oi(function(t){var e=Ta(t),n=v(t,Ci);return e===Ta(n)?e=it:n.pop(),n.length&&n[0]===t[0]?Sr(n,To(e,2)):[]}),Hf=oi(function(t){var e=Ta(t),n=v(t,Ci);return e="function"==typeof e?e:it,e&&n.pop(),n.length&&n[0]===t[0]?Sr(n,it,e):[]}),Vf=oi(Ma),Wf=bo(function(t,e){var n=null==t?0:t.length,r=Rn(t,e);return ei(t,v(e,function(t){return Ro(t,n)?+t:t}).sort(Li)),r}),Uf=oi(function(t){return yi(er(t,1,Ju,!0))}),$f=oi(function(t){var e=Ta(t);return Ju(e)&&(e=it),yi(er(t,1,Ju,!0),To(e,2))}),Gf=oi(function(t){var e=Ta(t);return e="function"==typeof e?e:it,yi(er(t,1,Ju,!0),it,e)}),Xf=oi(function(t,e){return Ju(t)?$n(t,e):[]}),Yf=oi(function(t){return _i(p(t,Ju))}),Kf=oi(function(t){var e=Ta(t);return Ju(e)&&(e=it),_i(p(t,Ju),To(e,2))}),Jf=oi(function(t){var e=Ta(t);return e="function"==typeof e?e:it,_i(p(t,Ju),it,e)}),Zf=oi(Ka),Qf=oi(function(t){var e=t.length,n=e>1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Ja(t,n)}),tp=bo(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Rn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof b&&Ro(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:nu,args:[o],thisArg:it}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(o)}),ep=Wi(function(t,e,n){bl.call(t,n)?++t[n]:Fn(t,n,1)}),np=Qi(va),rp=Qi(ga),ip=Wi(function(t,e,n){bl.call(t,n)?t[n].push(e):Fn(t,n,[e])}),op=oi(function(t,e,n){var r=-1,i="function"==typeof e,o=Ku(t)?al(t.length):[];return xf(t,function(t){o[++r]=i?u(e,t,n):Mr(t,e,n)}),o}),ap=Wi(function(t,e,n){Fn(t,n,e)}),up=Wi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),sp=oi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Bo(t,e[0],e[1])?e=[]:n>2&&Bo(e[0],e[1],e[2])&&(e=[e[0]]),Kr(t,er(e,1),[])}),cp=zl||function(){return ur.Date.now()},lp=oi(function(t,e,n){var r=yt;if(n.length){var i=X(n,Co(lp));r|=_t}return po(t,r,e,n,i)}),fp=oi(function(t,e,n){var r=yt|mt;if(n.length){var i=X(n,Co(fp));r|=_t}return po(e,r,t,n,i)}),pp=oi(function(t,e){return Un(t,1,e)}),hp=oi(function(t,e,n){return Un(t,Ms(e)||0,n)});Du.Cache=pn;var dp=Tf(function(t,e){e=1==e.length&&wp(e[0])?v(e[0],D(To())):v(er(e,1),D(To()));var n=e.length;return oi(function(r){for(var i=-1,o=Kl(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return u(t,this,r)})}),vp=oi(function(t,e){var n=X(e,Co(vp));return po(t,_t,it,e,n)}),gp=oi(function(t,e){var n=X(e,Co(gp));return po(t,kt,it,e,n)}),yp=bo(function(t,e){return po(t,Tt,it,it,it,e)}),mp=so(pr),xp=so(function(t,e){return t>=e}),bp=jr(function(){return arguments}())?jr:function(t){return cs(t)&&bl.call(t,"callee")&&!Nl.call(t,"callee")},wp=al.isArray,_p=hr?D(hr):Ar,kp=Ul||Uc,Cp=dr?D(dr):Pr,Tp=vr?D(vr):Or,Sp=gr?D(gr):Fr,Ep=yr?D(yr):Rr,Mp=mr?D(mr):Br,jp=so(Vr),Ap=so(function(t,e){return t<=e}),Pp=Ui(function(t,e){if(Wo(e)||Ku(e))return void qi(e,Ws(e),t);for(var n in e)bl.call(e,n)&&In(t,n,e[n])}),Ip=Ui(function(t,e){qi(e,Us(e),t)}),Np=Ui(function(t,e,n,r){qi(e,Us(e),t,r)}),Op=Ui(function(t,e,n,r){qi(e,Ws(e),t,r)}),Dp=bo(Rn),Lp=oi(function(t){return t.push(it,ho),u(Np,it,t)}),Fp=oi(function(t){return t.push(it,vo),u(Hp,it,t)}),Rp=no(function(t,e,n){t[e]=n},Ic(Oc)),Bp=no(function(t,e,n){bl.call(t,e)?t[e].push(n):t[e]=[n]},To),zp=oi(Mr),qp=Ui(function(t,e,n){Gr(t,e,n)}),Hp=Ui(function(t,e,n,r){Gr(t,e,n,r)}),Vp=bo(function(t,e){var n={};if(null==t)return n;var r=!1;e=v(e,function(e){return e=Si(e,t),r||(r=e.length>1),e}),qi(t,_o(t),n),r&&(n=zn(n,pt|ht|dt,go));for(var i=e.length;i--;)mi(n,e[i]);return n}),Wp=bo(function(t,e){return null==t?{}:Jr(t,e)}),Up=fo(Ws),$p=fo(Us),Gp=Ki(function(t,e,n){return e=e.toLowerCase(),t+(n?sc(e):e)}),Xp=Ki(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Yp=Ki(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Kp=Yi("toLowerCase"),Jp=Ki(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zp=Ki(function(t,e,n){return t+(n?" ":"")+th(e)}),Qp=Ki(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),th=Yi("toUpperCase"),eh=oi(function(t,e){try{return u(t,it,e)}catch(t){return rs(t)?t:new sl(t)}}),nh=bo(function(t,e){return c(e,function(e){e=ra(e),Fn(t,e,lp(t[e],t))}),t}),rh=to(),ih=to(!0),oh=oi(function(t,e){return function(n){return Mr(n,t,e)}}),ah=oi(function(t,e){return function(n){return Mr(t,n,e)}}),uh=io(v),sh=io(f),ch=io(x),lh=uo(),fh=uo(!0),ph=ro(function(t,e){return t+e},0),hh=lo("ceil"),dh=ro(function(t,e){return t/e},1),vh=lo("floor"),gh=ro(function(t,e){return t*e},1),yh=lo("round"),mh=ro(function(t,e){return t-e},0);return n.after=Mu,n.ary=ju,n.assign=Pp,n.assignIn=Ip,n.assignInWith=Np,n.assignWith=Op,n.at=Dp,n.before=Au,n.bind=lp,n.bindAll=nh,n.bindKey=fp,n.castArray=Vu,n.chain=tu,n.chunk=ua,n.compact=sa,n.concat=ca,n.cond=Ac,n.conforms=Pc,n.constant=Ic,n.countBy=ep,n.create=Is,n.curry=Pu,n.curryRight=Iu,n.debounce=Nu,n.defaults=Lp,n.defaultsDeep=Fp,n.defer=pp,n.delay=hp,n.difference=Ff,n.differenceBy=Rf,n.differenceWith=Bf,n.drop=la,n.dropRight=fa,n.dropRightWhile=pa,n.dropWhile=ha,n.fill=da,n.filter=fu,n.flatMap=pu,n.flatMapDeep=hu,n.flatMapDepth=du,n.flatten=ya,n.flattenDeep=ma,n.flattenDepth=xa,n.flip=Ou,n.flow=rh,n.flowRight=ih,n.fromPairs=ba,n.functions=Bs,n.functionsIn=zs,n.groupBy=ip,n.initial=ka,n.intersection=zf,n.intersectionBy=qf,n.intersectionWith=Hf,n.invert=Rp,n.invertBy=Bp,n.invokeMap=op,n.iteratee=Dc,n.keyBy=ap,n.keys=Ws,n.keysIn=Us,n.map=mu,n.mapKeys=$s,n.mapValues=Gs,n.matches=Lc,n.matchesProperty=Fc,n.memoize=Du,n.merge=qp,n.mergeWith=Hp,n.method=oh,n.methodOf=ah,n.mixin=Rc,n.negate=Lu,n.nthArg=qc,n.omit=Vp,n.omitBy=Xs,n.once=Fu,n.orderBy=xu,n.over=uh,n.overArgs=dp,n.overEvery=sh,n.overSome=ch,n.partial=vp,n.partialRight=gp,n.partition=up,n.pick=Wp,n.pickBy=Ys,n.property=Hc,n.propertyOf=Vc,n.pull=Vf,n.pullAll=Ma,n.pullAllBy=ja,n.pullAllWith=Aa,n.pullAt=Wf,n.range=lh,n.rangeRight=fh,n.rearg=yp,n.reject=_u,n.remove=Pa,n.rest=Ru,n.reverse=Ia,n.sampleSize=Cu,n.set=Js,n.setWith=Zs,n.shuffle=Tu,n.slice=Na,n.sortBy=sp,n.sortedUniq=za,n.sortedUniqBy=qa,n.split=xc,n.spread=Bu,n.tail=Ha,n.take=Va,n.takeRight=Wa,n.takeRightWhile=Ua,n.takeWhile=$a,n.tap=eu,n.throttle=zu,n.thru=nu,n.toArray=Cs,n.toPairs=Up,n.toPairsIn=$p,n.toPath=Kc,n.toPlainObject=js,n.transform=Qs,n.unary=qu,n.union=Uf,n.unionBy=$f,n.unionWith=Gf,n.uniq=Ga,n.uniqBy=Xa,n.uniqWith=Ya,n.unset=tc,n.unzip=Ka,n.unzipWith=Ja,n.update=ec,n.updateWith=nc,n.values=rc,n.valuesIn=ic,n.without=Xf,n.words=jc,n.wrap=Hu,n.xor=Yf,n.xorBy=Kf,n.xorWith=Jf,n.zip=Zf,n.zipObject=Za,n.zipObjectDeep=Qa,n.zipWith=Qf,n.entries=Up,n.entriesIn=$p,n.extend=Ip,n.extendWith=Np,Rc(n,n),n.add=ph,n.attempt=eh,n.camelCase=Gp,n.capitalize=sc,n.ceil=hh,n.clamp=oc,n.clone=Wu,n.cloneDeep=$u,n.cloneDeepWith=Gu,n.cloneWith=Uu,n.conformsTo=Xu,n.deburr=cc,n.defaultTo=Nc,n.divide=dh,n.endsWith=lc,n.eq=Yu,n.escape=fc,n.escapeRegExp=pc,n.every=lu,n.find=np,n.findIndex=va,n.findKey=Ns,n.findLast=rp,n.findLastIndex=ga,n.findLastKey=Os,n.floor=vh,n.forEach=vu,n.forEachRight=gu,n.forIn=Ds,n.forInRight=Ls,n.forOwn=Fs,n.forOwnRight=Rs,n.get=qs,n.gt=mp,n.gte=xp,n.has=Hs,n.hasIn=Vs,n.head=wa,n.identity=Oc,n.includes=yu,n.indexOf=_a,n.inRange=ac,n.invoke=zp,n.isArguments=bp,n.isArray=wp,n.isArrayBuffer=_p,n.isArrayLike=Ku,n.isArrayLikeObject=Ju,n.isBoolean=Zu,n.isBuffer=kp,n.isDate=Cp,n.isElement=Qu,n.isEmpty=ts,n.isEqual=es,n.isEqualWith=ns,n.isError=rs,n.isFinite=is,n.isFunction=os,n.isInteger=as,n.isLength=us,n.isMap=Tp,n.isMatch=ls,n.isMatchWith=fs,n.isNaN=ps,n.isNative=hs,n.isNil=vs,n.isNull=ds,n.isNumber=gs,n.isObject=ss,n.isObjectLike=cs,n.isPlainObject=ys,n.isRegExp=Sp,n.isSafeInteger=ms,n.isSet=Ep,n.isString=xs,n.isSymbol=bs,n.isTypedArray=Mp,n.isUndefined=ws,n.isWeakMap=_s,n.isWeakSet=ks,n.join=Ca,n.kebabCase=Xp,n.last=Ta,n.lastIndexOf=Sa,n.lowerCase=Yp,n.lowerFirst=Kp,n.lt=jp,n.lte=Ap,n.max=Zc,n.maxBy=Qc,n.mean=tl,n.meanBy=el,n.min=nl,n.minBy=rl,n.stubArray=Wc,n.stubFalse=Uc,n.stubObject=$c,n.stubString=Gc,n.stubTrue=Xc,n.multiply=gh,n.nth=Ea,n.noConflict=Bc,n.noop=zc,n.now=cp,n.pad=hc,n.padEnd=dc,n.padStart=vc,n.parseInt=gc,n.random=uc,n.reduce=bu,n.reduceRight=wu,n.repeat=yc,n.replace=mc,n.result=Ks,n.round=yh,n.runInContext=t,n.sample=ku,n.size=Su,n.snakeCase=Jp,n.some=Eu,n.sortedIndex=Oa,n.sortedIndexBy=Da,n.sortedIndexOf=La,n.sortedLastIndex=Fa,n.sortedLastIndexBy=Ra,n.sortedLastIndexOf=Ba,n.startCase=Zp,n.startsWith=bc,n.subtract=mh,n.sum=il,n.sumBy=ol,n.template=wc,n.times=Yc,n.toFinite=Ts,n.toInteger=Ss,n.toLength=Es,n.toLower=_c,n.toNumber=Ms,n.toSafeInteger=As,n.toString=Ps,n.toUpper=kc,n.trim=Cc,n.trimEnd=Tc,n.trimStart=Sc,n.truncate=Ec,n.unescape=Mc,n.uniqueId=Jc,n.upperCase=Qp,n.upperFirst=th,n.each=vu,n.eachRight=gu,n.first=wa,Rc(n,function(){var t={};return nr(n,function(e,r){bl.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=ot,c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),c(["drop","take"],function(t,e){b.prototype[t]=function(n){n=n===it?1:Yl(Ss(n),0);var r=this.__filtered__&&!e?new b(this):this.clone();return r.__filtered__?r.__takeCount__=Kl(n,r.__takeCount__):r.__views__.push({size:Kl(n,Rt),type:t+(r.__dir__<0?"Right":"")}),r},b.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),c(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Pt||n==Nt;b.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:To(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),c(["head","last"],function(t,e){var n="take"+(e?"Right":"");b.prototype[t]=function(){return this[n](1).value()[0]}}),c(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");b.prototype[t]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(Oc)},b.prototype.find=function(t){return this.filter(t).head()},b.prototype.findLast=function(t){return this.reverse().find(t)},b.prototype.invokeMap=oi(function(t,e){return"function"==typeof t?new b(this):this.map(function(n){return Mr(n,t,e)})}),b.prototype.reject=function(t){return this.filter(Lu(To(t)))},b.prototype.slice=function(t,e){t=Ss(t);var n=this;return n.__filtered__&&(t>0||e<0)?new b(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=Ss(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},b.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},b.prototype.toArray=function(){return this.take(Rt)},nr(b.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),a=n[o?"take"+("last"==e?"Right":""):e],u=o||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,s=o?[1]:arguments,c=e instanceof b,l=s[0],f=c||wp(e),p=function(t){var e=a.apply(n,g([t],s));return o&&h?e[0]:e};f&&r&&"function"==typeof l&&1!=l.length&&(c=f=!1);var h=this.__chain__,d=!!this.__actions__.length,v=u&&!h,y=c&&!d;if(!u&&f){e=y?e:new b(this);var m=t.apply(e,s);return m.__actions__.push({func:nu,args:[p],thisArg:it}),new i(m,h)}return v&&y?t.apply(this,s):(m=this.thru(p),v?o?m.value()[0]:m.value():m)})}),c(["pop","push","shift","sort","splice","unshift"],function(t){var e=vl[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(wp(n)?n:[],t)}return this[r](function(n){return e.apply(wp(n)?n:[],t)})}}),nr(b.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"",o=cf[i]||(cf[i]=[]);o.push({name:e,func:r})}}),cf[eo(it,mt).name]=[{name:"wrapper",func:it}],b.prototype.clone=j,b.prototype.reverse=J,b.prototype.value=et,n.prototype.at=tp,n.prototype.chain=ru,n.prototype.commit=iu,n.prototype.next=ou,n.prototype.plant=uu,n.prototype.reverse=su,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=cu,n.prototype.first=n.prototype.head,Ll&&(n.prototype[Ll]=au),n},Cr=kr();ur._=Cr,r=function(){return Cr}.call(e,n,e,i),!(r!==it&&(i.exports=r))}).call(this)}).call(e,function(){return this}(),n(151)(t),n(135))},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=(new Date).getTime(),e="xxxx-xxxx-xxxx-xxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:7&n|8).toString(16)});return e}Object.defineProperty(e,"__esModule",{value:!0});var o=n(14),a=r(o),u=n(11),s=r(u),c=n(12),l=r(c),f=n(17),p=r(f),h=n(16),d=r(h),v=n(42),g=r(v),y=function(e){function n(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,s.default)(this,n);var o=(0,p.default)(this,(n.__proto__||(0,a.default)(n)).call(this)),u=o,c=i();o._inputId=i();var l='\n        <p class="onoffswitch">\n          <input id="'+o._inputId+'" type="checkbox" name="onoffswitch"\n            class="onoffswitch-checkbox" '+(r?"checked":"")+'>\n          <label id="'+c+'" class="onoffswitch-label">\n            <span class="onoffswitch-inner"></span>\n            <span class="onoffswitch-switch"></span>\n          </label>\n        </p>\n      ';return t(e).append(l),t("#"+c).click(function(e){var n=t("#"+o._inputId)[0];n.checked=!n.checked,u.emit("checked",n.checked)}),o}return(0,d.default)(n,e),(0,l.default)(n,[{key:"checked",value:function(){return t("#"+this._inputId)[0].checked}},{key:"setChecked",value:function(e){t("#"+this._inputId).prop("checked",e),this.emit("checked",e)}}]),n}(g.default);e.default=y;var m='\n\n  .onoffswitch {\n    position: relative; width: 50px;\n    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;\n  }\n  .onoffswitch-checkbox {\n    display: none;\n  }\n  .onoffswitch-label {\n    display: block; overflow: hidden; cursor: pointer;\n    border: 2px solid #999999; border-radius: 8px;\n  }\n  .onoffswitch-inner {\n    display: block; width: 200%; margin-left: -100%;\n    transition: margin 0.3s ease-in 0s;\n  }\n  .onoffswitch-inner:before, .onoffswitch-inner:after {\n    display: block;\n    float: left;\n    width: 50%;\n    height: 15px;\n    padding: 0;\n    line-height: 15px;\n    font-size: 10px;\n    color: white;\n    font-family: Trebuchet, Arial, sans-serif;\n    font-weight: bold;\n    box-sizing: border-box;\n  }\n  .onoffswitch-inner:before {\n    content: "ON";\n    background-color: #0E8200;\n    color: #FFFFFF;\n  }\n  .onoffswitch-inner:after {\n    content: "OFF";\n    padding-right: 10px;\n    background-color: #d9534f;\n    color: #FFFFFF;\n    text-align: right;\n  }\n  .onoffswitch-switch {\n    display: block;\n    width: 12px;\n    margin: 2px;\n    background: #FFFFFF;\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    right: 31px;\n    border: 2px solid #999999;\n    border-radius: 8px;\n    transition: all 0.3s ease-in 0s;\n  }\n  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {\n    margin-left: 0;\n  }\n  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {\n    right: -1px;\n  }\n';t('<style type="text/css">'+m+"</style>").appendTo("head")}).call(e,n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(136),o=r(i);e.default=o.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(143),o=r(i);e.default=o.default},,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxx",e=(new Date).getTime(),n=t.replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:7&n|8).toString(16)});return n}Object.defineProperty(e,"__esModule",{value:!0});var o=n(14),a=r(o),u=n(11),s=r(u),c=n(12),l=r(c),f=n(17),p=r(f),h=n(16),d=r(h),v=n(138),g=r(v);n(149);var y=function(e){function n(e){(0,s.default)(this,n);var r=(0,p.default)(this,(n.__proto__||(0,a.default)(n)).call(this));r.dropdownId=i(),r.buttonId=i(),r.labelId=i(),r.listId=i(),r.opts=e,r.currentItem=null,r.title=e.title||"Select Item: ";var o='\n      <div id="'+r.dropdownId+'" class="dropdown lmv-dropdown">\n      <button id="'+r.buttonId+'" class="btn dropdown-toggle"\n        type="button"\n        data-toggle="dropdown" disabled>\n        <div class="label-container">\n          <label id="'+r.labelId+'" class="label">'+r.title+'</label>\n        </div>\n        <span class="caret"></span>\n      </button>\n      <ul id="'+r.listId+'" class="dropdown-menu scrollable-menu">\n      </ul>\n      </div>\n    ';t(e.container).append(o),t("#"+r.dropdownId).css(e.pos),e.menuItems=e.menuItems||[];var u=e.prompt||r.title+": "+e.menuItems[e.selectedItemIdx||0].name;return t("#"+r.labelId).text(u),e.menuItems.forEach(function(t){r.addItem(t)}),r}return(0,d.default)(n,e),(0,l.default)(n,[{key:"addItem",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t("#"+this.buttonId).prop("disabled",!1);var o=e.id||i(),a='\n      <li id="'+o+'">\n        <a href="">'+e.name+"</a>\n      </li>";t("#"+this.listId).append(a);var u=function(r){r&&r.preventDefault(),n.currentItem=e;n.emit("item.selected",e);e.handler&&e.handler(),t("#"+n.labelId).text(n.title+": "+e.name)};t("#"+o).click(function(t){u(t)}),r&&u()}},{key:"setCurrentItem",value:function(e){this.currentItem=e,t("#"+this.labelId).text(this.title+": "+e.name)}},{key:"setItems",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t("#"+this.listId+" li").remove(),r<0)t("#"+this.labelId).text(this.opts.prompt);else{var i=this.title+": "+e[r].name;t("#"+this.labelId).text(i)}e.forEach(function(t){n.addItem(t)})}},{key:"removeCurrentItem",value:function(){this.currentItem&&(t("#"+this.currentItem.id).remove(),0===t("#"+this.listId+" > li").length&&t("#"+this.buttonId).prop("disabled",!0),this.currentItem=null),t("#"+this.labelId).text(this.title),this.emit("item.selected",null)}},{key:"removeItem",value:function(e){this.currentItem&&this.currentItem.id===e.id&&(t("#"+this.labelId).text(this.title),this.currentItem=null),t("#"+e.id).remove(),0===t("#"+this.listId+" > li").length&&t("#"+this.buttonId).prop("disabled",!0)}},{key:"setVisible",value:function(e){t("#"+this.dropdownId).css({display:e?"block":"none"})}},{key:"setPosition",value:function(e){t("#"+this.dropdownId).css(opts.pos)}},{key:"open",value:function(){t("#"+this.dropdownId).addClass("open"),t("#"+this.dropdownId).trigger("click.bs.dropdown")}},{key:"clear",value:function(){t("#"+this.buttonId).prop("disabled",!0),t("#"+this.listId+" li").remove(),this.currentItem=null}}]),n}(g.default);e.default=y}).call(e,n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(141),o=r(i);e.default=o.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(42),v=r(d),g=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).call(this))}return(0,h.default)(e,t),(0,c.default)(e,[{key:"showPayload",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",n=document.createElement("a");n.target=e,n.href=t,n.click()}},{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}}],[{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}}]),e}(v.default);e.default=g},,,,,function(t,e,n){e=t.exports=n(55)(),e.push([t.id,".lmv-dropdown .btn{background-color:#3c3f40;vertical-align:top;line-height:0;height:28px;width:100%}.lmv-dropdown .label{font:normal 14px Times New Roman}.scrollable-menu{height:auto;max-height:250px;overflow-x:hidden;overflow-y:scroll}.lmv-dropdown .label-container{width:calc(100% - 18px);white-space:nowrap;overflow:hidden}.lmv-dropdown .caret{border-top:4px solid #fff;position:absolute;top:45%;right:10px}.lmv-dropdown .dropdown-menu>li>a{padding:0 20px;line-height:24px;height:24px}",""])},function(t,e,n){var r=n(148);"string"==typeof r&&(r=[[t.id,r,""]]);n(56)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(168);"string"==typeof r&&(r=[[t.id,r,""]]);n(56)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){var r,i,r,o;(function(){t.exports=0;!function(n){var i,a,u="0.4.2",s="hasOwnProperty",c=/[\.\/]/,l=/\s*,\s*/,f="*",p=function(t,e){return t-e},h={n:{}},d=function(){for(var t=0,e=this.length;t<e;t++)if("undefined"!=typeof this[t])return this[t]},v=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},g=function(t,e){t=String(t);var n,r=a,o=Array.prototype.slice.call(arguments,2),u=g.listeners(t),s=0,c=[],l={},f=[],h=i;f.firstDefined=d,f.lastDefined=v,i=t,a=0;for(var y=0,m=u.length;y<m;y++)"zIndex"in u[y]&&(c.push(u[y].zIndex),u[y].zIndex<0&&(l[u[y].zIndex]=u[y]));for(c.sort(p);c[s]<0;)if(n=l[c[s++]],f.push(n.apply(e,o)),a)return a=r,f;for(y=0;y<m;y++)if(n=u[y],"zIndex"in n)if(n.zIndex==c[s]){if(f.push(n.apply(e,o)),a)break;do if(s++,n=l[c[s]],n&&f.push(n.apply(e,o)),a)break;while(n)}else l[n.zIndex]=n;else if(f.push(n.apply(e,o)),a)break;return a=r,i=h,f};g._events=h,g.listeners=function(t){var e,n,r,i,o,a,u,s,l=t.split(c),p=h,d=[p],v=[];for(i=0,o=l.length;i<o;i++){for(s=[],a=0,u=d.length;a<u;a++)for(p=d[a].n,n=[p[l[i]],p[f]],r=2;r--;)e=n[r],e&&(s.push(e),v=v.concat(e.f||[]));d=s}return v},g.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var n=t.split(l),r=0,i=n.length;r<i;r++)!function(t){for(var n,r=t.split(c),i=h,o=0,a=r.length;o<a;o++)i=i.n,i=i.hasOwnProperty(r[o])&&i[r[o]]||(i[r[o]]={n:{}});for(i.f=i.f||[],o=0,a=i.f.length;o<a;o++)if(i.f[o]==e){n=!0;break}!n&&i.f.push(e)}(n[r]);return function(t){+t==+t&&(e.zIndex=+t)}},g.f=function(t){var e=[].slice.call(arguments,1);return function(){g.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},g.stop=function(){a=1},g.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(i):i},g.nts=function(){return i.split(c)},g.off=g.unbind=function(t,e){if(!t)return void(g._events=h={
n:{}});var n=t.split(l);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],e);else{n=t.split(c);var o,a,u,r,i,p,d,v=[h];for(r=0,i=n.length;r<i;r++)for(p=0;p<v.length;p+=u.length-2){if(u=[p,1],o=v[p].n,n[r]!=f)o[n[r]]&&u.push(o[n[r]]);else for(a in o)o[s](a)&&u.push(o[a]);v.splice.apply(v,u)}for(r=0,i=v.length;r<i;r++)for(o=v[r];o.n;){if(e){if(o.f){for(p=0,d=o.f.length;p<d;p++)if(o.f[p]==e){o.f.splice(p,1);break}!o.f.length&&delete o.f}for(a in o.n)if(o.n[s](a)&&o.n[a].f){var y=o.n[a].f;for(p=0,d=y.length;p<d;p++)if(y[p]==e){y.splice(p,1);break}!y.length&&delete o.n[a].f}}else{delete o.f;for(a in o.n)o.n[s](a)&&o.n[a].f&&delete o.n[a].f}o=o.n}}},g.once=function(t,e){var n=function(){return g.unbind(t,n),e.apply(this,arguments)};return g.on(t,n)},g.version=u,g.toString=function(){return"You are running Eve "+u},"undefined"!=typeof t&&t.exports?t.exports=g:(r=[],!(o=function(){return g}.apply(e,r)))}(this),function(n,a){r=[o],i=function(t){return a(n,t)}.apply(e,r),!(void 0!==i&&(t.exports=i))}(window||this,function(t,e){var n=function(e){var n={},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},i=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,a="M"+(+new Date).toString(36),u=function(){return a+(o++).toString(36)},s=Date.now||function(){return+new Date},c=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},l=function(t){var e=this;return null==t?e.spd:void(e.spd=t)},f=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},p=function(){var t=this;delete n[t.id],t.update(),e("mina.stop."+t.id,t)},h=function(){var t=this;t.pdif||(delete n[t.id],t.update(),t.pdif=t.get()-t.b)},d=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,n[t.id]=t)},v=function(){var t,e=this;if(i(e.start)){t=[];for(var n=0,r=e.start.length;n<r;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},g=function(){var t=0;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],a=o.get();t++,o.s=(a-o.b)/(o.dur/o.spd),o.s>=1&&(delete n[i],o.s=1,t--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(o)),o.update()}t&&r(g)},y=function(t,e,i,o,a,s,m){var x={id:u(),start:t,end:e,b:i,s:0,dur:o-i,spd:1,get:a,set:s,easing:m||y.linear,status:c,speed:l,duration:f,stop:p,pause:h,resume:d,update:v};n[x.id]=x;var b,w=0;for(b in n)if(n.hasOwnProperty(b)&&(w++,2==w))break;return 1==w&&r(g),x};return y.time=s,y.getById=function(t){return n[t]||null},y.linear=function(t){return t},y.easeout=function(t){return Math.pow(t,1.7)},y.easein=function(t){return Math.pow(t,.48)},y.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1),o=-n-e,a=Math.pow(Math.abs(o),1/3)*(o<0?-1:1),u=i+a+.5;return 3*(1-u)*u*u+u*u*u},y.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},y.backout=function(t){if(0==t)return 0;t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},y.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},y.bounce=function(t){var e,n=7.5625,r=2.75;return t<1/r?e=n*t*t:t<2/r?(t-=1.5/r,e=n*t*t+.75):t<2.5/r?(t-=2.25/r,e=n*t*t+.9375):(t-=2.625/r,e=n*t*t+.984375),e},t.mina=y,y}("undefined"==typeof e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return _(t);if(i(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof m)return t;if(null==e)return t=C.doc.querySelector(String(t)),_(t)}return t=null==t?"100%":t,e=null==e?"100%":e,new w(t,e)}function r(t,e){if(e){if("#text"==t&&(t=C.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=C.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=r(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(U,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS($,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[T](n)){var i=S(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(U,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS($,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=C.doc.createElementNS($,t);return t}function i(t,e){return e=S.prototype.toLowerCase.call(e),"finite"==e?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||D.call(t).slice(8,-1).toLowerCase()==e)}function o(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[T](n)&&(e[n]=o(t[n]));return e}function a(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}function u(t,e,n){function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),u=r.cache=r.cache||{},s=r.count=r.count||[];return u[T](o)?(a(s,o),n?n(u[o]):u[o]):(s.length>=1e3&&delete u[s.shift()],s.push(o),u[o]=t.apply(e,i),n?n(u[o]):u[o])}return r}function s(t,e,n,r,i,o){if(null==i){var a=t-n,u=e-r;return a||u?(180+180*j.atan2(-u,-a)/N+360)%360:0}return s(t,e,i,o)-s(n,r,i,o)}function c(t){return t%360*N/180}function l(t){return 180*t/N%360}function f(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,j.tan(c(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,j.tan(c(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t}),e}function p(t,e){var r=tt(t),i=new n.Matrix;if(r)for(var o=0,a=r.length;o<a;o++){var u,s,c,l,f,p=r[o],h=p.length,d=S(p[0]).toLowerCase(),v=p[0]!=d,g=v?i.invert():0;"t"==d&&2==h?i.translate(p[1],0):"t"==d&&3==h?v?(u=g.x(0,0),s=g.y(0,0),c=g.x(p[1],p[2]),l=g.y(p[1],p[2]),i.translate(c-u,l-s)):i.translate(p[1],p[2]):"r"==d?2==h?(f=f||e,i.rotate(p[1],f.x+f.width/2,f.y+f.height/2)):4==h&&(v?(c=g.x(p[2],p[3]),l=g.y(p[2],p[3]),i.rotate(p[1],c,l)):i.rotate(p[1],p[2],p[3])):"s"==d?2==h||3==h?(f=f||e,i.scale(p[1],p[h-1],f.x+f.width/2,f.y+f.height/2)):4==h?v?(c=g.x(p[2],p[3]),l=g.y(p[2],p[3]),i.scale(p[1],p[1],c,l)):i.scale(p[1],p[1],p[2],p[3]):5==h&&(v?(c=g.x(p[3],p[4]),l=g.y(p[3],p[4]),i.scale(p[1],p[2],c,l)):i.scale(p[1],p[2],p[3],p[4])):"m"==d&&7==h&&i.add(p[1],p[2],p[3],p[4],p[5],p[6])}return i}function h(t){var e=t.node.ownerSVGElement&&_(t.node.ownerSVGElement)||t.node.parentNode&&_(t.node.parentNode)||n.select("svg")||n(0,0),r=e.select("defs"),i=null!=r&&r.node;return i||(i=b("defs",e.node).node),i}function d(t){return t.node.ownerSVGElement&&_(t.node.ownerSVGElement)||n.select("svg")}function v(t,e,n){function i(t){if(null==t)return O;if(t==+t)return t;r(c,{width:t});try{return c.getBBox().width}catch(t){return 0}}function o(t){if(null==t)return O;if(t==+t)return t;r(c,{height:t});try{return c.getBBox().height}catch(t){return 0}}function a(r,i){null==e?s[r]=i(t.attr(r)||0):r==e&&(s=i(null==n?t.attr(r)||0:n))}var u=d(t).node,s={},c=u.querySelector(".svg---mgr");switch(c||(c=r("rect"),r(c,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),u.appendChild(c)),t.type){case"rect":a("rx",i),a("ry",o);case"image":a("width",i),a("height",o);case"text":a("x",i),a("y",o);break;case"circle":a("cx",i),a("cy",o),a("r",i);break;case"ellipse":a("cx",i),a("cy",o),a("rx",i),a("ry",o);break;case"line":a("x1",i),a("x2",i),a("y1",o),a("y2",o);break;case"marker":a("refX",i),a("markerWidth",i),a("refY",o),a("markerHeight",o);break;case"radialGradient":a("fx",i),a("fy",o);break;case"tspan":a("dx",i),a("dy",o);break;default:a(e,i)}return u.removeChild(c),s}function y(t){i(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){r.appendChild(t.node)}):r.appendChild(t[e].node);var o=r.childNodes;for(e=0;e<o.length;e++)this[n++]=_(o[e]);return this}function m(t){if(t.snap in G)return G[t.snap];var e;try{e=t.ownerSVGElement}catch(t){}this.node=t,e&&(this.paper=new w(e)),this.type=t.tagName||t.nodeName;var n=this.id=W(this);if(this.anims={},this._={transform:[]},t.snap=n,G[n]=this,"g"==this.type&&(this.add=y),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var r in w.prototype)w.prototype[T](r)&&(this[r]=w.prototype[r])}function x(t){this.node=t}function b(t,e){var n=r(t);e.appendChild(n);var i=_(n);return i}function w(t,e){var n,i,o,a=w.prototype;if(t&&"svg"==t.tagName){if(t.snap in G)return G[t.snap];var u=t.ownerDocument;n=new m(t),i=t.getElementsByTagName("desc")[0],o=t.getElementsByTagName("defs")[0],i||(i=r("desc"),i.appendChild(u.createTextNode("Created with Snap")),n.node.appendChild(i)),o||(o=r("defs"),n.node.appendChild(o)),n.defs=o;for(var s in a)a[T](s)&&(n[s]=a[s]);n.paper=n.root=n}else n=b("svg",C.doc.body),r(n.node,{height:e,version:1.1,width:t,xmlns:$});return n}function _(t){return t?t instanceof m||t instanceof x?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new w(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new w(t.contentDocument.getElementsByTagName("svg")[0]):new m(t):t}function k(t,e){for(var n=0,r=t.length;n<r;n++){var i={type:t[n].type,attr:t[n].attr()},o=t[n].children();e.push(i),o.length&&k(o,i.childNodes=[])}}n.version="0.4.0",n.toString=function(){return"Snap v"+this.version},n._={};var C={win:t.window,doc:t.window.document};n._.glob=C;var T="hasOwnProperty",S=String,E=parseFloat,M=parseInt,j=Math,A=j.max,P=j.min,I=j.abs,N=(j.pow,j.PI),O=(j.round,""),D=Object.prototype.toString,L=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,F=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),R={hs:1,rg:1},B=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,z=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,q=/(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,H=0,V="S"+(+new Date).toString(36),W=function(t){return(t&&t.type?t.type:O)+V+(H++).toString(36)},U="http://www.w3.org/1999/xlink",$="http://www.w3.org/2000/svg",G={};n.url=function(t){return"url('#"+t+"')"};n._.$=r,n._.id=W,n.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,r){var i=r;return n.replace(e,function(t,e,n,r,o){e=e||r,i&&(e in i&&(i=i[e]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==r?t:i)+""};return function(e,r){return S(e).replace(t,function(t,e){return n(t,e,r)})}}(),n._.clone=o,n._.cacher=u,n.rad=c,n.deg=l,n.sin=function(t){return j.sin(n.rad(t))},n.tan=function(t){return j.tan(n.rad(t))},n.cos=function(t){return j.cos(n.rad(t))},n.asin=function(t){return n.deg(j.asin(t))},n.acos=function(t){return n.deg(j.acos(t))},n.atan=function(t){return n.deg(j.atan(t))},n.atan2=function(t){return n.deg(j.atan2(t))},n.angle=s,n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,o,a,u,s=t.node,c=s.getTotalLength(),l=c/s.pathSegList.numberOfItems*.125,f=1/0,p=0;p<=c;p+=l)(u=r(a=s.getPointAtLength(p)))<f&&(i=a,o=p,f=u);for(l*=.5;l>.5;){var h,d,v,g,y,m;(v=o-l)>=0&&(y=r(h=s.getPointAtLength(v)))<f?(i=h,o=v,f=y):(g=o+l)<=c&&(m=r(d=s.getPointAtLength(g)))<f?(i=d,o=g,f=m):l*=.5}return i={x:i.x,y:i.y,length:o,distance:Math.sqrt(f)}},n.is=i,n.snapTo=function(t,e,n){if(n=i(n,"finite")?n:10,i(t,"array")){for(var r=t.length;r--;)if(I(t[r]-e)<=n)return t[r]}else{t=+t;var o=e%t;if(o<n)return e-o;if(o>t-n)return e-o+t}return e},n.getRGB=u(function(t){if(!t||(t=S(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:J};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:J};if(!(R[T](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=X(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:J};var e,r,o,a,u,s,c=t.match(L);return c?(c[2]&&(o=M(c[2].substring(5),16),r=M(c[2].substring(3,5),16),e=M(c[2].substring(1,3),16)),c[3]&&(o=M((u=c[3].charAt(3))+u,16),r=M((u=c[3].charAt(2))+u,16),e=M((u=c[3].charAt(1))+u,16)),c[4]&&(s=c[4].split(F),e=E(s[0]),"%"==s[0].slice(-1)&&(e*=2.55),r=E(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),o=E(s[2]),"%"==s[2].slice(-1)&&(o*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(a=E(s[3])),s[3]&&"%"==s[3].slice(-1)&&(a/=100)),c[5]?(s=c[5].split(F),e=E(s[0]),"%"==s[0].slice(-1)&&(e/=100),r=E(s[1]),"%"==s[1].slice(-1)&&(r/=100),o=E(s[2]),"%"==s[2].slice(-1)&&(o/=100),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(e/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(a=E(s[3])),s[3]&&"%"==s[3].slice(-1)&&(a/=100),n.hsb2rgb(e,r,o,a)):c[6]?(s=c[6].split(F),e=E(s[0]),"%"==s[0].slice(-1)&&(e/=100),r=E(s[1]),"%"==s[1].slice(-1)&&(r/=100),o=E(s[2]),"%"==s[2].slice(-1)&&(o/=100),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(e/=360),"hsla"==c[1].toLowerCase().slice(0,4)&&(a=E(s[3])),s[3]&&"%"==s[3].slice(-1)&&(a/=100),n.hsl2rgb(e,r,o,a)):(e=P(j.round(e),255),r=P(j.round(r),255),o=P(j.round(o),255),a=P(A(a,0),1),c={r:e,g:r,b:o,toString:J},c.hex="#"+(16777216|o|r<<8|e<<16).toString(16).slice(1),c.opacity=i(a,"finite")?a:1,c)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:J}},n),n.hsb=u(function(t,e,r){return n.hsb2rgb(t,e,r).hex}),n.hsl=u(function(t,e,r){return n.hsl2rgb(t,e,r).hex}),n.rgb=u(function(t,e,n,r){if(i(r,"finite")){var o=j.round;return"rgba("+[o(t),o(e),o(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var X=function(t){var e=C.doc.getElementsByTagName("head")[0]||C.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(X=u(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var r=C.doc.defaultView.getComputedStyle(e,O).getPropertyValue("color");return r==n?null:r}))(t)},Y=function(){return"hsb("+[this.h,this.s,this.b]+")"},K=function(){return"hsl("+[this.h,this.s,this.l]+")"},J=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},Z=function(t,e,r){if(null==e&&i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&i(t,string)){var o=n.getRGB(t);t=o.r,e=o.g,r=o.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},Q=function(t,e,r,o){t=j.round(255*t),e=j.round(255*e),r=j.round(255*r);var a={r:t,g:e,b:r,opacity:i(o,"finite")?o:1,hex:n.rgb(t,e,r),toString:J};return i(o,"finite")&&(a.opacity=o),a};n.color=function(t){var e;return i(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):i(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(i(t,"string")&&(t=n.getRGB(t)),i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=J,t},n.hsb2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),t*=360;var o,a,u,s,c;return t=t%360/60,c=n*e,s=c*(1-I(t%2-1)),o=a=u=n-c,t=~~t,o+=[c,s,0,0,s,c][t],a+=[s,c,c,s,0,0][t],u+=[0,0,s,c,c,s][t],Q(o,a,u,r)},n.hsl2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var o,a,u,s,c;return t=t%360/60,c=2*e*(n<.5?n:1-n),s=c*(1-I(t%2-1)),o=a=u=n-c/2,t=~~t,o+=[c,s,0,0,s,c][t],a+=[s,c,c,s,0,0][t],u+=[0,0,s,c,c,s][t],Q(o,a,u,r)},n.rgb2hsb=function(t,e,n){n=Z(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a;return o=A(t,e,n),a=o-P(t,e,n),r=0==a?null:o==t?(e-n)/a:o==e?(n-t)/a+2:(t-e)/a+4,r=(r+360)%6*60/360,i=0==a?0:a/o,{h:r,s:i,b:o,toString:Y}},n.rgb2hsl=function(t,e,n){n=Z(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a,u,s;return a=A(t,e,n),u=P(t,e,n),s=a-u,r=0==s?null:a==t?(e-n)/s:a==e?(n-t)/s+2:(t-e)/s+4,r=(r+360)%6*60/360,o=(a+u)/2,i=0==s?0:o<.5?s/(2*o):s/(2-2*o),{h:r,s:i,l:o,toString:K}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return i(t,"array")&&i(t[0],"array")&&(o=n.path.clone(t)),o.length||S(t).replace(B,function(t,e,n){var i=[],a=e.toLowerCase();if(n.replace(q,function(t,e){e&&i.push(+e)}),"m"==a&&i.length>2&&(o.push([e].concat(i.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==i.length&&o.push([e,i[0]]),"r"==a)o.push([e].concat(i));else for(;i.length>=r[a]&&(o.push([e].concat(i.splice(0,r[a]))),r[a]););}),o.toString=n.path.toString,e.arr=n.path.clone(o),o};var tt=n.parseTransformString=function(t){if(!t)return null;var e=[];return i(t,"array")&&i(t[0],"array")&&(e=n.path.clone(t)),e.length||S(t).replace(z,function(t,n,r){var i=[];n.toLowerCase();r.replace(q,function(t,e){e&&i.push(+e)}),e.push([n].concat(i))}),e.toString=n.path.toString,e};n._.svgTransform2string=f,n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=p,n._unit2px=v;C.doc.contains||C.doc.compareDocumentPosition?function(t,e){var n=9==t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t==r||!(!r||1!=r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e;)if(e=e.parentNode,e==t)return!0;return!1};n._.getSomeDefs=h,n._.getSomeSVG=d,n.select=function(t){return t=S(t).replace(/([^\\]):/g,"$1\\:"),_(C.doc.querySelector(t))},n.selectAll=function(t){for(var e=C.doc.querySelectorAll(t),r=(n.set||Array)(),i=0;i<e.length;i++)r.push(_(e[i]));return r},setInterval(function(){for(var t in G)if(G[T](t)){var e=G[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete G[t]}},1e4),m.prototype.attr=function(t,n){var r=this,o=r.node;if(!t){if(1!=o.nodeType)return{text:o.nodeValue};for(var a=o.attributes,u={},s=0,c=a.length;s<c;s++)u[a[s].nodeName]=a[s].nodeValue;return u}if(i(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,r).firstDefined();var l={};l[t]=n,t=l}for(var f in t)t[T](f)&&e("snap.util.attr."+f,r,t[f]);return r},n.parse=function(t){var e=C.doc.createDocumentFragment(),n=!0,r=C.doc.createElement("div");if(t=S(t),t.match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new x(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=C.doc.createDocumentFragment(),r=0,i=t.length;r<i;r++){var o=t[r];o.node&&o.node.nodeType&&e.appendChild(o.node),o.nodeType&&e.appendChild(o),"string"==typeof o&&e.appendChild(n.parse(o).node)}return new x(e)},n._.make=b,n._.wrap=_,w.prototype.el=function(t,e){var n=b(t,this.node);return e&&n.attr(e),n},m.prototype.children=function(){for(var t=[],e=this.node.childNodes,r=0,i=e.length;r<i;r++)t[r]=n(e[r]);return t},m.prototype.toJSON=function(){var t=[];return k([this],t),t[0]},e.on("snap.util.getattr",function(){var t=e.nt();t=t.substring(t.lastIndexOf(".")+1);var n=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return et[T](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):r(this.node,t)});var et={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",function(t){var n=e.nt(),i={};n=n.substring(n.lastIndexOf(".")+1),i[n]=t;var o=n.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),a=n.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});et[T](a)?this.node.style[o]=null==t?O:t:r(this.node,i)}),function(t){}(w.prototype),n.ajax=function(t,n,r,o){var a=new XMLHttpRequest,u=W();if(a){if(i(n,"function"))o=r,r=n,n=null;else if(i(n,"object")){var s=[];for(var c in n)n.hasOwnProperty(c)&&s.push(encodeURIComponent(c)+"="+encodeURIComponent(n[c]));n=s.join("&")}return a.open(n?"POST":"GET",t,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(e.once("snap.ajax."+u+".0",r),e.once("snap.ajax."+u+".200",r),e.once("snap.ajax."+u+".304",r)),a.onreadystatechange=function(){4==a.readyState&&e("snap.ajax."+u+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(t,e,r){n.ajax(t,function(t){var i=n.parse(t.responseText);r?e.call(r,i):e(i)})};var nt=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.body,i=n.documentElement,o=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0,u=e.top+(g.win.pageYOffset||i.scrollTop||r.scrollTop)-o,s=e.left+(g.win.pageXOffset||i.scrollLeft||r.scrollLeft)-a;return{y:u,x:s}};return n.getElementByPoint=function(t,e){var n=this,r=(n.canvas,C.doc.elementFromPoint(t,e));if(C.win.opera&&"svg"==r.tagName){var i=nt(r),o=r.createSVGRect();o.x=t-i.x,o.y=e-i.y,o.width=o.height=1;var a=r.getIntersectionList(o,null);a.length&&(r=a[a.length-1])}return r?_(r):null},n.plugin=function(t){t(n,m,w,C,x)},C.win.Snap=n,n}(t||this);return r.plugin(function(r,i,o,a,u){function s(t,e){if(null==e){var n=!0;if(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform"),!e)return new r.Matrix;e=r._.svgTransform2string(e)}else e=r._.rgTransform.test(e)?d(e).replace(/\.{3}|\u2026/g,t._.transform||E):r._.svgTransform2string(e),h(e,"array")&&(e=r.path?r.path.toString.call(e):d(e)),t._.transform=e;var i=r._.transform2matrix(e,t.getBBox(1));return n?i:void(t.matrix=i)}function c(t){function e(t,e){var n=g(t.node,e);n=n&&n.match(o),n=n&&n[2],n&&"#"==n.charAt()&&(n=n.substring(1),n&&(u[n]=(u[n]||[]).concat(function(n){var r={};r[e]=URL(n),g(t.node,r)})))}function n(t){var e=g(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1),e&&(u[e]=(u[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)})))}for(var r,i=t.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],u={},s=0,c=i.length;s<c;s++){r=i[s],e(r,"fill"),e(r,"stroke"),e(r,"filter"),e(r,"mask"),e(r,"clip-path"),n(r);var l=g(r.node,"id");l&&(g(r.node,{id:r.id}),a.push({old:l,id:r.id}))}for(s=0,c=a.length;s<c;s++){var f=u[a[s].old];if(f)for(var p=0,h=f.length;p<h;p++)f[p](a[s].id)}}function l(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}function f(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(t)for(var i=0,o=n.length;i<o;i++)e+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),i=0,o=r.length;i<o;i++)3==r[i].nodeType?e+=r[i].nodeValue:1==r[i].nodeType&&(e+=b(r[i]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}var p=i.prototype,h=r.is,d=String,v=r._unit2px,g=r._.$,y=r._.make,m=r._.getSomeDefs,x="hasOwnProperty",b=r._.wrap;p.getBBox=function(t){if(!r.Matrix||!r.path)return this.node.getBBox();var e=this,n=new r.Matrix;if(e.removed)return r._.box();for(;"use"==e.type;)if(t||(n=n.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var i=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var o=e._,a=r.path.get[e.type]||r.path.get.deflt;try{return t?(o.bboxwt=a?r.path.getBBox(e.realPath=a(e)):r._.box(e.node.getBBox()),r._.box(o.bboxwt)):(e.realPath=a(e),e.matrix=e.transform().localMatrix,o.bbox=r.path.getBBox(r.path.map(e.realPath,n.add(e.matrix))),r._.box(o.bbox))}catch(t){return r._.box()}};var w=function(){return this.string};p.transform=function(t){var e=this._;if(null==t){for(var n,i=this,o=new r.Matrix(this.node.getCTM()),a=s(this),u=[a],c=new r.Matrix,l=a.toTransformString(),f=d(a)==d(this.matrix)?d(e.transform):l;"svg"!=i.type&&(i=i.parent());)u.push(s(i));for(n=u.length;n--;)c.add(u[n]);return{string:f,globalMatrix:o,totalMatrix:c,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:c.toTransformString(),local:l,toString:w}}return t instanceof r.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):s(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?g(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?g(this.node,{patternTransform:this.matrix}):g(this.node,{transform:this.matrix})),this},p.parent=function(){return b(this.node.parentNode)},p.append=p.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=b(t),this.node.appendChild(t.node),t.paper=this.paper}return this},p.appendTo=function(t){return t&&(t=b(t),t.append(this)),this},p.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}t=b(t);var r=t.parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},p.prependTo=function(t){return t=b(t),t.prepend(this),this},p.before=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){var n=t.parent();e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()}),this.parent().add(),this}t=b(t);var n=t.parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},p.after=function(t){t=b(t);var e=t.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},p.insertBefore=function(t){t=b(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},p.insertAfter=function(t){t=b(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},p.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},p.select=function(t){return t=d(t).replace(/([^\\]):/g,"$1\\:"),b(this.node.querySelector(t))},p.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(r.set||Array)(),i=0;i<e.length;i++)n.push(b(e[i]));return n},p.asPX=function(t,e){return null==e&&(e=this.attr(t)),+v(this,t,e)},p.use=function(){var t,e=this.node.id;return e||(e=this.id,g(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?y(this.type,this.node.parentNode):y("use",this.node.parentNode),g(t.node,{"xlink:href":"#"+e}),t.original=this,t},p.clone=function(){var t=b(this.node.cloneNode(!0));return g(t.node,"id")&&g(t.node,{id:t.id}),c(t),t.insertAfter(this),t},p.toDefs=function(){var t=m(this);return t.appendChild(this.node),this},p.pattern=p.toPattern=function(t,e,n,r){var i=y("pattern",m(this));return null==t&&(t=this.getBBox()),h(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),g(i.node,{x:t,y:e,width:n,height:r,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,n,r].join(" ")}),i.node.appendChild(this.node),i},p.marker=function(t,e,n,r,i,o){var a=y("marker",m(this));return null==t&&(t=this.getBBox()),h(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,i=t.refX||t.cx,o=t.refY||t.cy,t=t.x),g(a.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:i||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};var _=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};r._.Animation=_,r.animation=function(t,e,n,r){return new _(t,e,n,r)},p.inAnim=function(){var t=this,e=[];for(var n in t.anims)t.anims[x](n)&&!function(t){e.push({anim:new _(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},r.animate=function(t,r,i,o,a,u){"function"!=typeof a||a.length||(u=a,a=n.linear);var s=n.time(),c=n(t,r,s,s+o,n.time,i,a);return u&&e.once("mina.finish."+c.id,u),c},p.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},p.animate=function(t,r,i,o){"function"!=typeof i||i.length||(o=i,i=n.linear),t instanceof _&&(o=t.callback,i=t.easing,r=i.dur,t=t.attr);var a,u,s,c,f=[],p=[],v={},g=this;for(var y in t)if(t[x](y)){g.equal?(c=g.equal(y,d(t[y])),a=c.from,u=c.to,s=c.f):(a=+g.attr(y),u=+t[y]);var m=h(a,"array")?a.length:1;v[y]=l(f.length,f.length+m,s),f=f.concat(a),p=p.concat(u)}var b=n.time(),w=n(f,p,b,b+r,n.time,function(t){var e={};for(var n in v)v[x](n)&&(e[n]=v[n](t));g.attr(e)},i);return g.anims[w.id]=w,w._attrs=t,w._callback=o,e("snap.animcreated."+g.id,w),e.once("mina.finish."+w.id,function(){delete g.anims[w.id],o&&o.call(g)}),e.once("mina.stop."+w.id,function(){delete g.anims[w.id]}),g};var k={};p.data=function(t,n){var i=k[this.id]=k[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(r.is(t,"object")){for(var o in t)t[x](o)&&this.data(o,t[o]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=n,e("snap.data.set."+this.id,this,n,t),this},p.removeData=function(t){return null==t?k[this.id]={}:k[this.id]&&delete k[this.id][t],this},p.outerSVG=p.toString=f(1),p.innerSVG=f(),p.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),n=r.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},u.prototype.select=p.select,u.prototype.selectAll=p.selectAll}),r.plugin(function(t,e,n,r,i){function o(t,e,n,r,i,o){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+r,this.e=+i,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,u=String,s=Math,c="";!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=s.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,r,i,a){var u,s,c,l,f=[[],[],[]],p=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],h=[[t,n,i],[e,r,a],[0,0,1]];for(t&&t instanceof o&&(h=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),u=0;u<3;u++)for(s=0;s<3;s++){for(l=0,c=0;c<3;c++)l+=p[u][c]*h[c][s];f[u][s]=l}return this.a=f[0][0],this.b=f[1][0],this.c=f[0][1],this.d=f[1][1],this.e=f[0][2],this.f=f[1][2],this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new o(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){
return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.add(1,0,0,1,t,e)},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.add(1,0,0,1,n,r),this.add(t,0,0,e,0,0),(n||r)&&this.add(1,0,0,1,-n,-r),this},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var i=+s.cos(e).toFixed(9),o=+s.sin(e).toFixed(9);return this.add(i,o,-o,i,n,r),this.add(1,0,0,1,-n,-r)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[u.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];e.scalex=s.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=s.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var o=-i[0][1],a=i[1][1];return a<0?(e.rotate=t.deg(s.acos(a)),o<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(s.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:c)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:c)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:c))}}(o.prototype),t.Matrix=o,t.matrix=function(t,e,n,r,i,a){return new o(t,e,n,r,i,a)}}),r.plugin(function(t,n,r,i,o){function a(r){return function(i){if(e.stop(),i instanceof o&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,h(this).appendChild(i),i=f(i)),i instanceof n)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||v(i.node,{id:i.id});var a=g(i.node.id)}else a=i.attr(r);else if(a=t.color(i),a.error){var u=t(h(this).ownerSVGElement).gradient(i);u?(u.node.id||v(u.node,{id:u.id}),a=g(u.node.id)):a=i}else a=y(a);var s={};s[r]=a,v(this.node,s),this.node.style[r]=x}}function u(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function s(t){for(var e=[],n=t.childNodes,r=0,i=n.length;r<i;r++){var o=n[r];3==o.nodeType&&e.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?e.push(o.firstChild.nodeValue):e.push(s(o)))}return e}function c(){return e.stop(),this.node.style.fontSize}var l=t._.make,f=t._.wrap,p=t.is,h=t._.getSomeDefs,d=/^url\(#?([^)]+)\)$/,v=t._.$,g=t.url,y=String,m=t._.separator,x="";e.on("snap.util.attr.mask",function(t){if(t instanceof n||t instanceof o){if(e.stop(),t instanceof o&&1==t.node.childNodes.length&&(t=t.node.firstChild,h(this).appendChild(t),t=f(t)),"mask"==t.type)var r=t;else r=l("mask",h(this)),r.node.appendChild(t.node);!r.node.id&&v(r.node,{id:r.id}),v(this.node,{mask:g(r.id)})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof n||t instanceof o){if(e.stop(),"clipPath"==t.type)var r=t;else r=l("clipPath",h(this)),r.node.appendChild(t.node),!r.node.id&&v(r.node,{id:r.id});v(this.node,{"clip-path":g(r.node.id||r.id)})}}),e.on("snap.util.attr.fill",a("fill")),e.on("snap.util.attr.stroke",a("stroke"));var b=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){t=y(t);var e=t.match(b);if(!e)return null;var n=e[1],r=e[2],i=e[3];return r=r.split(/\s*,\s*/).map(function(t){return+t==t?+t:t}),1==r.length&&0==r[0]&&(r=[]),i=i.split("-"),i=i.map(function(t){t=t.split(":");var e={color:t[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}),{type:n,params:r,stops:i}}),e.on("snap.util.attr.d",function(n){e.stop(),p(n,"array")&&p(n[0],"array")&&(n=t.path.toString.call(n)),n=y(n),n.match(/[ruo]/i)&&(n=t.path.toAbsolute(n)),v(this.node,{d:n})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=y(t);for(var n=i.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.class",function(t){e.stop(),this.node.className.baseVal=t})(-1),e.on("snap.util.attr.viewBox",function(t){var n;n=p(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):p(t,"array")?t.join(" "):t,v(this.node,{viewBox:n}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),v(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.textpath",function(t){if(e.stop(),"text"==this.type){var r,i,o;if(!t&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(p(t,"string")){var a=h(this),u=f(a.parentNode).path(t);a.appendChild(u.node),r=u.id,u.attr({id:r})}else t=f(t),t instanceof n&&(r=t.attr("id"),r||(r=t.id,t.attr({id:r})));if(r)if(i=this.textPath,o=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=v("textPath",{"xlink:href":"#"+r});o.firstChild;)i.appendChild(o.firstChild);o.appendChild(i),this.textPath=f(i)}}})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var n=this.node,r=function(t){var e=v("tspan");if(p(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(r(t[n]));else e.appendChild(i.doc.createTextNode(t));return e.normalize&&e.normalize(),e};n.firstChild;)n.removeChild(n.firstChild);for(var o=r(t);o.firstChild;)n.appendChild(o.firstChild)}e.stop()})(-1),e.on("snap.util.attr.fontSize",u)(-1),e.on("snap.util.attr.font-size",u)(-1),e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),e.on("snap.util.getattr.textpath",function(){return e.stop(),this.textPath})(-1),function(){function n(n){return function(){e.stop();var r=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==r?r:t(i.doc.getElementById(r.match(d)[1]))}}function r(t){return function(n){e.stop();var r="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""==n||!n)return void(this.node.style[r]="none");if("marker"==n.type){var i=n.node.id;return i||v(n.node,{id:n.id}),void(this.node.style[r]=g(i))}}}e.on("snap.util.getattr.marker-end",n("end"))(-1),e.on("snap.util.getattr.markerEnd",n("end"))(-1),e.on("snap.util.getattr.marker-start",n("start"))(-1),e.on("snap.util.getattr.markerStart",n("start"))(-1),e.on("snap.util.getattr.marker-mid",n("mid"))(-1),e.on("snap.util.getattr.markerMid",n("mid"))(-1),e.on("snap.util.attr.marker-end",r("end"))(-1),e.on("snap.util.attr.markerEnd",r("end"))(-1),e.on("snap.util.attr.marker-start",r("start"))(-1),e.on("snap.util.attr.markerStart",r("start"))(-1),e.on("snap.util.attr.marker-mid",r("mid"))(-1),e.on("snap.util.attr.markerMid",r("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){if("rect"==this.type&&v(this.node,"rx")==v(this.node,"ry"))return e.stop(),v(this.node,"rx")})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=s(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var n=v(this.node,"viewBox");return n?(n=n.split(m),t._.box(+n[0],+n[1],+n[2],+n[3])):void 0})(-1),e.on("snap.util.getattr.points",function(){var t=v(this.node,"points");return e.stop(),t?t.split(m):void 0})(-1),e.on("snap.util.getattr.path",function(){var t=v(this.node,"d");return e.stop(),t})(-1),e.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),e.on("snap.util.getattr.fontSize",c)(-1),e.on("snap.util.getattr.font-size",c)(-1)}),r.plugin(function(t,e,n,r,i){var o=/\S+/g,a=String,u=e.prototype;u.addClass=function(t){var e,n,r,i,u=a(t||"").match(o)||[],s=this.node,c=s.className.baseVal,l=c.match(o)||[];if(u.length){for(e=0;r=u[e++];)n=l.indexOf(r),~n||l.push(r);i=l.join(" "),c!=i&&(s.className.baseVal=i)}return this},u.removeClass=function(t){var e,n,r,i,u=a(t||"").match(o)||[],s=this.node,c=s.className.baseVal,l=c.match(o)||[];if(l.length){for(e=0;r=u[e++];)n=l.indexOf(r),~n&&l.splice(n,1);i=l.join(" "),c!=i&&(s.className.baseVal=i)}return this},u.hasClass=function(t){var e=this.node,n=e.className.baseVal,r=n.match(o)||[];return!!~r.indexOf(t)},u.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var n,r,i,a,u=(t||"").match(o)||[],s=this.node,c=s.className.baseVal,l=c.match(o)||[];for(n=0;i=u[n++];)r=l.indexOf(i),~r?l.splice(r,1):l.push(i);return a=l.join(" "),c!=a&&(s.className.baseVal=a),this}}),r.plugin(function(t,n,r,i,o){function a(t){return t}function u(t){return function(e){return+e.toFixed(3)+t}}var s={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},c=String,l=/[a-z]+$/i,f=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;e.on("snap.util.attr",function(t){var n=c(t).match(f);if(n){var r=e.nt(),i=r.substring(r.lastIndexOf(".")+1),o=this.attr(i),a={};e.stop();var u=n[3]||"",p=o.match(l),h=s[n[1]];if(p&&p==u?t=h(parseFloat(o),+n[2]):(o=this.asPX(i),t=h(this.asPX(i),this.asPX(i,n[2]+u))),isNaN(o)||isNaN(t))return;a[i]=t,this.attr(a)}})(-10),e.on("snap.util.equal",function(t,n){var r=c(this.attr(t)||""),i=c(n).match(f);if(i){e.stop();var o=i[3]||"",p=r.match(l),h=s[i[1]];return p&&p==o?{from:parseFloat(r),to:h(parseFloat(r),+i[2]),f:u(p)}:(r=this.asPX(t),{from:r,to:h(r,this.asPX(t,i[2]+o)),f:a})}})(-10)}),r.plugin(function(n,r,i,o,a){var u=i.prototype,s=n.is;u.rect=function(t,e,n,r,i,o){var a;return null==o&&(o=i),s(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:r},null!=i&&(a.rx=i,a.ry=o)),this.el("rect",a)},u.circle=function(t,e,n){var r;return s(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,r:n}),this.el("circle",r)};var c=function(){function t(){this.parentNode.removeChild(this)}return function(e,n){var r=o.doc.createElement("img"),i=o.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){n.call(r),r.onload=r.onerror=null,i.removeChild(r)},r.onerror=t,i.appendChild(r),r.src=e}}();u.image=function(t,e,r,i,o){var a=this.el("image");if(s(t,"object")&&"src"in t)a.attr(t);else if(null!=t){var u={"xlink:href":t,preserveAspectRatio:"none"};null!=e&&null!=r&&(u.x=e,u.y=r),null!=i&&null!=o?(u.width=i,u.height=o):c(t,function(){n._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),n._.$(a.node,u)}return a},u.ellipse=function(t,e,n,r){var i;return s(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,rx:n,ry:r}),this.el("ellipse",i)},u.path=function(t){var e;return s(t,"object")&&!s(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},u.group=u.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},u.svg=function(t,e,n,r,i,o,a,u){var c={};return s(t,"object")&&null==e?c=t:(null!=t&&(c.x=t),null!=e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=u&&(c.viewBox=[i,o,a,u])),this.el("svg",c)},u.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},u.ptrn=function(t,e,n,r,i,o,a,u){if(s(t,"object"))var c=t;else c={patternUnits:"userSpaceOnUse"},t&&(c.x=t),e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=u?c.viewBox=[i,o,a,u]:c.viewBox=[t||0,e||0,n||0,r||0];return this.el("pattern",c)},u.use=function(t){return null!=t?(t instanceof r&&(t.attr("id")||t.attr({id:n._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):r.prototype.use.call(this)},u.symbol=function(t,e,n,r){var i={};return null!=t&&null!=e&&null!=n&&null!=r&&(i.viewBox=[t,e,n,r]),this.el("symbol",i)},u.text=function(t,e,n){var r={};return s(t,"object")?r=t:null!=t&&(r={x:t,y:e,text:n||""}),this.el("text",r)},u.line=function(t,e,n,r){var i={};return s(t,"object")?i=t:null!=t&&(i={x1:t,x2:n,y1:e,y2:r}),this.el("line",i)},u.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return s(t,"object")&&!s(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},u.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return s(t,"object")&&!s(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function r(){return this.selectAll("stop")}function i(t,e){var r=l("stop"),i={offset:+e+"%"};return t=n.color(t),i["stop-color"]=t.hex,t.opacity<1&&(i["stop-opacity"]=t.opacity),l(r,i),this.node.appendChild(r),this}function o(){if("linearGradient"==this.type){var t=l(this.node,"x1")||0,e=l(this.node,"x2")||1,r=l(this.node,"y1")||0,i=l(this.node,"y2")||0;return n._.box(t,r,math.abs(e-t),math.abs(i-r))}var o=this.node.cx||.5,a=this.node.cy||.5,u=this.node.r||0;return n._.box(o-u,a-u,2*u,2*u)}function a(t,n){function r(t,e){for(var n=(e-f)/(t-p),r=p;r<t;r++)a[r].offset=+(+f+n*(r-p)).toFixed(2);p=t,f=e}var i,o=e("snap.util.grad.parse",null,n).firstDefined();if(!o)return null;o.params.unshift(t),i="l"==o.type.toLowerCase()?s.apply(0,o.params):c.apply(0,o.params),o.type!=o.type.toLowerCase()&&l(i.node,{gradientUnits:"userSpaceOnUse"});var a=o.stops,u=a.length,f=0,p=0;u--;for(var h=0;h<u;h++)"offset"in a[h]&&r(h,a[h].offset);for(a[u].offset=a[u].offset||100,r(u,a[u].offset),h=0;h<=u;h++){var d=a[h];i.addStop(d.color,d.offset)}return i}function s(t,e,a,u,s){var c=n._.make("linearGradient",t);return c.stops=r,c.addStop=i,c.getBBox=o,null!=e&&l(c.node,{x1:e,y1:a,x2:u,y2:s}),c}function c(t,e,a,u,s,c){var f=n._.make("radialGradient",t);return f.stops=r,f.addStop=i,f.getBBox=o,null!=e&&l(f.node,{cx:e,cy:a,r:u}),null!=s&&null!=c&&l(f.node,{fx:s,fy:c}),f}var l=n._.$;u.gradient=function(t){return a(this.defs,t)},u.gradientLinear=function(t,e,n,r){return s(this.defs,t,e,n,r)},u.gradientRadial=function(t,e,n,r,i){return c(this.defs,t,e,n,r,i)},u.toString=function(){var t,e=this.node.ownerDocument,r=e.createDocumentFragment(),i=e.createElement("div"),o=this.node.cloneNode(!0);return r.appendChild(i),i.appendChild(o),n._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,r.removeChild(r.firstChild),t},u.toDataURL=function(){if(t&&t.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},u.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):u.clear.call({node:e}),e=t}}()}),r.plugin(function(t,e,n,r){function i(t){var e=i.ps=i.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[R](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]}function o(t,e,n,r){return null==t&&(t=e=n=r=0),null==e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:q.min(n,r)/2,r2:q.max(n,r)/2,r0:q.sqrt(n*n+r*r)/2,path:C(t,e,n,r),vb:[t,e,n,r].join(" ")}}function a(){return this.join(",").replace(B,"$1")}function u(t){var e=F(t);return e.toString=a,e}function s(t,e,n,r,i,o,a,u,s){return null==s?v(t,e,n,r,i,o,a,u):l(t,e,n,r,i,o,a,u,g(t,e,n,r,i,o,a,u,s))}function c(n,r){function i(t){return+(+t).toFixed(3)}return t._.cacher(function(t,o,a){t instanceof e&&(t=t.attr("d")),t=I(t);for(var u,c,f,p,h,d="",v={},g=0,y=0,m=t.length;y<m;y++){if(f=t[y],"M"==f[0])u=+f[1],c=+f[2];else{if(p=s(u,c,f[1],f[2],f[3],f[4],f[5],f[6]),g+p>o){if(r&&!v.start){if(h=s(u,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g),d+=["C"+i(h.start.x),i(h.start.y),i(h.m.x),i(h.m.y),i(h.x),i(h.y)],a)return d;v.start=d,d=["M"+i(h.x),i(h.y)+"C"+i(h.n.x),i(h.n.y),i(h.end.x),i(h.end.y),i(f[5]),i(f[6])].join(),g+=p,u=+f[5],c=+f[6];continue}if(!n&&!r)return h=s(u,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g)}g+=p,u=+f[5],c=+f[6]}d+=f.shift()+f}return v.end=d,h=n?g:r?v:l(u,c,f[0],f[1],f[2],f[3],f[4],f[5],1)},null,t._.clone)}function l(t,e,n,r,i,o,a,u,s){var c=1-s,l=U(c,3),f=U(c,2),p=s*s,h=p*s,d=l*t+3*f*s*n+3*c*s*s*i+h*a,v=l*e+3*f*s*r+3*c*s*s*o+h*u,g=t+2*s*(n-t)+p*(i-2*n+t),y=e+2*s*(r-e)+p*(o-2*r+e),m=n+2*s*(i-n)+p*(a-2*i+n),x=r+2*s*(o-r)+p*(u-2*o+r),b=c*t+s*n,w=c*e+s*r,_=c*i+s*a,k=c*o+s*u,C=90-180*q.atan2(g-m,y-x)/H;return{x:d,y:v,m:{x:g,y:y},n:{x:m,y:x},start:{x:b,y:w},end:{x:_,y:k},alpha:C}}function f(e,n,r,i,a,u,s,c){t.is(e,"array")||(e=[e,n,r,i,a,u,s,c]);var l=P.apply(null,e);return o(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function p(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function h(t,e){return t=o(t),e=o(e),p(e,t.x,t.y)||p(e,t.x2,t.y)||p(e,t.x,t.y2)||p(e,t.x2,t.y2)||p(t,e.x,e.y)||p(t,e.x2,e.y)||p(t,e.x,e.y2)||p(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function d(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}function v(t,e,n,r,i,o,a,u,s){null==s&&(s=1),s=s>1?1:s<0?0:s;for(var c=s/2,l=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,v=0;v<l;v++){var g=c*f[v]+c,y=d(g,t,n,i,a),m=d(g,e,r,o,u),x=y*y+m*m;h+=p[v]*q.sqrt(x)}return c*h}function g(t,e,n,r,i,o,a,u,s){if(!(s<0||v(t,e,n,r,i,o,a,u)<s)){var c,l=1,f=l/2,p=l-f,h=.01;for(c=v(t,e,n,r,i,o,a,u,p);$(c-s)>h;)f/=2,p+=(c<s?1:-1)*f,c=v(t,e,n,r,i,o,a,u,p);return p}}function y(t,e,n,r,i,o,a,u){if(!(W(t,n)<V(i,a)||V(t,n)>W(i,a)||W(e,r)<V(o,u)||V(e,r)>W(o,u))){var s=(t*r-e*n)*(i-a)-(t-n)*(i*u-o*a),c=(t*r-e*n)*(o-u)-(e-r)*(i*u-o*a),l=(t-n)*(o-u)-(e-r)*(i-a);if(l){var f=s/l,p=c/l,h=+f.toFixed(2),d=+p.toFixed(2);if(!(h<+V(t,n).toFixed(2)||h>+W(t,n).toFixed(2)||h<+V(i,a).toFixed(2)||h>+W(i,a).toFixed(2)||d<+V(e,r).toFixed(2)||d>+W(e,r).toFixed(2)||d<+V(o,u).toFixed(2)||d>+W(o,u).toFixed(2)))return{x:f,y:p}}}}function m(t,e,n){var r=f(t),i=f(e);if(!h(r,i))return n?0:[];for(var o=v.apply(0,t),a=v.apply(0,e),u=~~(o/8),s=~~(a/8),c=[],p=[],d={},g=n?0:[],m=0;m<u+1;m++){var x=l.apply(0,t.concat(m/u));c.push({x:x.x,y:x.y,t:m/u})}for(m=0;m<s+1;m++)x=l.apply(0,e.concat(m/s)),p.push({x:x.x,y:x.y,t:m/s});for(m=0;m<u;m++)for(var b=0;b<s;b++){var w=c[m],_=c[m+1],k=p[b],C=p[b+1],T=$(_.x-w.x)<.001?"y":"x",S=$(C.x-k.x)<.001?"y":"x",E=y(w.x,w.y,_.x,_.y,k.x,k.y,C.x,C.y);if(E){if(d[E.x.toFixed(4)]==E.y.toFixed(4))continue;d[E.x.toFixed(4)]=E.y.toFixed(4);var M=w.t+$((E[T]-w[T])/(_[T]-w[T]))*(_.t-w.t),j=k.t+$((E[S]-k[S])/(C[S]-k[S]))*(C.t-k.t);M>=0&&M<=1&&j>=0&&j<=1&&(n?g++:g.push({x:E.x,y:E.y,t1:M,t2:j}))}}return g}function x(t,e){return w(t,e)}function b(t,e){return w(t,e,1)}function w(t,e,n){t=I(t),e=I(e);for(var r,i,o,a,u,s,c,l,f,p,h=n?0:[],d=0,v=t.length;d<v;d++){var g=t[d];if("M"==g[0])r=u=g[1],i=s=g[2];else{"C"==g[0]?(f=[r,i].concat(g.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,s,u,s],r=u,i=s);for(var y=0,x=e.length;y<x;y++){var b=e[y];if("M"==b[0])o=c=b[1],a=l=b[2];else{"C"==b[0]?(p=[o,a].concat(b.slice(1)),o=p[6],a=p[7]):(p=[o,a,o,a,c,l,c,l],o=c,a=l);var w=m(f,p,n);if(n)h+=w;else{for(var _=0,k=w.length;_<k;_++)w[_].segment1=d,w[_].segment2=y,w[_].bez1=f,w[_].bez2=p;h=h.concat(w)}}}}}return h}function _(t,e,n){var r=k(t);return p(r,e,n)&&w(t,[["M",e,n],["H",r.x2+10]],1)%2==1}function k(t){var e=i(t);if(e.bbox)return F(e.bbox);if(!t)return o();t=I(t);for(var n,r=0,a=0,u=[],s=[],c=0,l=t.length;c<l;c++)if(n=t[c],"M"==n[0])r=n[1],a=n[2],u.push(r),s.push(a);else{var f=P(r,a,n[1],n[2],n[3],n[4],n[5],n[6]);u=u.concat(f.min.x,f.max.x),s=s.concat(f.min.y,f.max.y),r=n[5],a=n[6]}var p=V.apply(0,u),h=V.apply(0,s),d=W.apply(0,u),v=W.apply(0,s),g=o(p,h,d-p,v-h);return e.bbox=F(g),g}function C(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.toString=a,o}function T(t,e,n,r,i){if(null==i&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=i)var o=Math.PI/180,u=t+n*Math.cos(-r*o),s=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),l=e+n*Math.sin(-i*o),f=[["M",u,c],["A",n,n,0,+(i-r>180),0,s,l]];else f=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return f.toString=a,f}function S(e){var n=i(e),r=String.prototype.toLowerCase;if(n.rel)return u(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var o=[],s=0,c=0,l=0,f=0,p=0;"M"==e[0][0]&&(s=e[0][1],c=e[0][2],l=s,f=c,p++,o.push(["M",s,c]));for(var h=p,d=e.length;h<d;h++){var v=o[h]=[],g=e[h];if(g[0]!=r.call(g[0]))switch(v[0]=r.call(g[0]),v[0]){case"a":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+(g[6]-s).toFixed(3),v[7]=+(g[7]-c).toFixed(3);break;case"v":v[1]=+(g[1]-c).toFixed(3);break;case"m":l=g[1],f=g[2];default:for(var y=1,m=g.length;y<m;y++)v[y]=+(g[y]-(y%2?s:c)).toFixed(3)}else{v=o[h]=[],"m"==g[0]&&(l=g[1]+s,f=g[2]+c);for(var x=0,b=g.length;x<b;x++)o[h][x]=g[x]}var w=o[h].length;switch(o[h][0]){case"z":s=l,c=f;break;case"h":s+=+o[h][w-1];break;case"v":c+=+o[h][w-1];break;default:s+=+o[h][w-2],c+=+o[h][w-1]}}return o.toString=a,n.rel=u(o),o}function E(e){var n=i(e);if(n.abs)return u(n.abs);if(L(e,"array")&&L(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,o=[],s=0,c=0,l=0,f=0,p=0;"M"==e[0][0]&&(s=+e[0][1],c=+e[0][2],l=s,f=c,p++,o[0]=["M",s,c]);for(var h,d,v=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),g=p,y=e.length;g<y;g++){if(o.push(h=[]),d=e[g],r=d[0],r!=r.toUpperCase())switch(h[0]=r.toUpperCase(),h[0]){case"A":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+d[6]+s,h[7]=+d[7]+c;break;case"V":h[1]=+d[1]+c;break;case"H":h[1]=+d[1]+s;break;case"R":for(var m=[s,c].concat(d.slice(1)),x=2,b=m.length;x<b;x++)m[x]=+m[x]+s,m[++x]=+m[x]+c;o.pop(),o=o.concat(O(m,v));break;case"O":o.pop(),m=T(s,c,d[1],d[2]),m.push(m[0]),o=o.concat(m);break;case"U":o.pop(),o=o.concat(T(s,c,d[1],d[2],d[3])),h=["U"].concat(o[o.length-1].slice(-2));break;case"M":l=+d[1]+s,f=+d[2]+c;default:for(x=1,b=d.length;x<b;x++)h[x]=+d[x]+(x%2?s:c)}else if("R"==r)m=[s,c].concat(d.slice(1)),o.pop(),o=o.concat(O(m,v)),h=["R"].concat(d.slice(-2));else if("O"==r)o.pop(),m=T(s,c,d[1],d[2]),m.push(m[0]),o=o.concat(m);else if("U"==r)o.pop(),o=o.concat(T(s,c,d[1],d[2],d[3])),h=["U"].concat(o[o.length-1].slice(-2));else for(var w=0,_=d.length;w<_;w++)h[w]=d[w];if(r=r.toUpperCase(),"O"!=r)switch(h[0]){case"Z":s=+l,c=+f;break;case"H":s=h[1];break;case"V":c=h[1];break;case"M":l=h[h.length-2],f=h[h.length-1];default:s=h[h.length-2],c=h[h.length-1]}}return o.toString=a,n.abs=u(o),o}function M(t,e,n,r){return[t,e,n,r,n,r]}function j(t,e,n,r,i,o){var a=1/3,u=2/3;return[a*t+u*n,a*e+u*r,a*i+u*n,a*o+u*r,i,o]}function A(e,n,r,i,o,a,u,s,c,l){var f,p=120*H/180,h=H/180*(+o||0),d=[],v=t._.cacher(function(t,e,n){var r=t*q.cos(n)-e*q.sin(n),i=t*q.sin(n)+e*q.cos(n);return{x:r,y:i}});if(l)C=l[0],T=l[1],_=l[2],k=l[3];else{f=v(e,n,-h),e=f.x,n=f.y,f=v(s,c,-h),s=f.x,c=f.y;var g=(q.cos(H/180*o),q.sin(H/180*o),(e-s)/2),y=(n-c)/2,m=g*g/(r*r)+y*y/(i*i);m>1&&(m=q.sqrt(m),r*=m,i*=m);var x=r*r,b=i*i,w=(a==u?-1:1)*q.sqrt($((x*b-x*y*y-b*g*g)/(x*y*y+b*g*g))),_=w*r*y/i+(e+s)/2,k=w*-i*g/r+(n+c)/2,C=q.asin(((n-k)/i).toFixed(9)),T=q.asin(((c-k)/i).toFixed(9));C=e<_?H-C:C,T=s<_?H-T:T,C<0&&(C=2*H+C),T<0&&(T=2*H+T),u&&C>T&&(C-=2*H),!u&&T>C&&(T-=2*H)}var S=T-C;if($(S)>p){var E=T,M=s,j=c;T=C+p*(u&&T>C?1:-1),s=_+r*q.cos(T),c=k+i*q.sin(T),d=A(s,c,r,i,o,0,u,M,j,[T,E,_,k])}S=T-C;var P=q.cos(C),I=q.sin(C),N=q.cos(T),O=q.sin(T),D=q.tan(S/4),L=4/3*r*D,F=4/3*i*D,R=[e,n],B=[e+L*I,n-F*P],z=[s+L*O,c-F*N],V=[s,c];if(B[0]=2*R[0]-B[0],B[1]=2*R[1]-B[1],l)return[B,z,V].concat(d);d=[B,z,V].concat(d).join().split(",");for(var W=[],U=0,G=d.length;U<G;U++)W[U]=U%2?v(d[U-1],d[U],h).y:v(d[U],d[U+1],h).x;return W}function P(t,e,n,r,i,o,a,u){for(var s,c,l,f,p,h,d,v,g=[],y=[[],[]],m=0;m<2;++m)if(0==m?(c=6*t-12*n+6*i,s=-3*t+9*n-9*i+3*a,l=3*n-3*t):(c=6*e-12*r+6*o,s=-3*e+9*r-9*o+3*u,l=3*r-3*e),$(s)<1e-12){if($(c)<1e-12)continue;f=-l/c,0<f&&f<1&&g.push(f)}else d=c*c-4*l*s,v=q.sqrt(d),d<0||(p=(-c+v)/(2*s),0<p&&p<1&&g.push(p),h=(-c-v)/(2*s),0<h&&h<1&&g.push(h));for(var x,b=g.length,w=b;b--;)f=g[b],x=1-f,y[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*a,y[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*o+f*f*f*u;return y[0][w]=t,y[1][w]=e,y[0][w+1]=a,y[1][w+1]=u,y[0].length=y[1].length=w+2,{min:{x:V.apply(0,y[0]),y:V.apply(0,y[1])},max:{x:W.apply(0,y[0]),y:W.apply(0,y[1])}}}function I(t,e){var n=!e&&i(t);if(!e&&n.curve)return u(n.curve);for(var r=E(t),o=e&&E(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=(function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(A.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(j(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(j(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(M(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(M(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(M(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(M(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)p[e]="A",o&&(h[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),y=W(r.length,o&&o.length||0)}},f=function(t,e,n,i,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],y=W(r.length,o&&o.length||0))},p=[],h=[],d="",v="",g=0,y=W(r.length,o&&o.length||0);g<y;g++){r[g]&&(d=r[g][0]),"C"!=d&&(p[g]=d,g&&(v=p[g-1])),r[g]=c(r[g],a,v),"A"!=p[g]&&"C"==d&&(p[g]="C"),l(r,g),o&&(o[g]&&(d=o[g][0]),"C"!=d&&(h[g]=d,g&&(v=h[g-1])),o[g]=c(o[g],s,v),"A"!=h[g]&&"C"==d&&(h[g]="C"),l(o,g)),f(r,o,a,s,g),f(o,r,s,a,g);var m=r[g],x=o&&o[g],b=m.length,w=o&&x.length;a.x=m[b-2],a.y=m[b-1],a.bx=z(m[b-4])||a.x,a.by=z(m[b-3])||a.y,s.bx=o&&(z(x[w-4])||s.x),s.by=o&&(z(x[w-3])||s.y),s.x=o&&x[w-2],s.y=o&&x[w-1]}return o||(n.curve=u(r)),o?[r,o]:r}function N(t,e){if(!e)return t;var n,r,i,o,a,u,s;for(t=I(t),i=0,a=t.length;i<a;i++)for(s=t[i],o=1,u=s.length;o<u;o+=2)n=e.x(s[o],s[o+1]),r=e.y(s[o],s[o+1]),s[o]=n,s[o+1]=r;return t}function O(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?o[3]={x:+t[0],y:+t[1]}:i-2==r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var D=e.prototype,L=t.is,F=t._.clone,R="hasOwnProperty",B=/,?([a-z]),?/gi,z=parseFloat,q=Math,H=q.PI,V=q.min,W=q.max,U=q.pow,$=q.abs,G=c(1),X=c(),Y=c(0,1),K=t._unit2px,J={path:function(t){return t.attr("path")},circle:function(t){var e=K(t);return T(e.cx,e.cy,e.r)},ellipse:function(t){var e=K(t);return T(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=K(t);return C(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=K(t);return C(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return C(e.x,e.y,e.width,e.height)}};t.path=i,t.path.getTotalLength=G,t.path.getPointAtLength=X,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return Y(t,e).end;var r=Y(t,n,1);return e?Y(r,e).end:r},D.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},D.getPointAtLength=function(t){return X(this.attr("d"),t)},D.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=o,t.path.findDotsAtSegment=l,t.path.bezierBBox=f,t.path.isPointInsideBBox=p,t.closest=function(e,n,r,i){for(var a=100,u=o(e-a/2,n-a/2,a,a),s=[],c=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},l=0;a<=1e6&&!l;){for(var f=0,h=r.length;f<h;f++){var d=c(f);if(p(u,d.x,d.y)){l++,s.push(d);break}}l||(a*=2,u=o(e-a/2,n-a/2,a,a))}if(1e6!=a){var v,g=1/0;for(f=0,h=s.length;f<h;f++){var y=t.len(e,n,s[f].x,s[f].y);g>y&&(g=y,s[f].len=y,v=s[f])}return v}},t.path.isBBoxIntersect=h,t.path.intersection=x,t.path.intersectionNumber=b,t.path.isPointInside=_,t.path.getBBox=k,t.path.get=J,t.path.toRelative=S,t.path.toAbsolute=E,t.path.toCubic=I,t.path.map=N,t.path.toString=a,t.path.clone=u}),r.plugin(function(t,r,i,o){var a=Math.max,u=Math.min,s=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},c=s.prototype;c.push=function(){for(var t,e,n=0,r=arguments.length;n<r;n++)t=arguments[n],t&&(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},c.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},c.forEach=function(t,e){for(var n=0,r=this.items.length;n<r;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},c.animate=function(r,i,o,a){"function"!=typeof o||o.length||(a=o,o=n.linear),r instanceof t._.Animation&&(a=r.callback,o=r.easing,i=o.dur,r=r.attr);var u=arguments;if(t.is(r,"array")&&t.is(u[u.length-1],"array"))var s=!0;var c,l=function(){c?this.b=c:c=this.b},f=0,p=this,h=a&&function(){++f==p.length&&a.call(this)};return this.forEach(function(t,n){e.once("snap.animcreated."+t.id,l),s?u[n]&&t.animate.apply(t,u[n]):t.animate(r,i,o,h)})},c.remove=function(){for(;this.length;)this.pop().remove();return this},c.bind=function(t,e,n){var r={};if("function"==typeof e)this.bindings[t]=e;else{var i=n||t;this.bindings[t]=function(t){r[i]=t,e.attr(r)}}return this},c.attr=function(t){var e={};for(var n in t)this.bindings[n]?this.bindings[n](t[n]):e[n]=t[n];for(var r=0,i=this.items.length;r<i;r++)this.items[r].attr(e);return this},c.clear=function(){for(;this.length;)this.pop()},c.splice=function(t,e,n){t=t<0?a(this.length+t,0):t,e=a(0,u(this.length-t,e));var r,i=[],o=[],c=[];for(r=2;r<arguments.length;r++)c.push(arguments[r]);for(r=0;r<e;r++)o.push(this[t+r]);for(;r<this.length-t;r++)i.push(this[t+r]);var l=c.length;for(r=0;r<l+i.length;r++)this.items[t+r]=this[t+r]=r<l?c[r]:i[r-l];for(r=this.items.length=this.length-=e-l;this[r];)delete this[r++];return new s(o)},c.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},c.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},c.getBBox=function(){for(var t=[],e=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();t.push(o.x),e.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return t=u.apply(0,t),e=u.apply(0,e),n=a.apply(0,n),r=a.apply(0,r),{x:t,y:e,x2:n,y2:r,width:n-t,height:r-e,cx:t+(n-t)/2,cy:e+(r-e)/2}},c.clone=function(t){t=new s;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},c.toString=function(){return"Snap‘s set"},c.type="set",t.Set=s,t.set=function(){var t=new s;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),r.plugin(function(t,n,r,i){
function o(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function a(e,n,r){n=y(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var i,a,u,s,c=Math.max(e.length,n.length),l=[],h=[],d=0;d<c;d++){if(u=e[d]||o(n[d]),s=n[d]||o(u),u[0]!=s[0]||"r"==u[0].toLowerCase()&&(u[2]!=s[2]||u[3]!=s[3])||"s"==u[0].toLowerCase()&&(u[3]!=s[3]||u[4]!=s[4])){e=t._.transform2matrix(e,r()),n=t._.transform2matrix(n,r()),l=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],h=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(l[d]=[],h[d]=[],i=0,a=Math.max(u.length,s.length);i<a;i++)i in u&&(l[d][i]=u[i]),i in s&&(h[d][i]=s[i])}return{from:p(l),to:p(h),f:f(l)}}function u(t){return t}function s(t){return function(e){return+e.toFixed(3)+t}}function c(t){return t.join(" ")}function l(e){return t.rgb(e[0],e[1],e[2])}function f(t){var e,n,r,i,o,a,u=0,s=[];for(e=0,n=t.length;e<n;e++){for(o="[",a=['"'+t[e][0]+'"'],r=1,i=t[e].length;r<i;r++)a[r]="val["+u++ +"]";o+=a+"]",s[e]=o}return Function("val","return Snap.path.toString.call(["+s+"])")}function p(t){for(var e=[],n=0,r=t.length;n<r;n++)for(var i=1,o=t[n].length;i<o;i++)e.push(t[n][i]);return e}function h(t){return isFinite(parseFloat(t))}function d(e,n){return!(!t.is(e,"array")||!t.is(n,"array"))&&e.toString()==n.toString()}var v={},g=/[a-z]+$/i,y=String;v.stroke=v.fill="colour",n.prototype.equal=function(t,n){return e("snap.util.equal",this,t,n).firstDefined()},e.on("snap.util.equal",function(e,n){var r,i,o=y(this.attr(e)||""),m=this;if(h(o)&&h(n))return{from:parseFloat(o),to:parseFloat(n),f:u};if("colour"==v[e])return r=t.color(o),i=t.color(n),{from:[r.r,r.g,r.b,r.opacity],to:[i.r,i.g,i.b,i.opacity],f:l};if("viewBox"==e)return r=this.attr(e).vb.split(" ").map(Number),i=n.split(" ").map(Number),{from:r,to:i,f:c};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return n instanceof t.Matrix&&(n=n.toTransformString()),t._.rgTransform.test(n)||(n=t._.svgTransform2string(n)),a(o,n,function(){return m.getBBox(1)});if("d"==e||"path"==e)return r=t.path.toCubic(o,n),{from:p(r[0]),to:p(r[1]),f:f(r[0])};if("points"==e)return r=y(o).split(t._.separator),i=y(n).split(t._.separator),{from:r,to:i,f:function(t){return t}};var x=o.match(g),b=y(n).match(g);return x&&d(x,b)?{from:parseFloat(o),to:parseFloat(n),f:s(x)}:{from:this.asPX(e),to:this.asPX(e,n),f:u}})}),r.plugin(function(t,n,r,i){for(var o=n.prototype,a="hasOwnProperty",u=("createTouch"in i.doc),s=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},l=(function(t,e){var n="y"==t?"scrollTop":"scrollLeft",r=e&&e.node?e.node.ownerDocument:i.doc;return r[n in r.documentElement?"documentElement":"body"][n]}),f=function(){return this.originalEvent.preventDefault()},p=function(){return this.originalEvent.stopPropagation()},h=function(t,e,n,r){var i=u&&c[e]?c[e]:e,o=function(i){var o=l("y",r),s=l("x",r);if(u&&c[a](e))for(var h=0,d=i.targetTouches&&i.targetTouches.length;h<d;h++)if(i.targetTouches[h].target==t||t.contains(i.targetTouches[h].target)){var v=i;i=i.targetTouches[h],i.originalEvent=v,i.preventDefault=f,i.stopPropagation=p;break}var g=i.clientX+s,y=i.clientY+o;return n.call(r,i,g,y)};return e!==i&&t.addEventListener(e,o,!1),t.addEventListener(i,o,!1),function(){return e!==i&&t.removeEventListener(e,o,!1),t.removeEventListener(i,o,!1),!0}},d=[],v=function(t){for(var n,r=t.clientX,i=t.clientY,o=l("y"),a=l("x"),s=d.length;s--;){if(n=d[s],u){for(var c,f=t.touches&&t.touches.length;f--;)if(c=t.touches[f],c.identifier==n.el._drag.id||n.el.node.contains(c.target)){r=c.clientX,i=c.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var p=n.el.node;p.nextSibling,p.parentNode,p.style.display;r+=a,i+=o,e("snap.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,t)}},g=function(n){t.unmousemove(v).unmouseup(g);for(var r,i=d.length;i--;)r=d[i],r.el._drag={},e("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n),e.off("snap.drag.*."+r.el.id);d=[]},y=s.length;y--;)!function(e){t[e]=o[e]=function(n,r){if(t.is(n,"function"))this.events=this.events||[],this.events.push({name:e,f:n,unbind:h(this.node||document,e,n,r||this)});else for(var i=0,o=this.events.length;i<o;i++)if(this.events[i].name==e)try{this.events[i].f.call(this)}catch(t){}return this},t["un"+e]=o["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==e&&(n[r].f==t||!t))return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(s[y]);o.hover=function(t,e,n,r){return this.mouseover(t,n).mouseout(e,r||n)},o.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var m=[];o.drag=function(n,r,i,o,a,u){function s(s,c,f){(s.originalEvent||s).preventDefault(),l._drag.x=c,l._drag.y=f,l._drag.id=s.identifier,!d.length&&t.mousemove(v).mouseup(g),d.push({el:l,move_scope:o,start_scope:a,end_scope:u}),r&&e.on("snap.drag.start."+l.id,r),n&&e.on("snap.drag.move."+l.id,n),i&&e.on("snap.drag.end."+l.id,i),e("snap.drag.start."+l.id,a||o||l,c,f,s)}function c(t,n,r){e("snap.draginit."+l.id,l,t,n,r)}var l=this;if(!arguments.length){var f;return l.drag(function(t,e){this.attr({transform:f+(f?"T":"t")+[t,e]})},function(){f=this.transform().local})}return e.on("snap.draginit."+l.id,s),l._drag={},m.push({el:l,start:s,init:c}),l.mousedown(c),l},o.undrag=function(){for(var n=m.length;n--;)m[n].el==this&&(this.unmousedown(m[n].init),m.splice(n,1),e.unbind("snap.drag.*."+this.id),e.unbind("snap.draginit."+this.id));return!m.length&&t.unmousemove(v).unmouseup(g),this}}),r.plugin(function(t,n,r,i){var o=(n.prototype,r.prototype),a=/^\s*url\((.+)\)/,u=String,s=t._.$;t.filter={},o.filter=function(e){var r=this;"svg"!=r.type&&(r=r.paper);var i=t.parse(u(e)),o=t._.id(),a=(r.node.offsetWidth,r.node.offsetHeight,s("filter"));return s(a,{id:o,filterUnits:"userSpaceOnUse"}),a.appendChild(i.node),r.defs.appendChild(a),new n(a)},e.on("snap.util.getattr.filter",function(){e.stop();var n=s(this.node,"filter");if(n){var r=u(n).match(a);return r&&t.select(r[1])}}),e.on("snap.util.attr.filter",function(r){if(r instanceof n&&"filter"==r.type){e.stop();var i=r.node.id;i||(s(r.node,{id:r.id}),i=r.id),s(this.node,{filter:t.url(i)})}r&&"none"!=r||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,n){null==e&&(e=2);var r=null==n?e:[e,n];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,i,o){return"string"==typeof r&&(i=r,o=i,r=4),"string"!=typeof i&&(o=i,i="#000"),i=i||"#000",null==r&&(r=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),i=t.color(i),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:e,dy:n,blur:r,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r.plugin(function(t,e,n,r,i){var o=t._.box,a=t.is,u=/^[^a-z]*([tbmlrc])/i,s=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null),t=t||this.paper;var n=t.getBBox?t.getBBox():o(t),r=this.getBBox(),i={};switch(e=e&&e.match(u),e=e?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=s,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),r})}).call(window)},,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(152),v=r(d),g=n(42),y=r(g);n(150);var m=function(e){function n(e){(0,u.default)(this,n);var r=(0,f.default)(this,(n.__proto__||(0,o.default)(n)).call(this));r.markerId=r.guid(),r.svgId=r.guid();var i='\n      <div id="'+r.markerId+'" class="tooltip-marker">\n        <svg id="'+r.svgId+'"></svg>\n      </div>';return e.toolController.registerTool(r),t(e.container).append(i),r.$marker=t("#"+r.markerId),r.pointer=r.createPointer(t("#"+r.svgId)[0]),r.viewer=e,r.active=!1,r}return(0,h.default)(n,e),(0,c.default)(n,[{key:"createPointer",value:function(t){var e=(0,v.default)(t),n=e.paper.circle(25,25,0);return n.attr({stroke:"#FF0000",fillOpacity:.4,fill:"#FF0000",strokeWidth:2,opacity:1}),n}},{key:"animatePointer",value:function(t){var e=this;this.animateId===t&&(this.pointer.attr({fillOpacity:.8,opacity:1,r:0}),this.pointer.animate({fillOpacity:.2,opacity:.4,r:16},2e3,mina.easein,function(){e.pointerVisible&&e.animatePointer(t)}))}},{key:"setContent",value:function(e,n){this.tooltipSelector=n,t(this.viewer.container).append(e)}},{key:"getNames",value:function(){return["Viewer.Tooltip.Tool"]}},{key:"getName",value:function(){return"Viewer.Tooltip.Tool"}},{key:"activate",value:function(){this.active||(this.active=!0,this.viewer.toolController.activateTool(this.getName()),t(this.tooltipSelector).css({display:"block"}),this.emit("activate"))}},{key:"deactivate",value:function(){this.active&&(this.active=!1,this.viewer.toolController.deactivateTool(this.getName()),t(this.tooltipSelector).css({display:"none"}),this.pointerVisible=!1,this.$marker.css({display:"none"}),this.emit("deactivate"))}},{key:"handleSingleClick",value:function(t,e){return!1}},{key:"handleMouseMove",value:function(e){var n=t(this.viewer.container).offset();t(this.tooltipSelector).css({top:e.clientY-n.top-30,left:e.clientX-n.left});var r={x:e.clientX,y:e.clientY},i=this.screenToWorld(r);if(i&&this.active){var o=t(this.viewer.container).offset();this.$marker.css({left:r.x-o.left-this.$marker.width()/2,top:r.y-o.top-this.$marker.height()/2,display:"block"}),this.pointerVisible||(this.pointerVisible=!0,this.animateId=this.guid(),this.animatePointer(this.animateId))}else this.pointerVisible=!1,this.$marker.css({display:"none"}),this.pointer.attr({r:0});return!1}},{key:"screenToWorld",value:function(t){var e=this.viewer.navigation.getScreenViewport(),n={x:(t.x-e.left)/e.width,y:(t.y-e.top)/e.height};return this.viewer.utilities.getHitPoint(n.x,n.y)}},{key:"worldToScreen",value:function(t,e){var n=new THREE.Vector4;n.x=t.x,n.y=t.y,n.z=t.z,n.w=1,n.applyMatrix4(e.matrixWorldInverse),n.applyMatrix4(e.projectionMatrix),n.w>0&&(n.x/=n.w,n.y/=n.w,n.z/=n.w);var r=this._viewer.impl.viewportToClient(n.x,n.y);return r.x=Math.floor(r.x)+.5,r.y=Math.floor(r.y)+.5,r}},{key:"handleKeyDown",value:function(t,e){return!1}}]),n}(y.default);e.default=m}).call(e,n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(154),o=r(i);n(150),e.default=o.default},,,,,,,,,,,,,function(t,e,n){e=t.exports=n(55)(),e.push([t.id,".tooltip-marker{position:absolute;display:none}.tooltip-marker,.tooltip-marker svg{pointer-events:none;height:50px;width:50px}",""])},,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(219),o=r(i);e.default=o.default},,,,,,,,,,,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(73),o=r(i),a=n(72),u=r(a),s=n(14),c=r(s),l=n(11),f=r(l),p=n(12),h=r(p),d=n(17),v=r(d),g=n(126),y=r(g),m=n(16),x=r(m),b=n(178),w=r(b),_=n(137),k=r(_),C=n(102),T=r(C),S=n(142),E=r(S),M=function(e){function n(e,r,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;(0,f.default)(this,n);var u=(0,v.default)(this,(n.__proto__||(0,c.default)(n)).call(this,r.container,{x:100,y:22}));u.controlsId=u.guid(),u.properties=a,u.labelId=u.guid(),u.svgId=u.guid(),u.viewer=r,u.parent=e,u.dbId=i,u.setContent('\n      <div id="'+u.labelId+'" class="markup3D-label">\n        <svg id="'+u.svgId+'" class="markup3D">\n        </svg>\n        <div id="'+u.controlsId+'" class="markup3D">\n        </div>\n      </div>\n    '),t("#"+u._markerId).css({"pointer-events":"auto"}),t("#"+u.svgId).css({cursor:"pointer"});var s=Snap(t("#"+u.svgId)[0]);return u.label=s.paper.text(0,15,"Place label ..."),u.label.attr({fontFamily:"Arial",fontSize:"13px",stroke:"#000000"}),u.setVisible(!0),u.setScreenPoint(o),u.onMouseMoveHandler=function(t){return u.onMouseMove(t)},u.onMouseUpHandler=function(t){return u.onMouseUp(t)},u.onMouseDownHandler=function(t){return u.onMouseDown(t)},u.onDoubleClickHandler=function(t){return u.onDoubleClick(t)},t("#"+u.labelId).mouseover(function(){u.emit("mouseover")}).mouseout(function(){u.emit("mouseout")}),t("#"+u.svgId).on("mouseup",u.onMouseUpHandler),t("#"+u.svgId).on("mousedown",u.onMouseDownHandler),t("#"+u.svgId).on("dblclick",u.onDoubleClickHandler),u.createControls(),u.showControls(!1),u.timeoutId=0,u}return(0,x.default)(n,e),(0,h.default)(n,[{key:"setVisible",value:function(t){var e=this;t?(clearTimeout(this.timeoutId),this.timeoutId=0,(0,y.default)(n.prototype.__proto__||(0,c.default)(n.prototype),"setVisible",this).call(this,!0)):(clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){(0,y.default)(n.prototype.__proto__||(0,c.default)(n.prototype),"setVisible",e).call(e,!1)},400))}},{key:"startDrag",value:function(){t("#"+this.svgId).css({cursor:"move"});var e=t("canvas",this.viewer.container);this.viewerCursor=e.css("cursor"),e.css({cursor:"move"}),this.parent.dragging=!0,t("#"+this.svgId).on("mousemove",this.onMouseMoveHandler),this.parent.emit("drag.start",this.parent)}},{key:"endDrag",value:function(){function e(){return r.apply(this,arguments)}var r=(0,u.default)(o.default.mark(function e(){var r,i;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parent.dragging=!1,t("#"+this.svgId).off("mousemove",this.onMouseMoveHandler),this.parent.emit("drag.end",this.parent),r=t("canvas",this.viewer.container),r.css({cursor:this.viewerCursor}),t("#"+this._markerId).css({"pointer-events":"auto"}),t("#"+this.svgId).css({cursor:"pointer"}),!this.item){e.next=9;break}return e.abrupt("return");case 9:if(!n.prototype.labelName){e.next=17;break}return e.next=12,T.default.getProperty(this.viewer.model,this.dbId,n.prototype.labelName,"Not Available");case 12:i=e.sent,this.updateLabel(i.displayName,i.displayValue),this.item={value:i.displayValue,name:i.displayName},e.next=18;break;case 17:this.showControls(!0);case 18:this.emit("created");case 19:case"end":return e.stop()}},e,this)}));return e}()},{key:"createControls",value:function(){function e(){return r.apply(this,arguments)}var r=(0,u.default)(o.default.mark(function e(){var r,i,a,u,s,c,l,f,p,h,d=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.default.getProperties(this.viewer.model,this.dbId,this.properties);case 2:r=e.sent,i=r.sort(function(t,e){var n=t.displayName.toLowerCase(),r=e.displayName.toLowerCase();return n>r?1:-1}),a=i.map(function(t){return{name:t.displayName,value:t.displayValue}}),u=t("#"+this.controlsId),this.dropdown=new E.default({container:u,title:"Property",pos:{top:0,left:0},menuItems:a}),this.dropdown.on("item.selected",function(t){n.prototype.labelName=t.name,d.item=t,d.emit("labelSelected")}),s=this.guid(),c=this.guid(),l=this.guid(),f=this.guid(),p='\n      <br>\n      <div style="width: 150px;">\n\n        <div id="'+c+'"\n          style="margin-right:10px; float:left; padding-top:1px;">\n        </div>\n        <div style="height:30px">\n          <b>Bind to state</b>\n        </div>\n\n        <div id="'+s+'"\n          style="margin-right:10px; float:left; padding-top:1px;">\n        </div>\n        <div style="height:30px">\n          <b>Occlusion</b>\n        </div>\n\n        <button id="'+l+'" class="btn btn-danger btn-ctrl"\n          style="float: left; margin-right: 3px;"\n          data-placement="bottom"\n          data-toggle="tooltip"\n          data-delay=\'{"show":"500", "hide":"100"}\'\n          title="delete markup">\n         <span class="fa fa-remove btn-span"></span>\n        </button>\n        <button id="'+f+'" class="btn btn-success btn-ctrl"\n          data-placement="bottom"\n          data-toggle="tooltip"\n          data-delay=\'{"show":"500", "hide":"100"}\'\n          title="exit edit mode">\n         <span class="fa fa-sign-out btn-span"></span>\n         </button>\n      </div>\n    ',u.append(p),h=u.find('label[data-toggle="tooltip"]'),h.tooltip&&h.tooltip({container:"body",animated:"fade",html:!0}),this.bindSwitch=new k.default("#"+c,this.parent.bindToState),this.bindSwitch.on("checked",function(t){d.parent.bindToState=t}),this.occlusionSwitch=new k.default("#"+s,this.parent.occlusion),this.occlusionSwitch.on("checked",function(t){d.parent.occlusion=t}),t("#"+l).click(function(){d.parent.remove()}),t("#"+f).click(function(){d.item||(d.item=a[0],n.prototype.labelName=d.item.name),d.showControls(!1),d.updateLabel(d.item.name,d.item.value)});case 22:case"end":return e.stop()}},e,this)}));return e}()},{key:"updateLabel",value:function(e,n){var r=Snap(t("#"+this.svgId)[0]);this.label.remove();var i=r.paper.text(0,15,e.replace(":","")+": "),o=r.paper.text(i.getBBox().width,15,n);i.attr({fontFamily:"Arial",fontSize:"13px",stroke:"#FF0000"}),o.attr({fontFamily:"Arial",fontSize:"13px",stroke:"#000000"}),this.label=r.group(i,o);var a=i.getBBox().width+o.getBBox().width;t("#"+this._markerId).css({width:a+10})}},{key:"onMouseMove",value:function(t){this.parent.dragging&&this.parent.setLeaderEndPoint({x:t.clientX,y:t.clientY})}},{key:"onMouseUp",value:function(t){this.parent.dragging&&this.endDrag()}},{key:"onMouseDown",value:function(t){this.parent.dragging||this.startDrag()}},{key:"onDoubleClick",value:function(t){this.showControls(!0)}},{key:"showControls",value:function(e){t("#"+this.svgId).css({display:e?"none":"block"}),t("#"+this.controlsId).css({display:e?"block":"none"})}}]),n}(w.default);e.default=M}).call(e,n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(59),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(221),f=r(l),p=function(){function t(e,n){(0,u.default)(this,t);var r=Snap(e);this.line=r.paper.line(n.x,n.y,n.x,n.y),this.line.attr({fill:"none",strokeWidth:1,stroke:"#000000",strokeLinecap:"round",strokeDasharray:"1 5 1 5"});var i=[n.x,n.y];this.arrow=r.paper.polygon(i),this.arrow.attr({fill:"#B80000"}),this.leader=r.group(this.line,this.arrow),this.leader.attr({visibility:"hidden"}),this.timer=new f.default,this.scaleFactor=1,this.animationId=0}return(0,c.default)(t,[{key:"setVisible",value:function(t){var e=this;return new o.default(function(n,r){t&&e.leader.attr({visibility:"visible"}),cancelAnimationFrame(e.animationId);var i=t?.002:-.002,o=function t(){return e.scaleFactor+=i*Math.max(e.timer.getElapsedMs(),1),e.scaleFactor>=1?(e.scaleFactor=1,e.draw(),n()):e.scaleFactor<=0?(e.scaleFactor=0,e.leader.attr({visibility:"hidden"}),e.draw(),n()):(e.draw(),void(e.animationId=requestAnimationFrame(t)))};e.timer.getElapsedMs(),o()})}},{key:"update",value:function(t,e){this.startPoint=t,this.endPoint=e,this.dir={x:e.x-t.x,y:e.y-t.y},this.draw()}},{key:"draw",value:function(){var t={x:this.endPoint.x-this.scaleFactor*this.dir.x,y:this.endPoint.y-this.scaleFactor*this.dir.y},e=Math.sqrt(this.dir.x*this.dir.x+this.dir.y*this.dir.y),n={x:this.dir.x,y:this.dir.y};e>0&&(n.x/=e,n.y/=e),this.line.attr({x1:t.x,y1:t.y,x2:this.endPoint.x,y2:this.endPoint.y});var r={x:n.y*this.scaleFactor,y:-n.x*this.scaleFactor},i=[t.x-3*n.x,t.y-3*n.y,t.x+20*n.x+5*r.x,t.y+20*n.y+5*r.y,t.x+20*n.x-5*r.x,t.y+20*n.y-5*r.y];this.arrow.attr({points:i})}},{key:"remove",value:function(){this.leader.remove()}}]),t}();e.default=p},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(126),h=r(p),d=n(16),v=r(d),g=n(178),y=r(g),m=function(e){function n(e,r){(0,u.default)(this,n);var i=(0,f.default)(this,(n.__proto__||(0,o.default)(n)).call(this,e.container,{x:28,y:28}));i.svgId=i.guid(),i.setContent('<svg id="'+i.svgId+'"></svg>');var a=Snap(t("#"+i.svgId)[0]),s=a.paper.circle(14,14,12);return s.attr({fill:"#FF8888",fillOpacity:.6,stroke:"#FF0000",strokeWidth:3}),i.activateLock3d(e),i.setWorldPoint(r),i.timeoutId=0,i}return(0,v.default)(n,e),(0,c.default)(n,[{key:"setVisible",value:function(t){var e=this;t?(clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){(0,h.default)(n.prototype.__proto__||(0,o.default)(n.prototype),"setVisible",e).call(e,!0)},400)):(clearTimeout(this.timeoutId),this.timeoutId=0,(0,h.default)(n.prototype.__proto__||(0,o.default)(n.prototype),"setVisible",this).call(this,!1))}}]),n}(y.default);e.default=m}).call(e,n(26))},function(t,e,n){(function(t,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(14),a=i(o),u=n(11),s=i(u),c=n(12),l=i(c),f=n(17),p=i(f),h=n(16),d=i(h),v=n(192),g=i(v),y=n(190),m=i(y),x=n(42),b=i(x),w=n(191),_=i(w),k=function(e){function n(e,i,o,u){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;(0,s.default)(this,n);var f=(0,p.default)(this,(n.__proto__||(0,a.default)(n)).call(this));f.id=f.guid(),f.bindToState=!0,f.occlusion=!0,f.viewer=e,f.fragId=u,f.visible=!1,f.created=!1,f.dbId=o,f.initialMeshPos=f.meshPosition(f.fragId),f.initialWorldPoint=c||f.screenToWorld(i),f.pinMarker=new g.default(e,f.initialWorldPoint),f.onTrackerModified=t.throttle(f.onTrackerModified,10),f.trackerModifiedHandler=function(t){return f.onTrackerModified(t)},f.pinMarker.on("tracker.modified",f.trackerModifiedHandler),0===r(".leader-container").length&&r(e.container).append('<svg class="markup3D leader-container"></svg>'),f.leaderContainer=r(".leader-container")[0],f.onMouseUpHandler=function(t){return f.onMouseUp(t)},r(e.container).on("mouseup",f.onMouseUpHandler);var h=r(e.container).offset();return f.offset={x:h.left,y:h.top},f.startPoint={x:i.x-f.offset.x,y:i.y-f.offset.y},f.endPoint={x:i.x-f.offset.x,y:i.y-f.offset.y},f.leader=new _.default(f.leaderContainer,f.startPoint),f.labelMarker=new m.default(f,f.viewer,f.dbId,f.startPoint,l),f.labelMarker.on("created",function(){f.labelMarker.off("created"),f.created=!0,f.emit("created")}),f.setLeaderEndPoint(i),f}return(0,d.default)(n,e),(0,l.default)(n,[{key:"startDrag",value:function(){this.labelMarker.startDrag()}},{key:"endDrag",value:function(){this.labelMarker.endDrag()}},{key:"setVisible",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(t!==this.visible||e)&&(this.visible=t,this.labelMarker.setVisible(t),this.pinMarker.setVisible(t),this.leader.setVisible(t))}},{key:"setLabelItem",value:function(t){this.labelMarker.item=t,this.labelMarker.updateLabel(t.name,t.value)}},{key:"normalize",value:function(t){var e=this.viewer.navigation.getScreenViewport(),n={x:(t.x-e.left)/e.width,y:(t.y-e.top)/e.height};return n}},{key:"screenToWorld",value:function(t){var e=this.normalize(t),n=this.viewer.utilities.getHitPoint(e.x,e.y);return n}},{key:"getHitData",value:function(t,e){e=1-e,t=2*t-1,e=2*e-1;var n=new THREE.Vector3(t,e,1),r=this.viewer.impl.hitTestViewport(n,!1);return r?r:null}},{key:"direction",value:function(){var t={x:this.endPoint.x-this.startPoint.x,y:this.endPoint.y-this.startPoint.y};return t}},{key:"setLeaderEndPoint",value:function(t){this.endPoint={x:t.x-this.offset.x,y:t.y-this.offset.y},this.update()}},{key:"onTrackerModified",value:function(t){this.startPoint=t,this.occlusion&&this.checkOcclusion()?this.setVisible(!1):(this.update(),this.setVisible(!0))}},{key:"checkOcclusion",value:function(){var t=this.normalize({x:this.startPoint.x+this.offset.x,y:this.startPoint.y+this.offset.y}),e=this.getHitData(t.x,t.y);if(e){if(e.dbId!=this.dbId)return!0;var n=this.pinMarker.getWorldPoint(),r={x:e.intersectPoint.x-n.x,y:e.intersectPoint.y-n.y,z:e.intersectPoint.z-n.z},i=r.x*r.x+r.y*r.y+r.z*r.z;if(i>25)return!0}return!1}},{key:"update",value:function(){var t=this.direction(),e=Math.sqrt(t.x*t.x+t.y*t.y);e>0&&(t.x=t.x/e,t.y=t.y/e);var n={x:this.startPoint.x+t.x*Math.max(50,e-50),y:this.startPoint.y+t.y*Math.max(50,e-50)};this.leader.update({x:this.startPoint.x+20*t.x,y:this.startPoint.y+20*t.y},n),this.labelMarker.setScreenPoint({x:n.x+(t.x>0?50*-t.x:50*t.x),y:n.y+(t.y>0?20:-30)})}},{key:"updateFragmentTransform",value:function(){var t=this.meshPosition(this.fragId),e={x:t.x-this.initialMeshPos.x,y:t.y-this.initialMeshPos.y,z:t.z-this.initialMeshPos.z},n={x:this.initialWorldPoint.x+e.x,y:this.initialWorldPoint.y+e.y,z:this.initialWorldPoint.z+e.z};this.pinMarker.setWorldPoint(n)}},{key:"updateVisibilty",value:function(t){switch(t.type){case"isolate":t.nodeIdArray.indexOf(this.dbId)>-1||!t.nodeIdArray.length?(this.update(),this.setVisible(!0)):t.nodeIdArray.length&&this.setVisible(!1);break;case"hide":t.nodeIdArray.indexOf(this.dbId)>-1&&this.setVisible(!1);break;case"show":t.nodeIdArray.indexOf(this.dbId)>-1&&(this.update(),this.setVisible(!0))}}},{key:"meshPosition",value:function(t){var e=this.viewer.impl.getRenderProxy(this.viewer.model,t),n=new THREE.Vector3;return n.setFromMatrixPosition(e.matrixWorld),n}},{key:"onMouseUp",value:function(t){this.dragging&&(this.labelMarker.endDrag(),this.emit("drag.end",this))}},{key:"remove",value:function(){this.pinMarker.remove(),this.leader.remove(),this.labelMarker.remove()}},{key:"save",value:function(){var t={x:this.startPoint.x+this.offset.x,y:this.startPoint.y+this.offset.y},e={worldPoint:this.initialWorldPoint,bindToState:this.bindToState,item:this.labelMarker.item,occlusion:this.occlusion,screenPoint:t,endPoint:this.endPoint,fragId:this.fragId,dbId:this.dbId};return e}}],[{key:"load",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new n(t,e.screenPoint,e.dbId,e.fragId,e.worldPoint,r.properties);return i.bindToState=e.bindToState,i.occlusion=e.occlusion,i.endPoint=e.endPoint,i.setLabelItem(e.item),i.occlusion&&i.checkOcclusion()?(i.labelMarker.setVisible(!1),i.pinMarker.setVisible(!1),i.leader.setVisible(!1),i.visible=!1,i.update()):(i.update(),i.setVisible(!0,!0)),i}}]),n}(b.default);e.default=k}).call(e,n(135),n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(193),v=r(d);n(249);var g=n(42),y=r(g),m=function(t){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.default)(this,e);var i=(0,f.default)(this,(e.__proto__||(0,o.default)(e)).call(this));return i.markupCollection=n,i.onSelectionChangedHandler=function(t){return i.onSelectionChanged(t)},i.onStartDragHandler=function(t){return i.onStartDrag(t)},i.onEndDragHandler=function(t){return i.onEndDrag(t)},i.options=r,i.viewer=t,i.create=!1,i}return(0,h.default)(e,t),(0,c.default)(e,[{key:"getNames",value:function(){return["Viewing.Extension.Markup3D.Tool"]}},{key:"getName",value:function(){return"Viewing.Extension.Markup3D.Tool"}},{key:"activate",value:function(){}},{key:"deactivate",value:function(){}},{key:"startCreate",value:function(){var t=this;this.create||(this.create=!0,this.currentMarkup=null,this.eventHandlers=[{event:Autodesk.Viewing.AGGREGATE_SELECTION_CHANGED_EVENT,handler:this.onSelectionChangedHandler,removeOnDeactivate:!0}],this.eventHandlers.forEach(function(e){t.viewer.addEventListener(e.event,e.handler)}),this.emit("startCreate"))}},{key:"stopCreate",value:function(){var t=this;this.create&&(this.create=!1,this.currentMarkup=null,this.eventHandlers.forEach(function(e){e.removeOnDeactivate&&t.viewer.removeEventListener(e.event,e.handler)}),this.eventHandlers=null,this.emit("stopCreate"))}},{key:"handleSingleClick",value:function(t,e){return this.screenPoint={x:t.clientX,y:t.clientY},!1}},{key:"handleMouseMove",value:function(t){return this.currentMarkup&&this.currentMarkup.setLeaderEndPoint({x:t.clientX,y:t.clientY}),!1}},{key:"handleKeyDown",value:function(t,e){return 27===e&&(this.currentMarkup&&!this.markupCollection[this.currentMarkup.id]?(this.currentMarkup.off(),this.currentMarkup.endDrag(),this.currentMarkup.remove(),this.currentMarkup=null):this.stopCreate()),!1}},{key:"onSelectionChanged",value:function(t){var e=this;if(t.selections.length){if(this.viewer.select([]),this.currentMarkup)return;var n=t.selections[0],r=this.viewer.navigation.getScreenViewport(),i={x:(this.screenPoint.x-r.left)/r.width,y:(this.screenPoint.y-r.top)/r.height},o=this.viewer.utilities.getHitPoint(i.x,i.y);if(o){var a=new v.default(this.viewer,this.screenPoint,n.dbIdArray[0],n.fragIdsArray[0],null,this.options.properties);a.labelMarker.on("mouseover",function(){e.emit("markupLabel.mouseover",a)}),a.labelMarker.on("mouseout",function(){e.emit("markupLabel.mouseout",a)}),a.on("created",function(){e.emit("markupCreated",a)}),a.setVisible(!0),a.on("drag.start",function(t){e.onStartDragHandler(t)}),a.on("drag.end",this.onEndDragHandler),a.startDrag(),this.emit("pinSelected")}else console.log("Invalid screenpoint ..."),console.log(this.screenPoint)}}},{key:"onStartDrag",value:function(t){this.currentMarkup=t}
},{key:"onEndDrag",value:function(t){this.markupCollection[t.id]||(this.markupCollection[t.id]=t),this.currentMarkup=null}},{key:"getState",value:function(t){t.Markup3D={MarkupCollection:[]};for(var e in this.markupCollection){var n=this.markupCollection[e];n.bindToState&&t.Markup3D.MarkupCollection.push(n.save())}}},{key:"restoreState",value:function(t,e){var n=this;for(var r in this.markupCollection){var i=this.markupCollection[r];i.bindToState&&(i.remove(),delete this.markupCollection[r])}t.Markup3D&&t.Markup3D.MarkupCollection.forEach(function(t){var e=v.default.load(n.viewer,t,n.options);e.on("drag.start",function(t){n.onStartDragHandler(t)}),e.on("drag.end",n.onEndDragHandler),n.markupCollection[e.id]=e})}}]),e}(y.default);e.default=m},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(225),v=r(d),g=n(42),y=r(g),m=function(e){function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:32,y:32};(0,u.default)(this,n);var i=(0,f.default)(this,(n.__proto__||(0,o.default)(n)).call(this));i._markerId=i.guid();var a='\n      <div id="'+i._markerId+'"\n      </div>\n    ';return t(e).append(a),t("#"+i._markerId).css({"pointer-events":"none",width:r.x+"px",height:r.y+"px",position:"absolute",overflow:"visible",display:"none"}),i.onTrackerModifiedHandler=function(t){return i.onTrackerModified(t)},i}return(0,h.default)(n,e),(0,c.default)(n,[{key:"setContent",value:function(e){t("#"+this._markerId).append(e)}},{key:"setSelectable",value:function(e){function n(t){t.target.id==r._markerId&&r.emit("_click",t)}var r=this;e?(t("#"+this._markerId).css({cursor:"pointer","pointer-events":"auto"}),t("#"+this._markerId).on("click",n)):(t("#"+this._markerId).css({cursor:"auto","pointer-events":"none"}),t("#"+this._markerId).off("click",n))}},{key:"activateLock3d",value:function(t){this._tracker=new v.default(t),this._tracker.on("modified",this.onTrackerModifiedHandler),this._tracker.activate()}},{key:"onTrackerModified",value:function(e){var n=t("#"+this._markerId);n.css({left:e.x-n.width()/2,top:e.y-n.height()/2}),this.emit("tracker.modified",e)}},{key:"setScreenPoint",value:function(e){t("#"+this._markerId).css({left:e.x,top:e.y})}},{key:"getScreenPoint",value:function(){return{x:t("#"+this._markerId).left(),y:t("#"+this._markerId).top()}}},{key:"getWorldPoint",value:function(){return this._tracker?this._tracker.getWorldPoint():null}},{key:"setWorldPoint",value:function(t){this._tracker&&this._tracker.setWorldPoint(t)}},{key:"setVisible",value:function(e){t("#"+this._markerId).css({display:e?"block":"none"})}},{key:"guid",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxxxx",n=(new Date).getTime(),t=e.replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:7&e|8).toString(16)});return t}},{key:"remove",value:function(){t("#"+this._markerId).remove()}}]),n}(y.default);e.default=m}).call(e,n(26))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),o=r(i),a=n(12),u=r(a),s=function(){function t(){(0,o.default)(this,t),this._lastTime=performance.now()}return(0,u.default)(t,[{key:"start",value:function(){this._lastTime=performance.now()}},{key:"getElapsedMs",value:function(){var t=performance.now(),e=t-this._lastTime;return this._lastTime=t,e}}]),t}();e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(220),o=r(i);e.default=o.default},,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a=n(11),u=r(a),s=n(12),c=r(s),l=n(17),f=r(l),p=n(16),h=r(p),d=n(42),v=r(d),g=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,o.default)(e)).call(this));return n._viewer=t,n.worldPoint=new THREE.Vector3,n.cameraChangedHandler=function(t){return n.onCameraChanged(t)},n}return(0,h.default)(e,t),(0,c.default)(e,[{key:"setScreenPoint",value:function(t){var e=this.normalize(t);this.worldPoint=this._viewer.utilities.getHitPoint(e.x,e.y)}},{key:"getScreenPoint",value:function(){var t=this.worldToScreen(this.worldPoint,this._viewer.navigation.getCamera());return t}},{key:"setWorldPoint",value:function(t){this.worldPoint=t;var e=this.worldToScreen(this.worldPoint,this._viewer.navigation.getCamera());this.emit("modified",e)}},{key:"getWorldPoint",value:function(){return this.worldPoint}},{key:"activate",value:function(){this._viewer.addEventListener(Autodesk.Viewing.CAMERA_CHANGE_EVENT,this.cameraChangedHandler)}},{key:"deactivate",value:function(){this._viewer.removeEventListener(Autodesk.Viewing.CAMERA_CHANGE_EVENT,this.cameraChangedHandler)}},{key:"onCameraChanged",value:function(t){var e=this.worldToScreen(this.worldPoint,this._viewer.navigation.getCamera());this.emit("modified",e)}},{key:"normalize",value:function(t){var e=this._viewer.navigation.getScreenViewport();return{x:(t.x-e.left)/e.width,y:(t.y-e.top)/e.height}}},{key:"worldToScreen",value:function(t,e){var n=new THREE.Vector4;n.x=t.x,n.y=t.y,n.z=t.z,n.w=1,n.applyMatrix4(e.matrixWorldInverse),n.applyMatrix4(e.projectionMatrix),n.w>0&&(n.x/=n.w,n.y/=n.w,n.z/=n.w);var r=this._viewer.impl.viewportToClient(n.x,n.y);return r.x=Math.floor(r.x)+.5,r.y=Math.floor(r.y)+.5,r}}]),e}(v.default);e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(224),o=r(i);e.default=o.default},function(t,e,n){e=t.exports=n(55)(),e.push([t.id,".markup3D.leader-container{pointer-events:none;position:absolute;height:100%;width:100%;left:0;top:0}svg.markup3D{width:100%;height:100%}div.markup3D{width:150px}.markup3D .btn-ctrl{width:46px;height:6px;line-height:0;vertical-align:top}.markup3D .btn-span{margin-right:0;line-height:.3;top:1px}.markup3D .lmv-dropdown .label{color:#000}.markup3D .lmv-dropdown .btn{background-color:#d6d6d6;border:1px solid #636363}.markup3D .lmv-dropdown .dropdown-menu>li>a{line-height:20px;padding:3px 20px;height:20px}.markup3D .lmv-dropdown .caret{border-top:4px solid #000;position:absolute;top:45%;right:-10px}.markup3D .dropdown-menu{background-color:#ccc}.markup3D-label{height:20px}.markup3D-tooltip{position:absolute;display:none}",""])},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(226);"string"==typeof r&&(r=[[t.id,r,""]]);n(56)(r,{});r.locals&&(t.exports=r.locals)}])});