/*! For license information please see app.js.LICENSE.txt */ (()=>{var t={9232:(t,e,n)=>{var r,i=n(2543),o=n(4692);void 0===(r=function(t){var e=function(){i.each(o(".doi-link"),(function(t){!function(t){var e=(t=o(t)).data("doi");o.ajax("https://api.crossref.org/v1/works/"+encodeURI(e)+"?mailto=bi@kew.org").done((function(e){!function(t,e){var n,r,o=(n=t.message,r=i.map(n.author,(function(t){return t.given+" "+t.family})),i.join(r,", ")),a=function(t){return i.join(t["container-title"],", ")}(t.message),s="
";s+="
Title
"+t.message.title+"
",o&&(s+="
Authors
"+o+"
"),a&&(s+="
Publication
"+a+"
"),t.message.publisher&&(s+="
Publisher
"+t.message.publisher+"
"),s+="
",e.popover({title:"DOI Metadata",content:s,placement:"right",trigger:"hover",html:!0})}(e,t)})).fail((function(t){console.log("couldn't access crossref api")}))}(t)}))};return o(document).ready((function(){e()})),{initialize:e}}.call(e,n,e,t))||(t.exports=r)},3326:(t,e,n)=>{var r=n(7596);t.exports=function(t){return new r.SafeString(t.replace(/;/g,"
"))}},1600:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(7596),i=n.n(r);function o(t){var e="",n=t.split(";");t.endsWith(";")&&n.pop();for(var r=0;r1){e>0&&(n+="
");for(var i=0;i{var r=n(4926),i=n(7596);t.exports=function(t){if(t){var e=r(t);return t.authors&&(e+=" "+t.authors),(t.publication||t.referenceCollation||t.publicationYear)&&(e+=", ",t.publication&&(e+=t.publication+" "),t.referenceCollation&&(e+=t.referenceCollation),t.publicationYear&&(e+=" ("+t.publicationYear+")"),(t.nameStatusType||t.nameStatusBotCode)&&("."===e.endsWith()?e=e.substring(0,e.length-1)+",":e+=",",t.nameStatusType&&(e+=" "+t.nameStatusType),t.nameStatusBotCode&&(e+=" "+t.nameStatusBotCode)),e.endsWith(".")||(e+="."),e+=""),new i.SafeString(e)}}},1562:t=>{t.exports=function(t,e){if(t&&t.includes(e))return"active"}},6412:t=>{t.exports=function(t,e,n){if(t.recordType===e)return n.fn(this)}},1330:(t,e,n)=>{var r=n(7249),i=n(7596);t.exports=function(t){return new i.SafeString(r.linkify(t))}},8875:(t,e,n)=>{var r=n(7596),i=n(2837),o=n(4926);t.exports=function(t){if(t){var e="

"+o(t);return t.authors&&(e+=" "+i.author(t)),e+="

",(t.publication||t.referenceCollation||t.publicationYear)&&(e+=", "+i.publication(t),t.referenceCollation&&(e+=" "+t.referenceCollation),t.publicationYear&&(e+=" ("+t.publicationYear+")")),(t.nameStatusType||t.nameStatusBotCode)&&("."===e.endsWith()?e=e.substring(0,e.length-1)+",":e+=",",t.nameStatusType&&(e+=" "+t.nameStatusType),t.nameStatusBotCode&&(e+=" "+t.nameStatusBotCode)),e.endsWith(".")||e.endsWith("")||(e+="."),new r.SafeString(e)}}},2261:t=>{t.exports=function(t,e){if(e===t)return"selected"}},4926:(t,e,n)=>{var r=n(2543),i=["[infrafam.unranked]","[infragen.unranked]","[infrasp.unranked]","[infragen.grex]","c.[infragen.]","infragen.grex","nothosubsect.","nothosubtrib.","supersubtrib.","nothosubgen.","[infragen.]","nothosubsp.","subsubforma","grex_sect.","[infragen]","nothosect.","subgenitor","subsubvar.","supersect.","supertrib.","suprasect.","subsubsp.","agamovar.","[epsilon]","gen. ser.","microgen.","nothogrex","nothoser.","nothovar.","superser.","agamosp.","[alpha].","[gamma].","subhybr.","subsect.","subspec.","subtrib.","agglom.","[beta].","convar.","genitor","monstr.","nothof.","subfam.","subgen.","sublus.","subser.","subvar.","f.juv.","Gruppe","modif.","proles","stirps","subsp.","cycl.","forma","group","linea","prol.","sect.","spec.","subf.","trib.","fam.","gen.","grex","lus.","mut.","oec.","psp.","race","ser.","var.","ap.","II.","nm.","2.","A.","B.","C.","D.","E.","f.","G.","H.",">Z"];t.exports=function(t){if(t.name){var e=''+t.name+"";return r.each(i,(function(n){if("linea"!==n){if(-1!==e.indexOf(n))return e=(e=e.replace(n+" "," "+n+' ')).replace('',""),e=r.trimStart(e),!1}else if(t.name.startsWith(n))return e=(e=e.replace(n+" "," "+n+' ')).replace('',""),e=r.trimStart(e),!1})),e=e.replace(" × ",' × ')}return''+t.family+""}},1706:(t,e,n)=>{var r=n(4480),i=function(t){return r.isEmpty(t.id)?t.name:''+t.name+""},o=function(t,e){var n=function(t){return function(e){return function(t){for(var e="",n=t.length,r=0;r{var e=/doi:(\S+)/g;t.exports={linkify:function(t){return t.replace(e,'$&')}}},2837:(t,e,n)=>{t.exports={author:n(1706),doi:n(7249),publication:n(3987)}},3987:(t,e,n)=>{var r=n(2543);t.exports=function(t){if(t.publication){if(t.publicationId){var e=r.get(t,"linkedPublication.title");return''+t.publication+""}return t.publication}}},8886:(t,e,n)=>{"use strict";n.r(e),n.d(e,{initialize:()=>y,pageType:()=>p}),n(7596);var r,i=n(1425),o=n(153),a=n(5827),s=n.n(a),u=n(6830),l=n.n(u),c=n(4692),f=1,h="name_asc";function d(){return window.location.href}function p(t){var e=t.lastIndexOf("/"),n=t.substring(e-1,e);return"a"===n?"author":"p"===n?"publication":void 0}var g=function(t){t.preventDefault(),h=t.target.id,m()},m=function(){var t="search?perPage=20";r=r.replace(/\/([ap]\/)*/,"");var e=p(d());"author"===e&&v(t+="&author+team+ids="+r),"publication"===e&&v(t+="&published+in+id="+r)},v=function(t){t+="&page="+f,t+="&sort="+h,c.getJSON("/api/1/"+t,(function(t){var e;t.results&&t.results.length&&(t.sort=h,e=t,c(".names-in-page").html(s()({count:e.totalResults,connector:"author"===p(d())?" by ":" in ",standardForm:c(".stdForm").text()})),c("body").find(".name-results").html(l()(e)),c("body").on("click",".sort-by-in-page a",g),function(t){(0,i.Ef)({template:'\n ',components:{Pagination:o.A},data:function(){return{currentPage:f,resultCount:t.totalResults,pageSize:t.perPage,pageCount:t.totalPages,maxReturnedRecords:t.maxReturnedRecords}},methods:{handlePageChange:function(t){f=t,m()}}}).mount("#vue-pagination")}(t),c(".names-by").removeClass("hidden"))}))};function y(){r=window.location.pathname,f=1,h="name_asc",m()}},4347:(t,e,n)=>{"use strict";n.r(e),n.d(e,{QueryParamState:()=>c});var r=n(2543);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(s)throw i}}}}(this._params);try{for(n.s();!(t=n.n()).done;){var r=o(t.value,2),i=r[0],s=r[1];e[i]=s}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"_existingFacets",value:function(){var t=this._params.get("f");return(0,r.isUndefined)(t)?[]:t.split(",")}}],e&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},6056:(t,e,n)=>{"use strict";n.r(e),n.d(e,{combineDates:()=>s,dateFieldIds:()=>a,validateDates:()=>u});var r=n(4692);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;r(s).val()&&(!1===o.isDate(r(s).val())?(r(s+"-invalid-feedback").show(),l(s),n.push(!1)):(r(s+"-invalid-feedback").hide(),l(s),n.push(!0)))}}catch(t){a.e(t)}finally{a.f()}return n},l=function(t){o.isInt(r(t+"-day").val(),{min:1,max:31})?r(t+"-day").removeClass("is-invalid"):r(t+"-day").addClass("is-invalid"),o.isInt(r(t+"-month").val(),{min:1,max:12})?r(t+"-month").removeClass("is-invalid"):r(t+"-month").addClass("is-invalid"),4===r(t+"-year").val().length&&o.isInt(r(t+"-year").val())?r(t+"-year").removeClass("is-invalid"):r(t+"-year").addClass("is-invalid")},c=function(t,e,n){return"".concat(n,"-").concat(e,"-").concat(t)},f=function(t){return t.padStart(2,"0")}},1200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={CLICK:0,ENTER:13,UP_ARROW:38,DOWN_ARROW:40,LEFT_ARROW:37,RIGHT_ARROW:39}},9242:(t,e,n)=>{var r,i=n(2543),o=n(4692);void 0===(r=function(t){n(7596),n(1173),n(4959);var e,r,a=n(3224),s=n(7718),u=n(2857),l=n(5942),c=n(5412),f=n(8301).convertSuggestionsToTokens,h=n(4347).QueryParamState,d=!1,p=new h;function g(t){c.updateTokenRemoveButtons(e),p.clear(),y()}var m=function(t){engine=new u({datumTokenizer:u.tokenizers.whitespace,queryTokenizer:u.tokenizers.whitespace,remote:{url:"/api/1/suggest?query=%q",wildcard:"%q",transform:f}}),engine.initialize(),e=o("#search").tokenfield({tokens:t,allowPasting:!1,inputType:"text",typeahead:[{hint:!1,highlight:!0},{display:"value",limit:6,source:engine.ttAdapter(),templates:{suggestion:l}}]}).on("tokenfield:createdtoken",g).on("tokenfield:removedtoken",g).on("tokenfield:removetoken",v),c.updateCopyHelper(e),o(".tokenfield .token-input").attr("aria-label",o("#search").attr("aria-label")),d=!0,o(window).on("resize",x)};function v(t){r=b()}function y(t){a.publish("search.updated")}var _=function(t,n){n=i.defaultTo(n,!0),i.isObject(t)&&!i.isArray(t)&&(t=i.map(t,(function(t,e){return t?e+":"+t:e}))),d?e.tokenfield("setTokens",t,!1,n):m(t)},b=function(){return e.tokenfield("getTokens")},x=function(){e.tokenfield("update")};return{add:function(t,n){e.tokenfield("createToken",n?t+":"+n:t)},clear:function(){_([])},deserialize:function(t,n){if("?"===t[0]){t=t.slice(1);var r=s(t);for(key in r)"q"!==key&&p.setParam(key,r[key]);i.isString(r.q)&&_(r.q.split("|"),!1),i.defaultTo(n,!0)&&y(),c.updateTokenRemoveButtons(e)}},filters:b,getParam:function(t){return p.getParam(t)},initialize:m,refresh:x,removeParam:function(t,e){p.removeParam(t),i.defaultTo(e,!0)&&a.publish("search.updated.params."+t)},serialize:function(){var t=p.toObject();return i.isEmpty(b())||o.extend(t,{q:i.map(b(),"value").join("|")}),o.param(t)},set:_,setParam:function(t,e,n){p.setParam(t,e),i.defaultTo(n,!0)&&a.publish("search.updated.params."+t)},toggleFacet:function(t){p.toggleFacet(t),y()},setToPreviousTokens:function(){_(r)},hasValidQuery:function(){return!i.isEmpty(b())}}}.call(e,n,e,t))||(t.exports=r)},3287:(t,e,n)=>{"use strict";n.r(e),n.d(e,{popOver:()=>o,validate:()=>a});var r=n(4692),i=n(6056),o=function(){r(".distribution-warning").popover({trigger:"focus"})},a=function(t){r(".one-field-alert").remove(),function(t){var e=t.find(":checkbox, :radio"),n=t.find(":input").not(e).not('[type="submit"],[type="button"],[type="reset"]'),i=e.filter(":checked"),o=n.filter((function(){return r.trim(r(this).val()).length>0}));return i.length+o.length!==0}(t)?i.validateDates(i.dateFieldIds).includes(!1)?(r(".search-form").prepend(""),r(".date-hidden-field").val(""),s()):(r(".one-field-alert").remove(),r("#advanced-search").modal("toggle")):(r(".search-form").prepend(""),s())},s=function(){r("#advanced-search").modal({backdrop:"static",keyboard:!1})}},7517:(t,e,n)=>{var r=n(4692),i=n(2543),o=n(3224);n(3328),n(1200);var a=n(9242),s=n(2435),u=n(6056),l=n(3287);o.subscribe("search.updated",(function(){if(a.hasValidQuery()){var t=a.serialize();"results"===r(document.body).attr("data-pageid")?s.update(t):window.location.href="/load/view.php?a=aHR0cHM6Ly93d3cuaXBuaS5vcmcvc2VhcmNoPw"+t}})),r(document).ready((function(){a.initialize(),s.initialize(),l.popOver(),("/search"===window.location.pathname||"/advanced-search"===window.location.pathname)&&window.location.search.length>1&&a.deserialize(window.location.search),r(".c-search").on("submit",".search-ipni",(function(t){t.preventDefault(),r(".form-data").text(r("#tokenfield").val()),u.combineDates(),l.validate(r(this));var e=i.pickBy(r(this).serializeJSON({skipFalsyValuesForTypes:["string"]}));r("#publishing-author-only").is(":checked")&&(e["publishing author"]=e["name author"],delete e["name author"]),a.set(e),r(".c-search .input-group").removeClass("open")})).on("click","#search-button",(function(t){var e=r(".token-input");a.add(e.val()),e.val("")})).on("click",".clear",(function(t){r(r(this).parents()[0]).find("input").val(""),a.set({})})).on("click",".card-body",(function(t){t.stopPropagation()})).on("shown.bs.dropdown",(function(){r("#c-page-body").addClass("obscured")})).on("hidden.bs.dropdown",(function(){r("#c-page-body").removeClass("obscured")}))})),document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("advanced-search-page");!function(){if(t&&document.referrer)try{var e=new URL(document.referrer),n=new URLSearchParams(e.search).get("q");if(!n)return;var r=n.split("|"),i={};r.forEach((function(t){var e=t.indexOf(":");if(-1!==e){var n=t.substring(0,e),r=t.substring(e+1);i[n]=decodeURIComponent(r)}})),t.querySelectorAll('input[type="text"]').forEach((function(t){i[t.name]&&(t.value=i[t.name])}));var o=document.getElementById("publishing-author-only");o&&n.includes("publishing author")&&(o.checked=!0,document.getElementById("author-std-form").value=i["publishing author"])}catch(t){console.error("Error parsing referrer URL:",t)}}()}))},2435:(t,e,n)=>{"use strict";n.r(e),n.d(e,{initialize:()=>p,load:()=>f,loadResultBar:()=>d,update:()=>c}),n(7596);var r=n(1425),i=n(153),o=n(9242),a=n.n(o),s=n(2118),u=n.n(s),l=n(4692),c=function(t){var e="/api/1/search?"+t;l("html, body").animate({scrollTop:"0px"},100),l("#c-page-body").length||(l(".content").after(u()()),l(".no-results").addClass("hidden")),l.getJSON(e,(function(t){f(t),history.pushState({class:"p-search",data:t},null,"/search?"+a().serialize())}))},f=function(t){t.sort=a().getParam("sort"),t.f=a().getParam("f"),t.expanded=a().getParam("expanded"),l("#c-page-body").length?l("#c-page-body").replaceWith(u()(t)):l(".content").after(u()(t)),l(".results").removeClass("obscured"),l(".totalResults").removeClass("hidden"),l(".loadingResults").addClass("hidden"),l(".show-full-record").removeClass("hidden"),t.totalResults>1e4&&l(".download").popover({content:"Downloads are capped at a total of 10,000 records. If you need a more comprehensive dataset, please contact us at ipnifeedback@kew.org",placement:"bottom",trigger:"hover"}),function(t){t.totalResults>50&&l(".c-per-page").removeClass("hidden");var e=document.querySelectorAll(".vue-pagination");console.log("In Results"),e.forEach((function(e,n){console.log(n),(0,r.Ef)({template:'\n ',components:{Pagination:i.A},data:function(){return{currentPage:t.page,resultCount:t.totalResults,pageSize:t.perPage,pageCount:t.totalPages,maxReturnedRecords:t.maxReturnedRecords}},methods:{handlePageChange:function(t){a().hasValidQuery()||a().setToPreviousTokens(),a().setParam("page",t)}}}).mount("#vue-pagination-"+n)}))}(t),a().refresh()},h=function(t){window.location="/api/1/download?"+a().serialize(),l(this).tooltip("hide")},d=function(){l(".content").after(u()())},p=function(){l("body").on("click",".sort-by a",m).on("click",".filter-by .btn",g).on("change",".c-per-page",v).on("click",".show-detailed-record",y).on("click",".download",h)};function g(t){l(this).hasClass("disabled")||(t.preventDefault(),a().toggleFacet(l(this).attr("data-filter")))}function m(t){t.preventDefault(),a().setParam("sort",l(this).attr("data-sort"))}function v(t){event.preventDefault(),a().setParam("perPage",l(this).val())}function y(t){t.preventDefault(),a().getParam("expanded")?a().removeParam("expanded"):a().setParam("expanded",!0),l(this).tooltip("hide")}},5412:(t,e,n)=>{"use strict";n.r(e),n.d(e,{updateCopyHelper:()=>i,updateTokenRemoveButtons:()=>r});var r=function(t){t.siblings(".token").find("a").removeAttr("tabindex").attr("role","button").attr("aria-description","Remove search term")},i=function(t){t.siblings("input").attr("aria-hidden","true")}},8301:(t,e,n)=>{"use strict";n.r(e),n.d(e,{convertSuggestionsToTokens:()=>a});var r=n(2543),i=n.n(r),o=["scientific-name","author","publication"];function a(t){var e=[];return i().each(o,(function(n){if(n in t.suggestedTerms)for(var r=0;r",""),e.push({value:n===o[0]?i:n+":"+i,display:i,category:s(n)})}})),e}function s(t){switch(t){case"scientific-name":return"";case"author":return"fa-user";case"publication":return"fa-book"}}},1173:(t,e,n)=>{var r,i,o;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}i=[n(4692)],void 0===(o="function"==typeof(r=function(t,e){"use strict";var n=function(e,n){var r=this;this.$element=t(e),this.textDirection=this.$element.css("direction"),this.options=t.extend(!0,{},t.fn.tokenfield.defaults,{tokens:this.$element.val()},this.$element.data(),n),this._delimiters="string"==typeof this.options.delimiter?[this.options.delimiter]:this.options.delimiter,this._triggerKeys=t.map(this._delimiters,(function(t){return t.charCodeAt(0)})),this._firstDelimiter=this._delimiters[0];var i=t.inArray(" ",this._delimiters),o=t.inArray("-",this._delimiters);i>=0&&(this._delimiters[i]="\\s"),o>=0&&(delete this._delimiters[o],this._delimiters.unshift("-"));var a=["\\","$","[","{","^",".","|","?","*","+","(",")"];t.each(this._delimiters,(function(e,n){t.inArray(n,a)>=0&&(r._delimiters[e]="\\"+n)}));var s=e.style.width,u=this.$element.width(),l="rtl"===t("body").css("direction")?"right":"left",c={position:this.$element.css("position")};c[l]=this.$element.css(l),this.$element.data("original-styles",c).data("original-tabindex",this.$element.prop("tabindex")).css("position","absolute").css(l,"-10000px").prop("tabindex",-1),this.$wrapper=t('
'),this.$element.hasClass("input-lg")&&this.$wrapper.addClass("input-lg"),this.$element.hasClass("input-sm")&&this.$wrapper.addClass("input-sm"),"rtl"===this.textDirection&&this.$wrapper.addClass("rtl");var f=this.$element.prop("id")||(new Date).getTime()+""+Math.floor(100*(1+Math.random()));this.$input=t('').appendTo(this.$wrapper).prop("placeholder",this.$element.prop("placeholder")).prop("id",f+"-tokenfield").prop("tabindex",this.$element.data("original-tabindex"));var h=t('label[for="'+this.$element.prop("id")+'"]');if(h.length&&h.prop("for",this.$input.prop("id")),this.$copyHelper=t('').css("position","absolute").css(l,"-10000px").prop("tabindex",-1).prependTo(this.$wrapper),s?this.$wrapper.css("width",s):this.$element.parents(".form-inline").length&&this.$wrapper.width(u),(this.$element.prop("disabled")||this.$element.parents("fieldset[disabled]").length)&&this.disable(),this.$element.prop("readonly")&&this.readonly(),this.$mirror=t(''),this.$input.css("min-width",this.options.minWidth+"px"),this.$wrapper.insertBefore(this.$element),this.$element.prependTo(this.$wrapper),this.$mirror.appendTo(this.$wrapper),this.update(),this.setTokens(this.options.tokens,!1,!this.$element.val()&&this.options.tokens),this.listen(),!t.isEmptyObject(this.options.autocomplete)){var d="rtl"===this.textDirection?"right":"left",p=t.extend({minLength:this.options.showAutocompleteOnFocus?0:null,position:{my:d+" top",at:d+" bottom",of:this.$wrapper}},this.options.autocomplete);this.$input.autocomplete(p)}if(!t.isEmptyObject(this.options.typeahead)){var g=this.options.typeahead,m={minLength:this.options.showAutocompleteOnFocus?0:null},v=t.isArray(g)?g:[g,g];v[0]=t.extend({},m,v[0]),this.$input.typeahead.apply(this.$input,v),this.typeahead=!0}};n.prototype={constructor:n,createToken:function(e,n){var r=this;if(void 0===n&&(n=!0),(e="string"==typeof e?{value:e,label:e}:t.extend({},e)).value=t.trim(e.value.toString()).replace(//g,">"),e.label=e.label&&e.label.length?t.trim(e.label).replace(//g,">"):e.value,e.value.length&&e.label.length&&!(e.label.length=this.options.limit)){var i=t.Event("tokenfield:createtoken",{attrs:e});if(this.$element.trigger(i),i.attrs&&!i.isDefaultPrevented()){var o=t('
').append('').append('×').data("attrs",e);this.$input.hasClass("tt-input")?this.$input.parent().before(o):this.$input.before(o),this.$input.css("width",this.options.minWidth+"px");var a=o.find(".token-label"),s=o.find(".close");return this.maxTokenWidth||(this.maxTokenWidth=this.$wrapper.width()-s.width()-10),a.css("max-width",this.maxTokenWidth),this.options.html?a.html(e.label):a.text(e.label),o.on("mousedown",(function(t){if(r._disabled||r._readonly)return!1;r.preventDeactivation=!0})).on("click",(function(t){return!r._disabled&&!r._readonly&&(r.preventDeactivation=!1,t.ctrlKey||t.metaKey?(t.preventDefault(),r.toggle(o)):void r.activate(o,t.shiftKey,t.shiftKey))})).on("dblclick",(function(t){if(r._disabled||r._readonly||!r.options.allowEditing)return!1;r.edit(o)})),s.on("click",t.proxy(this.remove,this)),n&&(this.$element.trigger(t.Event("tokenfield:createdtoken",{attrs:e,relatedTarget:o.get(0)})),this.$element.val(this.getTokensList()).trigger(t.Event("change",{initiator:"tokenfield"}))),setTimeout((function(){r.update()}),0),this.$element.get(0)}}},setTokens:function(e,n,r){if(n||this.$wrapper.find(".token").remove(),e){void 0===r&&(r=!0),"string"==typeof e&&(e=this._delimiters.length?e.split(new RegExp("["+this._delimiters.join("")+"]")):[e]);var i=this;return t.each(e,(function(t,e){i.createToken(e,r)})),this.$element.get(0)}},getTokenData:function(e){var n=e.map((function(){return t(this).data("attrs")})).get();return 1===n.length&&(n=n[0]),n},getTokens:function(e){var n=this,r=[],i=e?".active":"";return this.$wrapper.find(".token"+i).each((function(){r.push(n.getTokenData(t(this)))})),r},getTokensList:function(e,n,r){var i=(e=e||this._firstDelimiter)+((n=null!=n?n:this.options.beautify)&&" "!==e?" ":"");return t.map(this.getTokens(r),(function(t){return t.value})).join(i)},getInput:function(){return this.$input.val()},setInput:function(t){this.$input.hasClass("tt-input")?this.$input.typeahead("val",t):this.$input.val(t)},listen:function(){var n=this;this.$element.on("change.tokenfield",t.proxy(this.change,this)),this.$wrapper.on("mousedown",t.proxy(this.focusInput,this)),this.$input.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("paste",t.proxy(this.paste,this)).on("keydown",t.proxy(this.keydown,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.$copyHelper.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keydown",t.proxy(this.keydown,this)).on("keyup",t.proxy(this.keyup,this)),this.$input.on("keypress",t.proxy(this.update,this)).on("keyup",t.proxy(this.update,this)),this.$input.on("autocompletecreate",(function(){var e=t(this).data("ui-autocomplete").menu.element,r=n.$wrapper.outerWidth()-parseInt(e.css("border-left-width"),10)-parseInt(e.css("border-right-width"),10);e.css("min-width",r+"px")})).on("autocompleteselect",(function(t,e){return n.createToken(e.item)&&(n.$input.val(""),n.$input.data("edit")&&n.unedit(!0)),!1})).on("typeahead:selected typeahead:autocompleted",(function(t,e,r){n.createToken(e)&&(n.$input.typeahead("val",""),n.$input.data("edit")&&n.unedit(!0))})),t(e).on("resize",t.proxy(this.update,this))},keydown:function(e){if(this.focused){var n=this;switch(e.keyCode){case 8:if(!this.$input.is(document.activeElement))break;this.lastInputValue=this.$input.val();break;case 37:r("rtl"===this.textDirection?"next":"prev");break;case 38:i("prev");break;case 39:r("rtl"===this.textDirection?"prev":"next");break;case 40:i("next");break;case 65:if(this.$input.val().length>0||!e.ctrlKey&&!e.metaKey)break;this.activateAll(),e.preventDefault();break;case 9:case 13:if(this.$input.data("ui-autocomplete")&&this.$input.data("ui-autocomplete").menu.element.find("li:has(a.ui-state-focus), li.ui-state-focus").length)break;if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-cursor").length)break;if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-hint").val()&&this.$wrapper.find(".tt-hint").val().length)break;if(this.$input.is(document.activeElement)&&this.$input.val().length||this.$input.data("edit"))return this.createTokensFromInput(e,this.$input.data("edit"));if(this.$input.is(document.activeElement)&&13===e.keyCode&&(e.preventDefault(),this.$element.trigger("tokenfield:next")),13===e.keyCode){if(!this.$copyHelper.is(document.activeElement)||1!==this.$wrapper.find(".token.active").length)break;if(!n.options.allowEditing)break;this.edit(this.$wrapper.find(".token.active"))}}this.lastKeyDown=e.keyCode}function r(t){if(n.$input.is(document.activeElement)){if(n.$input.val().length>0)return;t+="All";var r=n.$input.hasClass("tt-input")?n.$input.parent()[t](".token:first"):n.$input[t](".token:first");if(!r.length)return;n.preventInputFocus=!0,n.preventDeactivation=!0,n.activate(r),e.preventDefault()}else n[t](e.shiftKey),e.preventDefault()}function i(r){if(e.shiftKey){if(n.$input.is(document.activeElement)){if(n.$input.val().length>0)return;var i=n.$input.hasClass("tt-input")?n.$input.parent()[r+"All"](".token:first"):n.$input[r+"All"](".token:first");if(!i.length)return;n.activate(i)}var o="prev"===r?"next":"prev",a="prev"===r?"first":"last";n.$firstActiveToken[o+"All"](".token").each((function(){n.deactivate(t(this))})),n.activate(n.$wrapper.find(".token:"+a),!0,!0),e.preventDefault()}}},keypress:function(e){if(-1!==t.inArray(e.which,this._triggerKeys)&&this.$input.is(document.activeElement)){var n=this.$input.val();if(/^"[^"]*$/.test(n))return;return n&&this.createTokensFromInput(e),!1}},keyup:function(t){if(this.preventInputFocus=!1,this.focused){switch(t.keyCode){case 8:if(this.$input.is(document.activeElement)){if(this.$input.val().length||this.lastInputValue.length&&8===this.lastKeyDown)break;this.preventDeactivation=!0;var e=this.$input.hasClass("tt-input")?this.$input.parent().prevAll(".token:first"):this.$input.prevAll(".token:first");if(!e.length)break;this.activate(e)}else this.remove(t);break;case 46:this.remove(t,"next")}this.lastKeyUp=t.keyCode}},focus:function(t){this.focused=!0,this.$wrapper.addClass("focus"),this.$input.is(document.activeElement)&&(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null,this.options.showAutocompleteOnFocus&&this.search())},blur:function(t){this.focused=!1,this.$wrapper.removeClass("focus"),this.preventDeactivation||this.$element.is(document.activeElement)||(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null),!this.preventCreateTokens&&(this.$input.data("edit")&&!this.$input.is(document.activeElement)||this.options.createTokensOnBlur)&&this.createTokensFromInput(t),this.preventDeactivation=!1,this.preventCreateTokens=!1},paste:function(t){var e=this;e.options.allowPasting&&setTimeout((function(){e.createTokensFromInput(t)}),1)},change:function(t){"tokenfield"!==t.initiator&&this.setTokens(this.$element.val())},createTokensFromInput:function(t,e){if(!(this.$input.val().lengththis.$firstActiveToken.index())return this.deactivate(e)}var n=this.$wrapper.find(".active:first").prevAll(".token:first");n.length||(n=this.$wrapper.find(".token:first")),n.length||t?this.activate(n,t):this.$input.focus()},activate:function(e,n,r,i){if(e){if(void 0===i&&(i=!0),r&&(n=!0),this.$copyHelper.focus(),n||(this.$wrapper.find(".active").removeClass("active"),i?this.$firstActiveToken=e:delete this.$firstActiveToken),r&&this.$firstActiveToken){var o=this.$firstActiveToken.index()-2,a=e.index()-2,s=this;this.$wrapper.find(".token").slice(Math.min(o,a)+1,Math.max(o,a)).each((function(){s.activate(t(this),!0)}))}e.addClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select()}},activateAll:function(){var e=this;this.$wrapper.find(".token").each((function(n){e.activate(t(this),0!==n,!1,!1)}))},deactivate:function(t){t&&(t.removeClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},toggle:function(t){t&&(t.toggleClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},edit:function(e){if(e){var n=e.data("attrs"),r={attrs:n,relatedTarget:e.get(0)},i=t.Event("tokenfield:edittoken",r);if(this.$element.trigger(i),!i.isDefaultPrevented()){e.find(".token-label").text(n.value);var o=e.outerWidth(),a=this.$input.hasClass("tt-input")?this.$input.parent():this.$input;e.replaceWith(a),this.preventCreateTokens=!0,this.$input.val(n.value).select().data("edit",!0).width(o),this.update(),this.$element.trigger(t.Event("tokenfield:editedtoken",r))}}},unedit:function(t){if((this.$input.hasClass("tt-input")?this.$input.parent():this.$input).appendTo(this.$wrapper),this.$input.data("edit",!1),this.$mirror.text(""),this.update(),t){var e=this;setTimeout((function(){e.$input.focus()}),1)}},remove:function(e,n){if(!(this.$input.is(document.activeElement)||this._disabled||this._readonly)){var r,i="click"===e.type?t(e.target).closest(".token"):this.$wrapper.find(".token.active");"click"!==e.type&&(n||(n="prev"),this[n](),"prev"===n&&(r=0===i.first().prevAll(".token:first").length));var o={attrs:this.getTokenData(i),relatedTarget:i.get(0)},a=t.Event("tokenfield:removetoken",o);if(this.$element.trigger(a),!a.isDefaultPrevented()){var s=t.Event("tokenfield:removedtoken",o),u=t.Event("change",{initiator:"tokenfield"});i.remove(),this.$element.val(this.getTokensList()).trigger(s).trigger(u),this.$wrapper.find(".token").length&&"click"!==e.type&&!r||this.$input.focus(),this.$input.css("width",this.options.minWidth+"px"),this.update(),e.preventDefault(),e.stopPropagation()}}},update:function(t){var e=this.$input.val(),n=parseInt(this.$input.css("padding-left"),10)+parseInt(this.$input.css("padding-right"),10);if(this.$input.data("edit")){if(e||(e=this.$input.prop("placeholder")),e===this.$mirror.text())return;this.$mirror.text(e);var r=this.$mirror.width()+10;if(r>this.$wrapper.width())return this.$input.width(this.$wrapper.width());this.$input.width(r)}else{this.$input.width(this.options.minWidth);var i="rtl"===this.textDirection?this.$input.offset().left+this.$input.outerWidth()-this.$wrapper.offset().left-parseInt(this.$wrapper.css("padding-left"),10)-n-1:this.$wrapper.offset().left+this.$wrapper.width()+parseInt(this.$wrapper.css("padding-left"),10)-this.$input.offset().left-n;isNaN(i)?this.$input.width("100%"):this.$input.width(i)}},focusInput:function(e){if(!(t(e.target).closest(".token").length||t(e.target).closest(".token-input").length||t(e.target).closest(".tt-dropdown-menu").length)){var n=this;setTimeout((function(){n.$input.focus()}),0)}},search:function(){this.$input.data("ui-autocomplete")&&this.$input.autocomplete("search")},disable:function(){this.setProperty("disabled",!0)},enable:function(){this.setProperty("disabled",!1)},readonly:function(){this.setProperty("readonly",!0)},writeable:function(){this.setProperty("readonly",!1)},setProperty:function(t,e){this["_"+t]=e,this.$input.prop(t,e),this.$element.prop(t,e),this.$wrapper[e?"addClass":"removeClass"](t)},destroy:function(){this.$element.val(this.getTokensList()),this.$element.css(this.$element.data("original-styles")),this.$element.prop("tabindex",this.$element.data("original-tabindex"));var e=t('label[for="'+this.$input.prop("id")+'"]');return e.length&&e.prop("for",this.$element.prop("id")),this.$element.insertBefore(this.$wrapper),this.$element.off(".tokenfield"),this.$element.removeData("original-styles").removeData("original-tabindex").removeData("bs.tokenfield"),this.$wrapper.remove(),this.$mirror.remove(),this.$element}};var r=t.fn.tokenfield;return t.fn.tokenfield=function(e,r){var i,o=[];Array.prototype.push.apply(o,arguments);var s=this.each((function(){var s=t(this),u=s.data("bs.tokenfield"),l="object"===a(e)&&e;"string"==typeof e&&u&&u[e]?(o.shift(),i=u[e].apply(u,o)):u||"string"==typeof e||r||(s.data("bs.tokenfield",u=new n(this,l)),s.trigger("tokenfield:initialize"))}));return void 0!==i?i:s},t.fn.tokenfield.defaults={minWidth:60,minLength:0,html:!0,allowEditing:!0,allowPasting:!0,limit:0,autocomplete:{},typeahead:{},showAutocompleteOnFocus:!1,createTokensOnBlur:!1,delimiter:"|",beautify:!0,inputType:"text"},t.fn.tokenfield.Constructor=n,t.fn.tokenfield.noConflict=function(){return t.fn.tokenfield=r,this},n})?r.apply(e,i):r)||(t.exports=o)},6004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>et});var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}(),o=r&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),i))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:l(u(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var f=r&&!(!window.MSInputMethodContext||!document.documentMode),h=r&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?f:10===t?h:f||h}function p(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function g(t){return null!==t.parentNode?g(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(t!==u&&e!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(u):u;var l=g(t);return l.host?m(l.host,e):m(t,g(e).host)}function v(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function y(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function _(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function b(t){var e=t.body,n=t.documentElement,r=d(10)&&getComputedStyle(n);return{height:_("Height",e,n,r),width:_("Width",e,n,r)}}var x=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===e.nodeName,o=T(t),a=T(e),u=l(t),c=s(e),f=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=A({top:o.top-a.top-f,left:o.left-a.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var g=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);p.top-=f-g,p.bottom-=f-g,p.left-=h-m,p.right-=h-m,p.marginTop=g,p.marginLeft=m}return(r&&!n?e.contains(u):e===u&&"BODY"!==u.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(e,"top"),i=v(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(p,e)),p}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=u(t);return!!n&&C(n)}function E(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function P(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?E(t):m(t,c(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=k(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left");return A({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=l(u(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var f=k(s,a,i);if("HTML"!==s.nodeName||C(a))o=f;else{var h=b(t.ownerDocument),d=h.height,p=h.width;o.top+=f.top-f.marginTop,o.bottom=d+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var g="number"==typeof(n=n||0);return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function O(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=P(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return S({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),l=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function I(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,r?E(e):m(e,c(n)),r)}function M(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function R(t,e,n){n=n.split("-")[0];var r=M(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[l]:e[L(s)],i}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function D(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=N(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=A(e.offsets.popper),e.offsets.reference=A(e.offsets.reference),e=n(e,t))})),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=O(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=R(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=D(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function F(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(t),r=X.slice(n+1).concat(X.slice(0,n));return e?r.reverse():r}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:w({},u,o[u]),end:w({},u,o[u]+o[l]-a[l])};t.offsets.popper=S({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,r=e.offset,i=t.placement,o=t.offsets,a=o.popper,s=o.reference,u=i.split("-")[0];return n=W(+r)?[+r,0]:function(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(N(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];return o?0===a.indexOf("%")?A("%p"===a?n:r)[e]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:t}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){W(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}(r,a,s,u),"left"===u?(a.top+=n[0],a.left-=n[1]):"right"===u?(a.top+=n[0],a.left+=n[1]):"top"===u?(a.left+=n[0],a.top-=n[1]):"bottom"===u&&(a.left+=n[0],a.top+=n[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var r=F("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=P(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),w({},n,r)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=S({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!K(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",h=f.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",g=M(r)[c];u[p]-ga[p]&&(t.offsets.popper[h]+=u[h]+g-a[p]),t.offsets.popper=A(t.offsets.popper);var m=u[h]+u[c]/2-g/2,v=s(t.instance.popper),y=parseFloat(v["margin"+f]),_=parseFloat(v["border"+f+"Width"]),b=m-t.offsets.popper[h]-y-_;return b=Math.max(Math.min(a[c]-g,b),0),t.arrowElement=r,t.offsets.arrow=(w(n={},h,Math.round(b)),w(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if($(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=P(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=L(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case"flip":a=[r,i];break;case"clockwise":a=Q(r);break;case"counterclockwise":a=Q(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=L(r);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)f(c.top)||"bottom"===r&&f(l.top)f(n.right),g=f(l.top)f(n.bottom),v="left"===r&&d||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),_=!!e.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),b=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&m||!y&&"end"===o&&g),x=_||b;(h||v||x)&&(t.flipped=!0,(h||v)&&(r=a[u+1]),x&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=S({},t.offsets.popper,R(t.instance.popper,t.offsets.reference,t.placement)),t=D(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=A(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!K(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=N(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=S({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&a(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return x(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),t}();tt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,tt.placements=Y,tt.Defaults=J;const et=tt},2857:(t,e,n)=>{t.exports=n(8663)},8975:(t,e,n)=>{var r=n(6964).Promise,i=n(5734);t.exports=function(t){return new r((function(e,n){i.get(t.url).end((function(t,r){if(t)return n(t);e(r.body)}))}))}},8663:(t,e,n)=>{var r=n(2620),i=n(6964).Promise,o=n(2671),a=n(7094),s=n(7355),u=n(9249),l=n(5006),c=n(1932);function f(t){t=u(t),this.sorter=t.sorter,this.identify=t.identify,this.sufficient=t.sufficient,this.local=t.local,this.remote=t.remote?new o(t.remote):null,this.prefetch=t.prefetch?new a(t.prefetch):null,this.index=new l({identify:this.identify,datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer}),!1!==t.initialize&&this.initialize()}f.tokenizers=s,r.mixin(f.prototype,{__ttAdapter:function(){var t=this;return this.remote?function(e,n,r){return t.search(e,n,r)}:function(e,n){return t.search(e,n)}},_loadPrefetch:function(){var t,e=this;return this.prefetch?(t=this.prefetch.fromCache())?(this.index.bootstrap(t),new i((function(t,e){t()}))):new i((function(t,n){e.prefetch.fromNetwork((function(r,i){if(r)return n(r);try{e.add(i),e.prefetch.store(e.index.serialize()),t()}catch(t){n(t)}}))})):new i((function(t,e){t()}))},_initialize:function(){var t=this;return this.clear(),(this.initPromise=this._loadPrefetch()).then((function(){t.add(t.local)})),this.initPromise},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){return this.index.add(t),this},get:function(t){return t=r.isArray(t)?t:[].slice.call(arguments),this.index.get(t)},search:function(t,e,n){var i,o=this;return i=this.sorter(this.index.search(t)),e(this.remote?i.slice():i),this.remote&&i.length{var r=n(2620);function i(t){this.maxSize=r.isNumber(t)?t:100,this.reset(),this.maxSize<=0&&(this.set=this.get=r.noop)}function o(){this.head=this.tail=null}function a(t,e){this.key=t,this.val=e,this.prev=this.next=null}r.mixin(i.prototype,{set:function(t,e){var n,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new a(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new o}}),r.mixin(o.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),t.exports=i},9249:(t,e,n)=>{var r=n(2620),i=n(8975),o=n(7921);t.exports=function(t){var e,n;return e={initialize:!0,identify:r.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},!(t=r.mixin(e,t||{})).datumTokenizer&&r.error("datumTokenizer is required"),!t.queryTokenizer&&r.error("queryTokenizer is required"),n=t.sorter,t.sorter=n?function(t){return t.sort(n)}:r.identity,t.local=r.isFunction(t.local)?t.local():t.local,t.prefetch=function(t){var e;return t?(e={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:r.identity,transform:r.identity,transport:null},t=r.isString(t)?{url:t}:t,!(t=r.mixin(e,t)).url&&r.error("prefetch requires url to be set"),t.transform=t.filter||t.transform,t.cacheKey=t.cacheKey||t.url,t.thumbprint=o+t.thumbprint,t.transport=t.transport?(t.transport,function(t){}):i,t):null}(t.prefetch),t.remote=function(t){var e;if(t)return e={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:r.identity,transport:null},t=r.isString(t)?{url:t}:t,!(t=r.mixin(e,t)).url&&r.error("remote requires url to be set"),t.transform=t.filter||t.transform,t.prepare=function(t){var e,n,r;return e=t.prepare,n=t.replace,r=t.wildcard,e||(e=n?function(t,e){return e.url=n(e.url,t),e}:t.wildcard?function(t,e){return e.url=e.url.replace(r,encodeURIComponent(t)),e}:function(t,e){return e})}(t),t.limiter=function(t){var e,n,i;return e=t.limiter,n=t.rateLimitBy,i=t.rateLimitWait,e||(e=/^throttle$/i.test(n)?function(t){return function(e){return r.throttle(e,t)}}(i):function(t){return function(e){return r.debounce(e,t)}}(i)),e}(t),t.transport=t.transport?(t.transport,function(t){}):i,delete t.replace,delete t.wildcard,delete t.rateLimitBy,delete t.rateLimitWait,t}(t.remote),t}},2034:(t,e,n)=>{var r,i=n(3593),o=n(2620);try{(r=i.localStorage).setItem("~~~","!"),r.removeItem("~~~")}catch(t){r=null}function a(t,e){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+o.escapeRegExChars(this.prefix)),this.ls=e||r,!this.ls&&this._noop()}function s(){return(new Date).getTime()}function u(t){return JSON.stringify(o.isUndefined(t)?null:t)}function l(t){return JSON.parse(t)}o.mixin(a.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=o.noop},_safeSet:function(t,e){try{this.ls.setItem(t,e)}catch(t){"QuotaExceededError"===t.name&&(this.clear(),this._noop())}},get:function(t){return this.isExpired(t)&&this.remove(t),l(this.ls.getItem(this._prefix(t)))},set:function(t,e,n){return o.isNumber(n)?this._safeSet(this._ttlKey(t),u(s()+n)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),u(e))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e=function(t){var e,n,i=[],o=r.length;for(e=0;ee)}}),t.exports=a},7094:(t,e,n)=>{var r,i=n(2034),o=n(2620),a="data",s="protocol",u="thumbprint";function l(t){this.url=t.url,this.ttl=t.ttl,this.cache=t.cache,this.prepare=t.prepare,this.transform=t.transform,this.transport=t.transport,this.thumbprint=t.thumbprint,this.storage=new i(t.cacheKey)}r="undefined"!=typeof window?window.location:{protocol:"https:"},o.mixin(l.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(a,t,this.ttl),this.storage.set(s,r.protocol,this.ttl),this.storage.set(u,this.thumbprint,this.ttl))},fromCache:function(){var t,e={};return this.cache?(e.data=this.storage.get(a),e.protocol=this.storage.get(s),e.thumbprint=this.storage.get(u),t=e.thumbprint!==this.thumbprint||e.protocol!==r.protocol,e.data&&!t?e.data:null):null},fromNetwork:function(t){var e,n=this;t&&(e=this.prepare(this._settings()),this.transport(e).then((function(e){t(null,n.transform(e))}),(function(){t(!0)})))},clear:function(){return this.storage.clear(),this}}),t.exports=l},2671:(t,e,n)=>{var r=n(2620),i=n(1932);function o(t){this.url=t.url,this.prepare=t.prepare,this.transform=t.transform,this.transport=new i({cache:t.cache,limiter:t.limiter,transport:t.transport})}r.mixin(o.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(t,e){var n,r=this;if(e)return t=t||"",n=this.prepare(t,this._settings()),this.transport.get(n,(function(t,n){e(t?[]:r.transform(n))}))},cancelLastRequest:function(){this.transport.cancel()}}),t.exports=o},5006:(t,e,n)=>{var r=n(2620),i="c";function o(t){if(!(t=t||{}).datumTokenizer||!t.queryTokenizer)throw new Error("datumTokenizer and queryTokenizer are both required");this.identify=t.identify||r.stringify,this.datumTokenizer=t.datumTokenizer,this.queryTokenizer=t.queryTokenizer,this.reset()}function a(t){return t=r.filter(t,(function(t){return!!t})),r.map(t,(function(t){return t.toLowerCase()}))}function s(){var t={i:[]};return t[i]={},t}r.mixin(o.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var e=this;t=r.isArray(t)?t:[t],r.each(t,(function(t){var n,o;e.datums[n=e.identify(t)]=t,o=a(e.datumTokenizer(t)),r.each(o,(function(t){var r,o,a;for(r=e.trie,o=t.split("");a=o.shift();)(r=r[i][a]||(r[i][a]=s())).i.push(n)}))}))},get:function(t){var e=this;return r.map(t,(function(t){return e.datums[t]}))},search:function(t){var e,n,o=this;return e=a(this.queryTokenizer(t)),r.each(e,(function(t){var e,r,a,s;if(n&&0===n.length)return!1;for(e=o.trie,r=t.split("");e&&(a=r.shift());)e=e[i][a];if(!e||0!==r.length)return n=[],!1;s=e.i.slice(0),n=n?function(t,e){var n=0,r=0,i=[];t=t.sort(),e=e.sort();for(var o=t.length,a=e.length;ne[r]||(i.push(t[n]),n++),r++);return i}(n,s):s})),n?r.map(function(t){for(var e={},n=[],r=0,i=t.length;r{var r=n(2620);function i(t){return(t=r.toStr(t))?t.split(/\s+/):[]}function o(t){return(t=r.toStr(t))?t.split(/\W+/):[]}function a(t){return function(e){return e=r.isArray(e)?e:[].slice.call(arguments,0),function(n){var i=[];return r.each(e,(function(e){i=i.concat(t(r.toStr(n[e])))})),i}}}t.exports={nonword:o,whitespace:i,obj:{nonword:a(o),whitespace:a(i)}}},1932:(t,e,n)=>{var r=n(4941),i=n(2620),o=0,a={},s=6,u=new r(10);function l(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new r(0):u}l.setMaxPendingRequests=function(t){s=t},l.resetCache=function(){u.reset()},i.mixin(l.prototype,{_fingerprint:function(t){return(t=t||{}).url+t.type+JSON.stringify(t.data||{})},_get:function(t,e){var n,r,i=this;function u(t){e(null,t),i._cache.set(n,t)}function l(){e(!0)}function c(){o--,delete a[n],i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}n=this._fingerprint(t),this.cancelled||n!==this.lastReq||((r=a[n])?r.then(u,l):o{var r=n(4692),i=n(5228),o={isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:Array.isArray,isFunction:function(t){return"function"==typeof t},isObject:function(t){return"object"==typeof t},isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(t){return t instanceof r},toStr:function(t){return o.isUndefined(t)||null===t?"":t+""},bind:function(t,e){return t.bind(e)},each:function(t,e){t.forEach(e)},map:function(t,e){return t.map(e)},filter:function(t,e){return t.filter(e)},every:function(t,e){var n=!0;if(!t)return n;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(!(n=e.call(null,i,r,t)))return!1}return!!n},some:function(t,e){var n=!1;if(!t)return n;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(n=e.call(null,i,r,t))return!1}return!!n},mixin:n(5228),identity:function(t){return t},clone:function(t){return i({},t)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(t){return o.isFunction(t)?t:function(){return String(t)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var r,i;return function(){var o,a,s=this,u=arguments;return o=function(){r=null,n||(i=t.apply(s,u))},a=n&&!r,clearTimeout(r),r=setTimeout(o,e),a&&(i=t.apply(s,u)),i}},throttle:function(t,e){var n,r,i,o,a,s;return a=0,s=function(){a=new Date,i=null,o=t.apply(n,r)},function(){var u=new Date,l=e-(u-a);return n=this,r=arguments,l<=0?(clearTimeout(i),i=null,a=u,o=t.apply(n,r)):i||(i=setTimeout(s,l)),o}},stringify:function(t){return o.isString(t)?t:JSON.stringify(t)},noop:function(){},error:function(t){throw new Error(t)}};t.exports=o},7921:t=>{t.exports="1.0.0"},2754:function(t,e,n){!function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),o=r(n);function a(t,e){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};h.jQueryDetection(),i.default.fn.emulateTransitionEnd=f,i.default.event.special[h.TRANSITION_END]={bindType:c,delegateType:c,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var d="alert",p="bs.alert",g="."+p,m=i.default.fn[d],v="close"+g,y="closed"+g,_="click"+g+".data-api",b=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,p),this._element=null},e._getRootElement=function(t){var e=h.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(v);return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass("show"),i.default(t).hasClass("fade")){var n=h.getTransitionDurationFromElement(t);i.default(t).one(h.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(y).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(p);r||(r=new t(this),n.data(p,r)),"close"===e&&r[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(_,'[data-dismiss="alert"]',b._handleDismiss(new b)),i.default.fn[d]=b._jQueryInterface,i.default.fn[d].Constructor=b,i.default.fn[d].noConflict=function(){return i.default.fn[d]=m,b._jQueryInterface};var x="button",w="bs.button",S="."+w,A=".data-api",T=i.default.fn[x],k="active",C="click"+S+A,E="focus"+S+A+" blur"+S+A,P="load"+S+A,O='[data-toggle^="button"]',I='input:not([type="hidden"])',M=".btn",L=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var r=this._element.querySelector(I);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(k))t=!1;else{var o=n.querySelector(".active");o&&i.default(o).removeClass(k)}t&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(k)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(k)),t&&i.default(this._element).toggleClass(k))},e.dispose=function(){i.default.removeData(this._element,w),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var r=i.default(this),o=r.data(w);o||(o=new t(this),r.data(w,o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(C,O,(function(t){var e=t.target,n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(M)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var r=e.querySelector(I);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||L._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on(E,O,(function(t){var e=i.default(t.target).closest(M)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on(P,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(B)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(V)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(h.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(et);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(G,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var r=t>n?B:V;this._slide(r,this._items[t])}},e.dispose=function(){i.default(this._element).off(D),i.default.removeData(this._element,N),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=u({},nt,t),h.typeCheckConfig(R,t,rt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on(z,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on(U,(function(e){return t.pause(e)})).on(W,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&it[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&it[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on(Q,(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(Y,(function(t){return e(t)})),i.default(this._element).on(X,(function(t){return n(t)})),this._element.classList.add("pointer-event")):(i.default(this._element).on(q,(function(t){return e(t)})),i.default(this._element).on(Z,(function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),i.default(this._element).on(K,(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===B,r=t===V,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var a=(i+(t===V?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),r=this._getItemIndex(this._element.querySelector(et)),o=i.default.Event(H,{relatedTarget:t,direction:e,from:r,to:n});return i.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(F);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(F)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(et);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,r,o,a=this,s=this._element.querySelector(et),u=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),f=Boolean(this._interval);if(t===B?(n="carousel-item-left",r="carousel-item-next",o="left"):(n="carousel-item-right",r="carousel-item-prev",o="right"),l&&i.default(l).hasClass(F))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var d=i.default.Event(G,{relatedTarget:l,direction:o,from:u,to:c});if(i.default(this._element).hasClass("slide")){i.default(l).addClass(r),h.reflow(l),i.default(s).addClass(n),i.default(l).addClass(n);var p=h.getTransitionDurationFromElement(s);i.default(s).one(h.TRANSITION_END,(function(){i.default(l).removeClass(n+" "+r).addClass(F),i.default(s).removeClass(F+" "+r+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(d)}),0)})).emulateTransitionEnd(p)}else i.default(s).removeClass(F),i.default(l).addClass(F),this._isSliding=!1,i.default(this._element).trigger(d);f&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(N),r=u({},nt,i.default(this).data());"object"==typeof e&&(r=u({},r,e));var o="string"==typeof e?e:r.slide;if(n||(n=new t(this,r),i.default(this).data(N,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=h.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass("carousel")){var o=u({},i.default(r).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(i.default(r),o),a&&i.default(r).data(N).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return nt}}]),t}();i.default(document).on(tt,"[data-slide], [data-slide-to]",ot._dataApiClickHandler),i.default(window).on(J,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(ct)?this.hide():this.show()},e.show=function(){var e,n,r=this;if(!(this._isTransitioning||i.default(this._element).hasClass(ct)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof r._config.parent?t.getAttribute("data-parent")===r._config.parent:t.classList.contains(ft)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(st))&&n._isTransitioning))){var o=i.default.Event(gt);if(i.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(st,null));var a=this._getDimension();i.default(this._element).removeClass(ft).addClass(ht),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(dt).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),u=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,(function(){i.default(r._element).removeClass(ht).addClass(ft+" "+ct),r._element.style[a]="",r.setTransitioning(!1),i.default(r._element).trigger(mt)})).emulateTransitionEnd(u),this._element.style[a]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(ct)){var e=i.default.Event(vt);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",h.reflow(this._element),i.default(this._element).addClass(ht).removeClass(ft+" "+ct);var r=this._triggerArray.length;if(r>0)for(var o=0;o0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=u({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),u({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Tt);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(Tt,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(Vt)),r=0,o=n.length;r0&&a--,40===e.which&&adocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Jt);var r=h.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(h.TRANSITION_END),i.default(this._element).one(h.TRANSITION_END,(function(){t._element.classList.remove(Jt),n||i.default(t._element).one(h.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,r)})).emulateTransitionEnd(r),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(Xt),r=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&r?r.scrollTop=0:this._element.scrollTop=0,n&&h.reflow(this._element),i.default(this._element).addClass(Qt),this._config.focus&&this._enforceFocus();var o=i.default.Event(ie,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(o)};if(n){var s=h.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(h.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off(oe).on(oe,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(ue,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(ue)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(ae,(function(e){return t.handleUpdate(e)})):i.default(window).off(ae)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(Yt),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(ne)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(Xt)?Xt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(se,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&h.reflow(this._backdrop),i.default(this._backdrop).addClass(Qt),!t)return;if(!n)return void t();var r=h.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(h.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Qt);var o=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Xt)){var a=h.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(h.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},De={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},je={HIDE:"hide"+Se,HIDDEN:"hidden"+Se,SHOW:"show"+Se,SHOWN:"shown"+Se,INSERTED:"inserted"+Se,CLICK:"click"+Se,FOCUSIN:"focusin"+Se,FOCUSOUT:"focusout"+Se,MOUSEENTER:"mouseenter"+Se,MOUSELEAVE:"mouseleave"+Se},$e=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Pe))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=h.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var a=this.getTipElement(),s=h.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(a).addClass(Ee);var u="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,l=this._getAttachment(u);this.addAttachmentClass(l);var c=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(c),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(l)),i.default(a).addClass(Pe),i.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===Ie&&t._leave(null,t)};if(i.default(this.tip).hasClass(Ee)){var d=h.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(h.TRANSITION_END,f).emulateTransitionEnd(d)}else f()}},e.hide=function(t){var e=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==Oe&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(Pe),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger[Le]=!1,this._activeTrigger[Me]=!1,i.default(this.tip).hasClass(Ee)){var a=h.getTransitionDurationFromElement(n);i.default(n).one(h.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Te+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass(Ee+" "+Pe)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=be(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return u({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=u({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:h.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return Re[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===Me?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=e===Me?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(r,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Le:Me]=!0),i.default(e.getTipElement()).hasClass(Pe)||e._hoverState===Oe?e._hoverState=Oe:(clearTimeout(e._timeout),e._hoverState=Oe,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===Oe&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Le:Me]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Ie,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===Ie&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Ce.indexOf(t)&&delete e[t]})),"number"==typeof(t=u({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),h.typeCheckConfig(xe,t,this.constructor.DefaultType),t.sanitize&&(t.template=be(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(ke);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Ee),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(we),o="object"==typeof e&&e;if((r||!/dispose|hide/.test(e))&&(r||(r=new t(this,o),n.data(we,r)),"string"==typeof e)){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Ne}},{key:"NAME",get:function(){return xe}},{key:"DATA_KEY",get:function(){return we}},{key:"Event",get:function(){return je}},{key:"EVENT_KEY",get:function(){return Se}},{key:"DefaultType",get:function(){return De}}]),t}();i.default.fn[xe]=$e._jQueryInterface,i.default.fn[xe].Constructor=$e,i.default.fn[xe].noConflict=function(){return i.default.fn[xe]=Ae,$e._jQueryInterface};var Fe="popover",Be="bs.popover",Ve="."+Be,He=i.default.fn[Fe],Ge="bs-popover",ze=new RegExp("(^|\\s)"+Ge+"\\S+","g"),Ue=u({},$e.Default,{placement:"right",trigger:"click",content:"",template:''}),We=u({},$e.DefaultType,{content:"(string|element|function)"}),qe={HIDE:"hide"+Ve,HIDDEN:"hidden"+Ve,SHOW:"show"+Ve,SHOWN:"shown"+Ve,INSERTED:"inserted"+Ve,CLICK:"click"+Ve,FOCUSIN:"focusin"+Ve,FOCUSOUT:"focusout"+Ve,MOUSEENTER:"mouseenter"+Ve,MOUSELEAVE:"mouseleave"+Ve},Ze=function(t){function e(){return t.apply(this,arguments)||this}var n,r;r=t,(n=e).prototype=Object.create(r.prototype),n.prototype.constructor=n,l(n,r);var o=e.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(Ge+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},o.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(ze);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(Be),r="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,r),i.default(this).data(Be,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Ue}},{key:"NAME",get:function(){return Fe}},{key:"DATA_KEY",get:function(){return Be}},{key:"Event",get:function(){return qe}},{key:"EVENT_KEY",get:function(){return Ve}},{key:"DefaultType",get:function(){return We}}]),e}($e);i.default.fn[Fe]=Ze._jQueryInterface,i.default.fn[Fe].Constructor=Ze,i.default.fn[Fe].noConflict=function(){return i.default.fn[Fe]=He,Ze._jQueryInterface};var Ke="scrollspy",Ye="bs.scrollspy",Xe="."+Ye,Qe=i.default.fn[Ke],Je="active",tn="activate"+Xe,en="scroll"+Xe,nn="load"+Xe+".data-api",rn="position",on=".nav, .list-group",an=".nav-link",sn=".list-group-item",un={offset:10,method:"auto",target:""},ln={offset:"number",method:"string",target:"(string|element)"},cn=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+an+","+this._config.target+" "+sn+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(en,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":rn,n="auto"===this._config.method?e:this._config.method,r=n===rn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=h.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+r,o]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,Ye),i.default(this._scrollElement).off(Xe),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=u({},un,"object"==typeof t&&t?t:{})).target&&h.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=h.getUID(Ke),i.default(t.target).attr("id",e)),t.target="#"+e}return h.typeCheckConfig(Ke,t,ln),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t li > .active",Tn=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(gn)||i.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,r=i.default(this._element).closest(".nav, .list-group")[0],o=h.getSelectorFromElement(this._element);if(r){var a="UL"===r.nodeName||"OL"===r.nodeName?An:Sn;n=(n=i.default.makeArray(i.default(r).find(a)))[n.length-1]}var s=i.default.Event(yn,{relatedTarget:this._element}),u=i.default.Event(bn,{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(u),!u.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,r);var l=function(){var e=i.default.Event(_n,{relatedTarget:t._element}),r=i.default.Event(xn,{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(r)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){i.default.removeData(this._element,hn),this._element=null},e._activate=function(t,e,n){var r=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(Sn):i.default(e).find(An))[0],a=n&&o&&i.default(o).hasClass(mn),s=function(){return r._transitionComplete(t,o,n)};if(o&&a){var u=h.getTransitionDurationFromElement(o);i.default(o).removeClass(vn).one(h.TRANSITION_END,s).emulateTransitionEnd(u)}else s()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(gn);var r=i.default(e.parentNode).find("> .dropdown-menu .active")[0];r&&i.default(r).removeClass(gn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(gn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),h.reflow(t),t.classList.contains(mn)&&t.classList.add(vn);var o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&i.default(o).hasClass("dropdown-menu")){var a=i.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));i.default(s).addClass(gn)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(hn);if(r||(r=new t(this),n.data(hn,r)),"string"==typeof e){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();i.default(document).on(wn,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),Tn._jQueryInterface.call(i.default(this),"show")})),i.default.fn[fn]=Tn._jQueryInterface,i.default.fn[fn].Constructor=Tn,i.default.fn[fn].noConflict=function(){return i.default.fn[fn]=pn,Tn._jQueryInterface};var kn="toast",Cn="bs.toast",En="."+Cn,Pn=i.default.fn[kn],On="hide",In="show",Mn="showing",Ln="click.dismiss"+En,Rn="hide"+En,Nn="hidden"+En,Dn="show"+En,jn="shown"+En,$n={animation:!0,autohide:!0,delay:500},Fn={animation:"boolean",autohide:"boolean",delay:"number"},Bn=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event(Dn);if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove(Mn),t._element.classList.add(In),i.default(t._element).trigger(jn),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(On),h.reflow(this._element),this._element.classList.add(Mn),this._config.animation){var r=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},e.hide=function(){if(this._element.classList.contains(In)){var t=i.default.Event(Rn);i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(In)&&this._element.classList.remove(In),i.default(this._element).off(Ln),i.default.removeData(this._element,Cn),this._element=null,this._config=null},e._getConfig=function(t){return t=u({},$n,i.default(this._element).data(),"object"==typeof t&&t?t:{}),h.typeCheckConfig(kn,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(Ln,'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(On),i.default(t._element).trigger(Nn)};if(this._element.classList.remove(In),this._config.animation){var n=h.getTransitionDurationFromElement(this._element);i.default(this._element).one(h.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data(Cn);if(r||(r=new t(this,"object"==typeof e&&e),n.data(Cn,r)),"string"==typeof e){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return Fn}},{key:"Default",get:function(){return $n}}]),t}();i.default.fn[kn]=Bn._jQueryInterface,i.default.fn[kn].Constructor=Bn,i.default.fn[kn].noConflict=function(){return i.default.fn[kn]=Pn,Bn._jQueryInterface},t.Alert=b,t.Button=L,t.Carousel=ot,t.Collapse=St,t.Dropdown=Ut,t.Modal=me,t.Popover=Ze,t.Scrollspy=cn,t.Tab=Tn,t.Toast=Bn,t.Tooltip=$e,t.Util=h,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(4692),n(6004))},7965:function(t,e,n){t.exports=function(){"use strict";var t,e,r={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t){return t||0===t},a=function(t){return"function"==typeof t},s=function(t){return Array.isArray(t)},u=function(t){return"string"==typeof t},l=function(t){return void 0===t},c=function(t){return void 0!==t},f=function(t){return 10*Math.ceil(t/10)},h=function(t){return Math.ceil(t)+.5},d=function(t){return t[1]-t[0]},p=function(t){return null==t||u(t)&&0===t.length||"object"===(void 0===t?"undefined":i(t))&&0===Object.keys(t).length},g=function(t){return!S.isEmpty(t)},m=function(t,e,n){return c(t[e])?t[e]:n},v=function(t,e){var n=!1;return Object.keys(t).forEach((function(r){t[r]===e&&(n=!0)})),n},y=function(t){return"string"==typeof t?t.replace(//g,">"):t},_=function(t){var e=t.getBoundingClientRect(),n=[t.pathSegList.getItem(0),t.pathSegList.getItem(1)];return{x:n[0].x,y:Math.min(n[0].y,n[1].y),width:e.width,height:e.height}};function b(t,e){var n=this;n.component=t,n.params=e||{},n.d3=t.d3,n.scale=n.d3.scale.linear(),n.range,n.orient="bottom",n.innerTickSize=6,n.outerTickSize=this.params.withOuterTick?6:0,n.tickPadding=3,n.tickValues=null,n.tickFormat,n.tickArguments,n.tickOffset=0,n.tickCulling=!0,n.tickCentered,n.tickTextCharSize,n.tickTextRotate=n.params.tickTextRotate,n.tickLength,n.axis=n.generateAxis()}(e=b.prototype).axisX=function(t,e,n){t.attr("transform",(function(t){return"translate("+Math.ceil(e(t)+n)+", 0)"}))},e.axisY=function(t,e){t.attr("transform",(function(t){return"translate(0,"+Math.ceil(e(t))+")"}))},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r},e.copyScale=function(){var t,e=this,n=e.scale.copy();return e.params.isCategory&&(t=e.scale.domain(),n.domain([t[0],t[1]-1])),n},e.textFormatted=function(t){var e=this.tickFormat?this.tickFormat(t):t;return void 0!==e?e:""},e.updateRange=function(){var t=this;return t.range=t.scale.rangeExtent?t.scale.rangeExtent():t.scaleExtent(t.scale.range()),t.range},e.updateTickTextCharSize=function(t){var e=this;if(e.tickTextCharSize)return e.tickTextCharSize;var n={h:11.5,w:5.5};return t.select("text").text((function(t){return e.textFormatted(t)})).each((function(t){var r=this.getBoundingClientRect(),i=e.textFormatted(t),o=r.height,a=i?r.width/i.length:void 0;o&&a&&(n.h=o,n.w=a)})).text(""),e.tickTextCharSize=n,n},e.transitionise=function(t){return this.params.withoutTransition?t:this.d3.transition(t)},e.isVertical=function(){return"left"===this.orient||"right"===this.orient},e.tspanData=function(t,e,n,r){var i=this,o=i.params.tickMultiline?i.splitTickText(t,n,r):[].concat(i.textFormatted(t));return i.params.tickMultiline&&i.params.tickMultilineMax>0&&(o=i.ellipsify(o,i.params.tickMultilineMax)),o.map((function(t){return{index:e,splitted:t,length:o.length}}))},e.splitTickText=function(t,e,n){var r,i,o,a=this,s=a.textFormatted(t),u=a.params.tickWidth;if("[object Array]"===Object.prototype.toString.call(s))return s;return(!u||u<=0)&&(u=a.isVertical()?95:a.params.isCategory?Math.ceil(n(e[1])-n(e[0]))-12:110),function t(e,n){i=void 0;for(var s=1;s=0;i--){var o=n[i].length;if(n[i]=n[i].substr(0,o-r).padEnd(o,"."),(r-=o)<=0)break}return n},e.updateTickLength=function(){var t=this;t.tickLength=Math.max(t.innerTickSize,0)+t.tickPadding},e.lineY2=function(t){var e=this,n=e.scale(t)+(e.tickCentered?0:e.tickOffset);return e.range[0]0?1:-1):this.tickLength},e.textTransform=function(){var t=this.tickTextRotate;return t?"rotate("+t+")":""},e.textTextAnchor=function(){var t=this.tickTextRotate;return t?t>0?"start":"end":"middle"},e.tspanDx=function(){var t=this.tickTextRotate;return t?8*Math.sin(Math.PI*(t/180)):0},e.tspanDy=function(t,e){var n=this,r=n.tickTextCharSize.h;return 0===e&&(r=n.isVertical()?-((t.length-1)*(n.tickTextCharSize.h/2)-3):".71em"),r},e.generateAxis=function(){var t=this,e=t.d3,n=t.params;function r(i){i.each((function(){var i,o,a,s=r.g=e.select(this),u=this.__chart__||t.scale,l=this.__chart__=t.copyScale(),c=t.tickValues?t.tickValues:t.generateTicks(l),f=s.selectAll(".tick").data(c,l),h=f.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),d=f.exit().remove(),p=t.transitionise(f).style("opacity",1);n.isCategory?(t.tickOffset=Math.ceil((l(1)-l(0))/2),o=t.tickCentered?0:t.tickOffset,a=t.tickCentered?t.tickOffset:0):t.tickOffset=o=0,h.append("line"),h.append("text"),t.updateRange(),t.updateTickLength(),t.updateTickTextCharSize(s.select(".tick"));var g=p.select("line"),m=p.select("text"),v=f.select("text").selectAll("tspan").data((function(e,n){return t.tspanData(e,n,c,l)}));v.enter().append("tspan"),v.exit().remove(),v.text((function(t){return t.splitted}));var y=s.selectAll(".domain").data([0]),_=(y.enter().append("path").attr("class","domain"),t.transitionise(y));switch(t.orient){case"bottom":i=t.axisX,g.attr("x1",o).attr("x2",o).attr("y2",(function(e,n){return t.lineY2(e,n)})),m.attr("x",0).attr("y",(function(e,n){return t.textY(e,n)})).attr("transform",(function(e,n){return t.textTransform(e,n)})).style("text-anchor",(function(e,n){return t.textTextAnchor(e,n)})),v.attr("x",0).attr("dy",(function(e,n){return t.tspanDy(e,n)})).attr("dx",(function(e,n){return t.tspanDx(e,n)})),_.attr("d","M"+t.range[0]+","+t.outerTickSize+"V0H"+t.range[1]+"V"+t.outerTickSize);break;case"top":i=t.axisX,g.attr("x1",o).attr("x2",o).attr("y2",(function(e,n){return-1*t.lineY2(e,n)})),m.attr("x",0).attr("y",(function(e,r){return-1*t.textY(e,r)-(n.isCategory?2:t.tickLength-2)})).attr("transform",(function(e,n){return t.textTransform(e,n)})).style("text-anchor",(function(e,n){return t.textTextAnchor(e,n)})),v.attr("x",0).attr("dy",(function(e,n){return t.tspanDy(e,n)})).attr("dx",(function(e,n){return t.tspanDx(e,n)})),_.attr("d","M"+t.range[0]+","+-t.outerTickSize+"V0H"+t.range[1]+"V"+-t.outerTickSize);break;case"left":i=t.axisY,g.attr("x2",-t.innerTickSize).attr("y1",a).attr("y2",a),m.attr("x",-t.tickLength).attr("y",t.tickOffset).style("text-anchor","end"),v.attr("x",-t.tickLength).attr("dy",(function(e,n){return t.tspanDy(e,n)})),_.attr("d","M"+-t.outerTickSize+","+t.range[0]+"H0V"+t.range[1]+"H"+-t.outerTickSize);break;case"right":i=t.axisY,g.attr("x2",t.innerTickSize).attr("y1",a).attr("y2",a),m.attr("x",t.tickLength).attr("y",t.tickOffset).style("text-anchor","start"),v.attr("x",t.tickLength).attr("dy",(function(e,n){return t.tspanDy(e,n)})),_.attr("d","M"+t.outerTickSize+","+t.range[0]+"H0V"+t.range[1]+"H"+t.outerTickSize)}if(l.rangeBand){var b=l,x=b.rangeBand()/2;u=l=function(t){return b(t)+x}}else u.rangeBand?u=l:d.call(i,l,t.tickOffset);h.call(i,u,t.tickOffset),p.call(i,l,t.tickOffset)}))}return r.scale=function(e){return arguments.length?(t.scale=e,r):t.scale},r.orient=function(e){return arguments.length?(t.orient=e in{top:1,right:1,bottom:1,left:1}?e+"":"bottom",r):t.orient},r.tickFormat=function(e){return arguments.length?(t.tickFormat=e,r):t.tickFormat},r.tickCentered=function(e){return arguments.length?(t.tickCentered=e,r):t.tickCentered},r.tickOffset=function(){return t.tickOffset},r.tickInterval=function(){var e;return(e=n.isCategory?2*t.tickOffset:(r.g.select("path.domain").node().getTotalLength()-2*t.outerTickSize)/r.g.selectAll("line").size())==1/0?0:e},r.ticks=function(){return arguments.length?(t.tickArguments=arguments,r):t.tickArguments},r.tickCulling=function(e){return arguments.length?(t.tickCulling=e,r):t.tickCulling},r.tickValues=function(e){if("function"==typeof e)t.tickValues=function(){return e(t.scale.domain())};else{if(!arguments.length)return t.tickValues;t.tickValues=e}return r},r};var x=function(n){function r(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i={fn:t,internal:{fn:e}},o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,n,"axis",i));return o.d3=n.d3,o.internal=b,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r}((function(t,e,n){this.owner=t,A.chart.internal[e]=n}));(t=x.prototype).init=function(){var t=this.owner,e=t.config,n=t.main;t.axes.x=n.append("g").attr("class",r.axis+" "+r.axisX).attr("clip-path",e.axis_x_inner?"":t.clipPathForXAxis).attr("transform",t.getTranslate("x")).style("visibility",e.axis_x_show?"visible":"hidden"),t.axes.x.append("text").attr("class",r.axisXLabel).attr("transform",e.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),t.axes.y=n.append("g").attr("class",r.axis+" "+r.axisY).attr("clip-path",e.axis_y_inner?"":t.clipPathForYAxis).attr("transform",t.getTranslate("y")).style("visibility",e.axis_y_show?"visible":"hidden"),t.axes.y.append("text").attr("class",r.axisYLabel).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),t.axes.y2=n.append("g").attr("class",r.axis+" "+r.axisY2).attr("transform",t.getTranslate("y2")).style("visibility",e.axis_y2_show?"visible":"hidden"),t.axes.y2.append("text").attr("class",r.axisY2Label).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},t.getXAxis=function(t,e,n,r,i,o,a){var s=this.owner,u=s.config,l={isCategory:s.isCategorized(),withOuterTick:i,tickMultiline:u.axis_x_tick_multiline,tickMultilineMax:u.axis_x_tick_multiline?Number(u.axis_x_tick_multilineMax):0,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:o},c=new this.internal(this,l).axis.scale(t).orient(e);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map((function(t){return s.parseDate(t)}))),c.tickFormat(n).tickValues(r),s.isCategorized()&&(c.tickCentered(u.axis_x_tick_centered),p(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),c},t.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config;return(i.axis_x_tick_fit||i.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(t),i.axis_x_tick_count,r.isTimeSeries())),e?e.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},t.getYAxis=function(t,e,n,r,i,o,a){var s=this.owner,u=s.config,l={withOuterTick:i,withoutTransition:o,tickTextRotate:a?0:u.axis_y_tick_rotate},c=new this.internal(this,l).axis.scale(t).orient(e).tickFormat(n);return s.isTimeSeriesY()?c.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):c.tickValues(r),c},t.getId=function(t){var e=this.owner.config;return t in e.data_axes?e.data_axes[t]:"y"},t.getXAxisTickFormat=function(){var t=this.owner,e=t.config,n=t.isTimeSeries()?t.defaultAxisTimeFormat:t.isCategorized()?t.categoryName:function(t){return t<0?t.toFixed(0):t};return e.axis_x_tick_format&&(a(e.axis_x_tick_format)?n=e.axis_x_tick_format:t.isTimeSeries()&&(n=function(n){return n?t.axisTimeFormat(e.axis_x_tick_format)(n):""})),a(n)?function(e){return n.call(t,e)}:n},t.getTickValues=function(t,e){return t||(e?e.tickValues():void 0)},t.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},t.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},t.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},t.getLabelOptionByAxisId=function(t){var e,n=this.owner.config;return"y"===t?e=n.axis_y_label:"y2"===t?e=n.axis_y2_label:"x"===t&&(e=n.axis_x_label),e},t.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return u(e)?e:e?e.text:null},t.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);u(r)?"y"===t?n.axis_y_label=e:"y2"===t?n.axis_y2_label=e:"x"===t&&(n.axis_x_label=e):r&&(r.text=e)},t.getLabelPosition=function(t,e){var n=this.getLabelOptionByAxisId(t),r=n&&"object"===(void 0===n?"undefined":i(n))&&n.position?n.position:e;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},t.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},t.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},t.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},t.getLabelPositionById=function(t){return"y2"===t?this.getY2AxisLabelPosition():"y"===t?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},t.textForXAxisLabel=function(){return this.getLabelText("x")},t.textForYAxisLabel=function(){return this.getLabelText("y")},t.textForY2AxisLabel=function(){return this.getLabelText("y2")},t.xForAxisLabel=function(t,e){var n=this.owner;return t?e.isLeft?0:e.isCenter?n.width/2:n.width:e.isBottom?-n.height:e.isMiddle?-n.height/2:0},t.dxForAxisLabel=function(t,e){return t?e.isLeft?"0.5em":e.isRight?"-0.5em":"0":e.isTop?"-0.5em":e.isBottom?"0.5em":"0"},t.textAnchorForAxisLabel=function(t,e){return t?e.isLeft?"start":e.isCenter?"middle":"end":e.isBottom?"start":e.isMiddle?"middle":"end"},t.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},t.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},t.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},t.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},t.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},t.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},t.dyForXAxisLabel=function(){var t=this.owner,e=t.config,n=this.getXAxisLabelPosition();return e.axis_rotated?n.isInner?"1.2em":-25-(t.config.axis_x_inner?0:this.getMaxTickWidth("x")):n.isInner?"-0.5em":e.axis_x_height?e.axis_x_height-10:"3em"},t.dyForYAxisLabel=function(){var t=this.owner,e=this.getYAxisLabelPosition();return t.config.axis_rotated?e.isInner?"-0.5em":"3em":e.isInner?"1.2em":-10-(t.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},t.dyForY2AxisLabel=function(){var t=this.owner,e=this.getY2AxisLabelPosition();return t.config.axis_rotated?e.isInner?"1.2em":"-2.2em":e.isInner?"-0.5em":15+(t.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},t.textAnchorForXAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(!t.config.axis_rotated,this.getXAxisLabelPosition())},t.textAnchorForYAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getYAxisLabelPosition())},t.textAnchorForY2AxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getY2AxisLabelPosition())},t.getMaxTickWidth=function(t,e){var n,r,i,o,a=this.owner,s=a.config,u=0;return e&&a.currentMaxTickWidths[t]||(a.svg&&(n=a.filterTargetsToShow(a.data.targets),"y"===t?(r=a.y.copy().domain(a.getYDomain(n,"y")),i=this.getYAxis(r,a.yOrient,s.axis_y_tick_format,a.yAxisTickValues,!1,!0,!0)):"y2"===t?(r=a.y2.copy().domain(a.getYDomain(n,"y2")),i=this.getYAxis(r,a.y2Orient,s.axis_y2_tick_format,a.y2AxisTickValues,!1,!0,!0)):(r=a.x.copy().domain(a.getXDomain(n)),i=this.getXAxis(r,a.xOrient,a.xAxisTickFormat,a.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,i)),(o=a.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(i).each((function(){a.d3.select(this).selectAll("text").each((function(){var t=this.getBoundingClientRect();u2){for(s=r-2,i=t[0],u=((o=t[t.length-1])-i)/(s+1),f=[i],l=0;l0&&t(e[i],n[i],r)}))}(w,this,this)}function k(t){var e=this;e.d3=window.d3?window.d3:n(4143),e.api=t,e.config=e.getDefaultConfig(),e.data={},e.cache={},e.axes={}}return A.generate=function(t){return new T(t)},A.chart={fn:T.prototype,internal:{fn:k.prototype}},w=A.chart.fn,(S=A.chart.internal.fn).beforeInit=function(){},S.afterInit=function(){},S.init=function(){var t=this,e=t.config;if(t.initParams(),e.data_url)t.convertUrlToData(e.data_url,e.data_mimeType,e.data_headers,e.data_keys,t.initWithData);else if(e.data_json)t.initWithData(t.convertJsonToData(e.data_json,e.data_keys));else if(e.data_rows)t.initWithData(t.convertRowsToData(e.data_rows));else{if(!e.data_columns)throw Error("url or json or rows or columns is required.");t.initWithData(t.convertColumnsToData(e.data_columns))}},S.initParams=function(){var t=this,e=t.d3,n=t.config;t.clipId="c3-"+ +new Date+"-clip",t.clipIdForXAxis=t.clipId+"-xaxis",t.clipIdForYAxis=t.clipId+"-yaxis",t.clipIdForGrid=t.clipId+"-grid",t.clipIdForSubchart=t.clipId+"-subchart",t.clipPath=t.getClipPath(t.clipId),t.clipPathForXAxis=t.getClipPath(t.clipIdForXAxis),t.clipPathForYAxis=t.getClipPath(t.clipIdForYAxis),t.clipPathForGrid=t.getClipPath(t.clipIdForGrid),t.clipPathForSubchart=t.getClipPath(t.clipIdForSubchart),t.dragStart=null,t.dragging=!1,t.flowing=!1,t.cancelClick=!1,t.mouseover=!1,t.transiting=!1,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.dataTimeFormat=n.data_xLocaltime?e.time.format:e.time.format.utc,t.axisTimeFormat=n.axis_x_localtime?e.time.format:e.time.format.utc,t.defaultAxisTimeFormat=t.axisTimeFormat.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%-m/%-d",function(t){return t.getDay()&&1!==t.getDate()}],["%-m/%-d",function(t){return 1!==t.getDate()}],["%-m/%-d",function(t){return t.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),t.hiddenTargetIds=[],t.hiddenLegendIds=[],t.focusedTargetIds=[],t.defocusedTargetIds=[],t.xOrient=n.axis_rotated?n.axis_x_inner?"right":"left":n.axis_x_inner?"top":"bottom",t.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",t.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",t.subXOrient=n.axis_rotated?"left":"bottom",t.isLegendRight="right"===n.legend_position,t.isLegendInset="inset"===n.legend_position,t.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,t.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,t.legendStep=0,t.legendItemWidth=0,t.legendItemHeight=0,t.currentMaxTickWidths={x:0,y:0,y2:0},t.rotated_padding_left=30,t.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,t.rotated_padding_top=5,t.withoutFadeIn={},t.intervalForObserveInserted=void 0,t.axes.subx=e.selectAll([])},S.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},S.initWithData=function(t){var e,n,i=this,o=i.d3,a=i.config,s=!0;i.axis=new x(i),i.initPie&&i.initPie(),i.initBrush&&i.initBrush(),i.initZoom&&i.initZoom(),a.bindto?"function"==typeof a.bindto.node?i.selectChart=a.bindto:i.selectChart=o.select(a.bindto):i.selectChart=o.selectAll([]),i.selectChart.empty()&&(i.selectChart=o.select(document.createElement("div")).style("opacity",0),i.observeInserted(i.selectChart),s=!1),i.selectChart.html("").classed("c3",!0),i.data.xs={},i.data.targets=i.convertDataToTargets(t),a.data_filter&&(i.data.targets=i.data.targets.filter(a.data_filter)),a.data_hide&&i.addHiddenTargetIds(!0===a.data_hide?i.mapToIds(i.data.targets):a.data_hide),a.legend_hide&&i.addHiddenLegendIds(!0===a.legend_hide?i.mapToIds(i.data.targets):a.legend_hide),i.updateSizes(),i.updateScales(),i.x.domain(o.extent(i.getXDomain(i.data.targets))),i.y.domain(i.getYDomain(i.data.targets,"y")),i.y2.domain(i.getYDomain(i.data.targets,"y2")),i.subX.domain(i.x.domain()),i.subY.domain(i.y.domain()),i.subY2.domain(i.y2.domain()),i.orgXDomain=i.x.domain(),i.brush&&i.brush.scale(i.subX),a.zoom_enabled&&i.zoom.scale(i.x),i.svg=i.selectChart.append("svg").style("overflow","hidden").on("mouseenter",(function(){return a.onmouseover.call(i)})).on("mouseleave",(function(){return a.onmouseout.call(i)})),i.config.svg_classname&&i.svg.attr("class",i.config.svg_classname),e=i.svg.append("defs"),i.clipChart=i.appendClip(e,i.clipId),i.clipXAxis=i.appendClip(e,i.clipIdForXAxis),i.clipYAxis=i.appendClip(e,i.clipIdForYAxis),i.clipGrid=i.appendClip(e,i.clipIdForGrid),i.clipSubchart=i.appendClip(e,i.clipIdForSubchart),i.updateSvgSize(),n=i.main=i.svg.append("g").attr("transform",i.getTranslate("main")),i.initSubchart&&i.initSubchart(),i.initTooltip&&i.initTooltip(),i.initLegend&&i.initLegend(),i.initTitle&&i.initTitle(),n.append("text").attr("class",r.text+" "+r.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),i.initRegion(),i.initGrid(),n.append("g").attr("clip-path",i.clipPath).attr("class",r.chart),a.grid_lines_front&&i.initGridLines(),i.initEventRect(),i.initChartElements(),n.insert("rect",a.zoom_privileged?null:"g."+r.regions).attr("class",r.zoomRect).attr("width",i.width).attr("height",i.height).style("opacity",0).on("dblclick.zoom",null),a.axis_x_extent&&i.brush.extent(i.getDefaultExtent()),i.axis.init(),i.updateTargets(i.data.targets),s&&(i.updateDimension(),i.config.oninit.call(i),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),i.bindResize(),i.api.element=i.selectChart.node()},S.smoothLines=function(t,e){var n=this;"grid"===e&&t.each((function(){var t=n.d3.select(this),e=t.attr("x1"),r=t.attr("x2"),i=t.attr("y1"),o=t.attr("y2");t.attr({x1:Math.ceil(e),x2:Math.ceil(r),y1:Math.ceil(i),y2:Math.ceil(o)})}))},S.updateSizes=function(){var t=this,e=t.config,n=t.legend?t.getLegendHeight():0,r=t.legend?t.getLegendWidth():0,i=t.isLegendRight||t.isLegendInset?0:n,o=t.hasArcType(),a=e.axis_rotated||o?0:t.getHorizontalAxisHeight("x"),s=e.subchart_show&&!o?e.subchart_size_height+a:0;t.currentWidth=t.getCurrentWidth(),t.currentHeight=t.getCurrentHeight(),t.margin=e.axis_rotated?{top:t.getHorizontalAxisHeight("y2")+t.getCurrentPaddingTop(),right:o?0:t.getCurrentPaddingRight(),bottom:t.getHorizontalAxisHeight("y")+i+t.getCurrentPaddingBottom(),left:s+(o?0:t.getCurrentPaddingLeft())}:{top:4+t.getCurrentPaddingTop(),right:o?0:t.getCurrentPaddingRight(),bottom:a+s+i+t.getCurrentPaddingBottom(),left:o?0:t.getCurrentPaddingLeft()},t.margin2=e.axis_rotated?{top:t.margin.top,right:NaN,bottom:20+i,left:t.rotated_padding_left}:{top:t.currentHeight-s-i,right:NaN,bottom:a+i,left:t.margin.left},t.margin3={top:0,right:NaN,bottom:0,left:0},t.updateSizeForLegend&&t.updateSizeForLegend(n,r),t.width=t.currentWidth-t.margin.left-t.margin.right,t.height=t.currentHeight-t.margin.top-t.margin.bottom,t.width<0&&(t.width=0),t.height<0&&(t.height=0),t.width2=e.axis_rotated?t.margin.left-t.rotated_padding_left-t.rotated_padding_right:t.width,t.height2=e.axis_rotated?t.height:t.currentHeight-t.margin2.top-t.margin2.bottom,t.width2<0&&(t.width2=0),t.height2<0&&(t.height2=0),t.arcWidth=t.width-(t.isLegendRight?r+10:0),t.arcHeight=t.height-(t.isLegendRight?0:10),t.hasType("gauge")&&!e.gauge_fullCircle&&(t.arcHeight+=t.height-t.getGaugeLabelHeight()),t.updateRadius&&t.updateRadius(),t.isLegendRight&&o&&(t.margin3.left=t.arcWidth/2+1.1*t.radiusExpanded)},S.updateTargets=function(t){var e=this;e.updateTargetsForText(t),e.updateTargetsForBar(t),e.updateTargetsForLine(t),e.hasArcType()&&e.updateTargetsForArc&&e.updateTargetsForArc(t),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t),e.showTargets()},S.showTargets=function(){var t=this;t.svg.selectAll("."+r.target).filter((function(e){return t.isTargetToShow(e.id)})).transition().duration(t.config.transition_duration).style("opacity",1)},S.redraw=function(t,e){var n,i,o,a,s,u,l,c,f,h,d,p,g,v,y,_,b,x,w,S,A,T,k,C,E,P,O,I,M,L=this,R=L.main,N=L.d3,D=L.config,j=L.getShapeIndices(L.isAreaType),$=L.getShapeIndices(L.isBarType),F=L.getShapeIndices(L.isLineType),B=L.hasArcType(),V=L.filterTargetsToShow(L.data.targets),H=L.xv.bind(L);if(n=m(t=t||{},"withY",!0),i=m(t,"withSubchart",!0),o=m(t,"withTransition",!0),u=m(t,"withTransform",!1),l=m(t,"withUpdateXDomain",!1),c=m(t,"withUpdateOrgXDomain",!1),f=m(t,"withTrimXDomain",!0),g=m(t,"withUpdateXAxis",l),h=m(t,"withLegend",!1),d=m(t,"withEventRect",!0),p=m(t,"withDimension",!0),a=m(t,"withTransitionForExit",o),s=m(t,"withTransitionForAxis",o),w=o?D.transition_duration:0,S=a?w:0,A=s?w:0,e=e||L.axis.generateTransitions(A),h&&D.legend_show?L.updateLegend(L.mapToIds(L.data.targets),t,e):p&&L.updateDimension(!0),L.isCategorized()&&0===V.length&&L.x.domain([0,L.axes.x.selectAll(".tick").size()]),V.length?(L.updateXDomain(V,l,c,f),D.axis_x_tick_values||(C=L.axis.updateXAxisTickValues(V))):(L.xAxis.tickValues([]),L.subXAxis.tickValues([])),D.zoom_rescale&&!t.flow&&(O=L.x.orgDomain()),L.y.domain(L.getYDomain(V,"y",O)),L.y2.domain(L.getYDomain(V,"y2",O)),!D.axis_y_tick_values&&D.axis_y_tick_count&&L.yAxis.tickValues(L.axis.generateTickValues(L.y.domain(),D.axis_y_tick_count)),!D.axis_y2_tick_values&&D.axis_y2_tick_count&&L.y2Axis.tickValues(L.axis.generateTickValues(L.y2.domain(),D.axis_y2_tick_count)),L.axis.redraw(e,B),L.axis.updateLabels(o),(l||g)&&V.length)if(D.axis_x_tick_culling&&C){for(E=1;E=0&&N.select(this).style("display",e%P?"none":"block")}))}else L.svg.selectAll("."+r.axisX+" .tick text").style("display","block");v=L.generateDrawArea?L.generateDrawArea(j,!1):void 0,y=L.generateDrawBar?L.generateDrawBar($):void 0,_=L.generateDrawLine?L.generateDrawLine(F,!1):void 0,b=L.generateXYForText(j,$,F,!0),x=L.generateXYForText(j,$,F,!1),n&&(L.subY.domain(L.getYDomain(V,"y")),L.subY2.domain(L.getYDomain(V,"y2"))),L.updateXgridFocus(),R.select("text."+r.text+"."+r.empty).attr("x",L.width/2).attr("y",L.height/2).text(D.data_empty_label_text).transition().style("opacity",V.length?0:1),L.updateGrid(w),L.updateRegion(w),L.updateBar(S),L.updateLine(S),L.updateArea(S),L.updateCircle(),L.hasDataLabel()&&L.updateText(S),L.redrawTitle&&L.redrawTitle(),L.redrawArc&&L.redrawArc(w,S,u),L.redrawSubchart&&L.redrawSubchart(i,e,w,S,j,$,F),R.selectAll("."+r.selectedCircles).filter(L.isBarType.bind(L)).selectAll("circle").remove(),D.interaction_enabled&&!t.flow&&d&&(L.redrawEventRect(),L.updateZoom&&L.updateZoom()),L.updateCircleY(),I=(L.config.axis_rotated?L.circleY:L.circleX).bind(L),M=(L.config.axis_rotated?L.circleX:L.circleY).bind(L),t.flow&&(k=L.generateFlow({targets:V,flow:t.flow,duration:t.flow.duration,drawBar:y,drawLine:_,drawArea:v,cx:I,cy:M,xv:H,xForText:b,yForText:x})),(w||k)&&L.isTabVisible()?N.transition().duration(w).each((function(){var e=[];[L.redrawBar(y,!0),L.redrawLine(_,!0),L.redrawArea(v,!0),L.redrawCircle(I,M,!0),L.redrawText(b,x,t.flow,!0),L.redrawRegion(!0),L.redrawGrid(!0)].forEach((function(t){t.forEach((function(t){e.push(t)}))})),T=L.generateWait(),e.forEach((function(t){T.add(t)}))})).call(T,(function(){k&&k(),D.onrendered&&D.onrendered.call(L)})):(L.redrawBar(y),L.redrawLine(_),L.redrawArea(v),L.redrawCircle(I,M),L.redrawText(b,x,t.flow),L.redrawRegion(),L.redrawGrid(),D.onrendered&&D.onrendered.call(L)),L.mapToIds(L.data.targets).forEach((function(t){L.withoutFadeIn[t]=!0}))},S.updateAndRedraw=function(t){var e,n=this,r=n.config;(t=t||{}).withTransition=m(t,"withTransition",!0),t.withTransform=m(t,"withTransform",!1),t.withLegend=m(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=m(t,"withTransitionForTransform",t.withTransition),n.updateSizes(),t.withLegend&&r.legend_show||(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},S.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},S.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},S.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},S.isCustomX=function(){var t=this.config;return!this.isTimeSeries()&&(t.data_x||g(t.data_xs))},S.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},S.getTranslate=function(t){var e,n,r=this,i=r.config;return"main"===t?(e=h(r.margin.left),n=h(r.margin.top)):"context"===t?(e=h(r.margin2.left),n=h(r.margin2.top)):"legend"===t?(e=r.margin3.left,n=r.margin3.top):"x"===t?(e=0,n=i.axis_rotated?0:r.height):"y"===t?(e=0,n=i.axis_rotated?r.height:0):"y2"===t?(e=i.axis_rotated?0:r.width,n=i.axis_rotated?1:0):"subx"===t?(e=0,n=i.axis_rotated?0:r.height2):"arc"===t&&(e=r.arcWidth/2,n=r.arcHeight/2-(r.hasType("gauge")?6:0)),"translate("+e+","+n+")"},S.initialOpacity=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?1:0},S.initialOpacityForCircle=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?this.opacityForCircle(t):0},S.opacityForCircle=function(t){var e=(a(this.config.point_show)?this.config.point_show(t):this.config.point_show)?1:0;return o(t.value)?this.isScatterType(t)?.5:e:0},S.opacityForText=function(){return this.hasDataLabel()?1:0},S.xx=function(t){return t?this.x(t.x):null},S.xv=function(t){var e=this,n=t.value;return e.isTimeSeries()?n=e.parseDate(t.value):e.isCategorized()&&"string"==typeof t.value&&(n=e.config.axis_x_categories.indexOf(t.value)),Math.ceil(e.x(n))},S.yv=function(t){var e=t.axis&&"y2"===t.axis?this.y2:this.y;return Math.ceil(e(t.value))},S.subxx=function(t){return t?this.subX(t.x):null},S.transformMain=function(t,e){var n,i,o,a=this;e&&e.axisX?n=e.axisX:(n=a.main.select("."+r.axisX),t&&(n=n.transition())),e&&e.axisY?i=e.axisY:(i=a.main.select("."+r.axisY),t&&(i=i.transition())),e&&e.axisY2?o=e.axisY2:(o=a.main.select("."+r.axisY2),t&&(o=o.transition())),(t?a.main.transition():a.main).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),i.attr("transform",a.getTranslate("y")),o.attr("transform",a.getTranslate("y2")),a.main.select("."+r.chartArcs).attr("transform",a.getTranslate("arc"))},S.transformAll=function(t,e){var n=this;n.transformMain(t,e),n.config.subchart_show&&n.transformContext(t,e),n.legend&&n.transformLegend(t)},S.updateSvgSize=function(){var t=this,e=t.svg.select(".c3-brush .background");t.svg.attr("width",t.currentWidth).attr("height",t.currentHeight),t.svg.selectAll(["#"+t.clipId,"#"+t.clipIdForGrid]).select("rect").attr("width",t.width).attr("height",t.height),t.svg.select("#"+t.clipIdForXAxis).select("rect").attr("x",t.getXAxisClipX.bind(t)).attr("y",t.getXAxisClipY.bind(t)).attr("width",t.getXAxisClipWidth.bind(t)).attr("height",t.getXAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForYAxis).select("rect").attr("x",t.getYAxisClipX.bind(t)).attr("y",t.getYAxisClipY.bind(t)).attr("width",t.getYAxisClipWidth.bind(t)).attr("height",t.getYAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForSubchart).select("rect").attr("width",t.width).attr("height",e.size()?e.attr("height"):0),t.svg.select("."+r.zoomRect).attr("width",t.width).attr("height",t.height),t.selectChart.style("max-height",t.currentHeight+"px")},S.updateDimension=function(t){var e=this;t||(e.config.axis_rotated?(e.axes.x.call(e.xAxis),e.axes.subx.call(e.subXAxis)):(e.axes.y.call(e.yAxis),e.axes.y2.call(e.y2Axis))),e.updateSizes(),e.updateScales(),e.updateSvgSize(),e.transformAll(!1)},S.observeInserted=function(t){var e,n=this;"undefined"!=typeof MutationObserver?(e=new MutationObserver((function(r){r.forEach((function(r){"childList"===r.type&&r.previousSibling&&(e.disconnect(),n.intervalForObserveInserted=window.setInterval((function(){t.node().parentNode&&(window.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),t.transition().style("opacity",1))}),10))}))}))).observe(t.node(),{attributes:!0,childList:!0,characterData:!0}):window.console.error("MutationObserver not defined.")},S.bindResize=function(){var t=this,e=t.config;if(t.resizeFunction=t.generateResize(),t.resizeFunction.add((function(){e.onresize.call(t)})),e.resize_auto&&t.resizeFunction.add((function(){void 0!==t.resizeTimeout&&window.clearTimeout(t.resizeTimeout),t.resizeTimeout=window.setTimeout((function(){delete t.resizeTimeout,t.api.flush()}),100)})),t.resizeFunction.add((function(){e.onresized.call(t)})),t.resizeIfElementDisplayed=function(){null!=t.api&&t.api.element.offsetParent&&t.resizeFunction()},window.attachEvent)window.attachEvent("onresize",t.resizeIfElementDisplayed);else if(window.addEventListener)window.addEventListener("resize",t.resizeIfElementDisplayed,!1);else{var n=window.onresize;n?n.add&&n.remove||(n=t.generateResize()).add(window.onresize):n=t.generateResize(),n.add(t.resizeFunction),window.onresize=function(){t.api.element.offsetParent&&n()}}},S.generateResize=function(){var t=[];function e(){t.forEach((function(t){t()}))}return e.add=function(e){t.push(e)},e.remove=function(e){for(var n=0;ne.getTotalLength())break;n--}while(n>0);return n})),"SVGPathSegList"in window||(window.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(this._pathElement){var e=!1;t.forEach((function(t){"d"==t.attributeName&&(e=!0)})),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(t){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(t){t._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},window.SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);var e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},window.SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList._pathSegArrayAsString=function(t){var e="",n=!0;return t.forEach((function(t){n?(n=!1,e+=t._asPathString()):e+=" "+t._asPathString()})),e},window.SVGPathSegList.prototype._parsePath=function(t){if(!t||0==t.length)return[];var e=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(t){this.pathSegList.push(t)};var r=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||"\t"==t||"\r"==t||"\f"==t)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&t<="9")&&e!=window.SVGPathSeg.PATHSEG_CLOSEPATH?e==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:e==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:e:window.SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return t==window.SVGPathSeg.PATHSEG_MOVETO_ABS||t==window.SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var t=0,e=0,n=1,r=0,i=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,l=1;u>=s;)e+=l*(this._string.charAt(u--)-"0"),l*=10;if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var c=e+r;if(c*=i,t&&(c*=Math.pow(10,o*t)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),c}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var t=!1,e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t}},r.prototype.parseSegment=function(){var t=this._string[this._currentIndex],n=this._pathSegTypeFromChar(t);if(n==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((n=this._nextCommandHelper(t,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(e);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(e,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(e,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(e,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(e,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(e,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(e,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var i=new n,o=new r(t);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){var a=o.parseSegment();if(!a)return[];i.appendSegment(a)}return i.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t|=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))}),w.axis=function(){},w.axis.labels=function(t){var e=this.internal;arguments.length&&(Object.keys(t).forEach((function(n){e.axis.setLabelText(n,t[n])})),e.axis.updateLabels())},w.axis.max=function(t){var e=this.internal,n=e.config;if(!arguments.length)return{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max};"object"===(void 0===t?"undefined":i(t))?(o(t.x)&&(n.axis_x_max=t.x),o(t.y)&&(n.axis_y_max=t.y),o(t.y2)&&(n.axis_y2_max=t.y2)):n.axis_y_max=n.axis_y2_max=t,e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},w.axis.min=function(t){var e=this.internal,n=e.config;if(!arguments.length)return{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min};"object"===(void 0===t?"undefined":i(t))?(o(t.x)&&(n.axis_x_min=t.x),o(t.y)&&(n.axis_y_min=t.y),o(t.y2)&&(n.axis_y2_min=t.y2)):n.axis_y_min=n.axis_y2_min=t,e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},w.axis.range=function(t){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};c(t.max)&&this.axis.max(t.max),c(t.min)&&this.axis.min(t.min)},w.category=function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},w.categories=function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories},w.resize=function(t){var e=this.internal.config;e.size_width=t?t.width:null,e.size_height=t?t.height:null,this.flush()},w.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},w.destroy=function(){var t=this.internal;if(window.clearInterval(t.intervalForObserveInserted),void 0!==t.resizeTimeout&&window.clearTimeout(t.resizeTimeout),window.detachEvent)window.detachEvent("onresize",t.resizeIfElementDisplayed);else if(window.removeEventListener)window.removeEventListener("resize",t.resizeIfElementDisplayed);else{var e=window.onresize;e&&e.add&&e.remove&&e.remove(t.resizeFunction)}return t.resizeFunction.remove(),t.selectChart.classed("c3",!1).html(""),Object.keys(t).forEach((function(e){t[e]=null})),null},w.color=function(t){return this.internal.color(t)},w.data=function(t){var e=this.internal.data.targets;return void 0===t?e:e.filter((function(e){return[].concat(t).indexOf(e.id)>=0}))},w.data.shown=function(t){return this.internal.filterTargetsToShow(this.data(t))},w.data.values=function(t){var e,n=null;return t&&(n=(e=this.data(t))[0]?e[0].values.map((function(t){return t.value})):null),n},w.data.names=function(t){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",t)},w.data.colors=function(t){return this.internal.updateDataAttributes("colors",t)},w.data.axes=function(t){return this.internal.updateDataAttributes("axes",t)},w.flow=function(t){var e,n,r,i,a,s,u,l=this.internal,f=[],h=l.getMaxDataCount(),d=0,p=0;if(t.json)n=l.convertJsonToData(t.json,t.keys);else if(t.rows)n=l.convertRowsToData(t.rows);else{if(!t.columns)return;n=l.convertColumnsToData(t.columns)}e=l.convertDataToTargets(n,!0),l.data.targets.forEach((function(t){var n,r,i=!1;for(n=0;n1?i.values[i.values.length-1].x-a.x:a.x-l.getXDomain(l.data.targets)[0]:1,r=[a.x-s,a.x],l.updateXDomain(null,!0,!0,!1,r)),l.updateTargets(l.data.targets),l.redraw({flow:{index:a.index,length:d,duration:o(t.duration)?t.duration:l.config.transition_duration,done:t.done,orgDataCount:h},withLegend:!0,withTransition:h>1,withTrimXDomain:!1,withUpdateXAxis:!0})},S.generateFlow=function(t){var e=this,n=e.config,i=e.d3;return function(){var o,a,s,u,l=t.targets,c=t.flow,f=t.drawBar,h=t.drawLine,p=t.drawArea,g=t.cx,m=t.cy,v=t.xv,y=t.xForText,_=t.yForText,b=t.duration,x=c.index,w=c.length,S=e.getValueOnIndex(e.data.targets[0].values,x),A=e.getValueOnIndex(e.data.targets[0].values,x+w),T=e.x.domain(),k=c.duration||b,C=c.done||function(){},E=e.generateWait(),P=e.xgrid||i.selectAll([]),O=e.xgridLines||i.selectAll([]),I=e.mainRegion||i.selectAll([]),M=e.mainText||i.selectAll([]),L=e.mainBar||i.selectAll([]),R=e.mainLine||i.selectAll([]),N=e.mainArea||i.selectAll([]),D=e.mainCircle||i.selectAll([]);e.flowing=!0,e.data.targets.forEach((function(t){t.values.splice(0,w)})),s=e.updateXDomain(l,!0,!0),e.updateXGrid&&e.updateXGrid(!0),c.orgDataCount?o=1===c.orgDataCount||(S&&S.x)===(A&&A.x)||e.isTimeSeries()?e.x(T[0])-e.x(s[0]):e.x(S.x)-e.x(A.x):1!==e.data.targets[0].values.length?o=e.x(T[0])-e.x(s[0]):e.isTimeSeries()?(S=e.getValueOnIndex(e.data.targets[0].values,0),A=e.getValueOnIndex(e.data.targets[0].values,e.data.targets[0].values.length-1),o=e.x(S.x)-e.x(A.x)):o=d(s)/2,u=d(T)/d(s),a="translate("+o+",0) scale("+u+",1)",e.hideXGridFocus(),i.transition().ease("linear").duration(k).each((function(){E.add(e.axes.x.transition().call(e.xAxis)),E.add(L.transition().attr("transform",a)),E.add(R.transition().attr("transform",a)),E.add(N.transition().attr("transform",a)),E.add(D.transition().attr("transform",a)),E.add(M.transition().attr("transform",a)),E.add(I.filter(e.isRegionOnX).transition().attr("transform",a)),E.add(P.transition().attr("transform",a)),E.add(O.transition().attr("transform",a))})).call(E,(function(){var t,i=[],o=[],a=[];if(w){for(t=0;t=0&&(e=!0)})),!e)})),a.regions},w.selected=function(t){var e=this.internal,n=e.d3;return n.merge(e.main.selectAll("."+r.shapes+e.getTargetSelectorSuffix(t)).selectAll("."+r.shape).filter((function(){return n.select(this).classed(r.SELECTED)})).map((function(t){return t.map((function(t){var e=t.__data__;return e.data?e.data:e}))})))},w.select=function(t,e,n){var i=this.internal,o=i.d3,a=i.config;a.data_selection_enabled&&i.main.selectAll("."+r.shapes).selectAll("."+r.shape).each((function(s,u){var l=o.select(this),f=s.data?s.data.id:s.id,h=i.getToggle(this,s).bind(i),d=a.data_selection_grouped||!t||t.indexOf(f)>=0,p=!e||e.indexOf(u)>=0,g=l.classed(r.SELECTED);l.classed(r.line)||l.classed(r.area)||(d&&p?a.data_selection_isselectable(s)&&!g&&h(!0,l.classed(r.SELECTED,!0),s,u):c(n)&&n&&g&&h(!1,l.classed(r.SELECTED,!1),s,u))}))},w.unselect=function(t,e){var n=this.internal,i=n.d3,o=n.config;o.data_selection_enabled&&n.main.selectAll("."+r.shapes).selectAll("."+r.shape).each((function(a,s){var u=i.select(this),l=a.data?a.data.id:a.id,c=n.getToggle(this,a).bind(n),f=o.data_selection_grouped||!t||t.indexOf(l)>=0,h=!e||e.indexOf(s)>=0,d=u.classed(r.SELECTED);u.classed(r.line)||u.classed(r.area)||f&&h&&o.data_selection_isselectable(a)&&d&&c(!1,u.classed(r.SELECTED,!1),a,s)}))},w.show=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.removeHiddenTargetIds(t),(n=r.svg.selectAll(r.selectorTargets(t))).transition().style("opacity",1,"important").call(r.endall,(function(){n.style("opacity",null).style("opacity",1)})),e.withLegend&&r.showLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},w.hide=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.addHiddenTargetIds(t),(n=r.svg.selectAll(r.selectorTargets(t))).transition().style("opacity",0,"important").call(r.endall,(function(){n.style("opacity",null).style("opacity",0)})),e.withLegend&&r.hideLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},w.toggle=function(t,e){var n=this,r=this.internal;r.mapToTargetIds(t).forEach((function(t){r.isTargetToShow(t)?n.hide(t,e):n.show(t,e)}))},w.tooltip=function(){},w.tooltip.show=function(t){var e,n,r=this.internal;t.mouse&&(n=t.mouse),t.data?r.isMultipleX()?(n=[r.x(t.data.x),r.getYScale(t.data.id)(t.data.value)],e=null):e=o(t.data.index)?t.data.index:r.getIndexByX(t.data.x):void 0!==t.x?e=r.getIndexByX(t.x):void 0!==t.index&&(e=t.index),r.dispatchEvent("mouseover",e,n),r.dispatchEvent("mousemove",e,n),r.config.tooltip_onshow.call(r,t.data)},w.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},w.transform=function(t,e){var n=this.internal,r=["pie","donut"].indexOf(t)>=0?{withTransform:!0}:null;n.transformTo(e,t,r)},S.transformTo=function(t,e,n){var r=this,i=!r.hasArcType(),o=n||{withTransitionForAxis:i};o.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(t,e),r.updateTargets(r.data.targets),r.updateAndRedraw(o)},w.x=function(t){var e=this.internal;return arguments.length&&(e.updateTargetX(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},w.xs=function(t){var e=this.internal;return arguments.length&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},w.zoom=function(t){var e=this.internal;return t&&(e.isTimeSeries()&&(t=t.map((function(t){return e.parseDate(t)}))),e.brush.extent(t),e.redraw({withUpdateXDomain:!0,withY:e.config.zoom_rescale}),e.config.zoom_onzoom.call(this,e.x.orgDomain())),e.brush.extent()},w.zoom.enable=function(t){var e=this.internal;e.config.zoom_enabled=t,e.updateAndRedraw()},w.unzoom=function(){var t=this.internal;t.brush.clear().update(),t.redraw({withUpdateXDomain:!0})},w.zoom.max=function(t){var e=this.internal,n=e.config,r=e.d3;if(0!==t&&!t)return n.zoom_x_max;n.zoom_x_max=r.max([e.orgXDomain[1],t])},w.zoom.min=function(t){var e=this.internal,n=e.config,r=e.d3;if(0!==t&&!t)return n.zoom_x_min;n.zoom_x_min=r.min([e.orgXDomain[0],t])},w.zoom.range=function(t){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};c(t.max)&&this.domain.max(t.max),c(t.min)&&this.domain.min(t.min)},S.initPie=function(){var t=this,e=t.d3;t.pie=e.layout.pie().value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})),t.pie.sort(t.getOrderFunction()||null)},S.updateRadius=function(){var t=this,e=t.config,n=e.gauge_width||e.donut_width,r=t.filterTargetsToShow(t.data.targets).length*t.config.gauge_arcs_minWidth;t.radiusExpanded=Math.min(t.arcWidth,t.arcHeight)/2*(t.hasType("gauge")?.85:1),t.radius=.95*t.radiusExpanded,t.innerRadiusRatio=n?(t.radius-n)/t.radius:.6,t.innerRadius=t.hasType("donut")||t.hasType("gauge")?t.radius*t.innerRadiusRatio:0,t.gaugeArcWidth=n||(r<=t.radius-t.innerRadius?t.radius-t.innerRadius:r<=t.radius?r:t.radius)},S.updateArc=function(){var t=this;t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded(),t.svgArcExpandedSub=t.getSvgArcExpanded(.98)},S.updateAngle=function(t){var e,n,r,i,o=this,a=o.config,s=!1,u=0;return a?(o.pie(o.filterTargetsToShow(o.data.targets)).forEach((function(e){s||e.data.id!==t.data.id||(s=!0,(t=e).index=u),u++})),isNaN(t.startAngle)&&(t.startAngle=0),isNaN(t.endAngle)&&(t.endAngle=t.startAngle),o.isGaugeType(t.data)&&(e=a.gauge_min,n=a.gauge_max,r=Math.PI*(a.gauge_fullCircle?2:1)/(n-e),i=t.value.375?1.175-36/s.radius:.8)*s.radius/i:0)+","+r*o+")";else if(l&&f&&s.filterTargetsToShow(s.data.targets).length>1){var h=Math.sin(l.endAngle-Math.PI/2);c="translate("+(n=Math.cos(l.endAngle-Math.PI/2)*(s.radiusExpanded+25))+","+(r=h*(s.radiusExpanded+15-Math.abs(10*h))+3)+")"}return c},S.getArcRatio=function(t){var e=this.config,n=Math.PI*(this.hasType("gauge")&&!e.gauge_fullCircle?1:2);return t?(t.endAngle-t.startAngle)/n:null},S.convertToArcData=function(t){return this.addName({id:t.data.id,value:t.value,ratio:this.getArcRatio(t),index:t.index})},S.textForArcLabel=function(t){var e,n,r,i,o,a=this;return a.shouldShowArcLabel()?(n=(e=a.updateAngle(t))?e.value:null,r=a.getArcRatio(e),i=t.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(o=a.getArcLabelFormat())?o(n,r,i):a.defaultArcValueFormat(n,r):""):""},S.textForGaugeMinMax=function(t,e){var n=this.getGaugeLabelExtents();return n?n(t,e):t},S.expandArc=function(t){var e,n=this;n.transiting?e=window.setInterval((function(){n.transiting||(window.clearInterval(e),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(t))}),10):(t=n.mapToTargetIds(t),n.svg.selectAll(n.selectorTargets(t,"."+r.chartArc)).each((function(t){n.shouldExpand(t.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(t.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(t.data.id)).attr("d",n.svgArcExpandedSub).each((function(t){n.isDonutType(t.data)}))})))},S.unexpandArc=function(t){var e=this;e.transiting||(t=e.mapToTargetIds(t),e.svg.selectAll(e.selectorTargets(t,"."+r.chartArc)).selectAll("path").transition().duration((function(t){return e.expandDuration(t.data.id)})).attr("d",e.svgArc),e.svg.selectAll("."+r.arc))},S.expandDuration=function(t){var e=this,n=e.config;return e.isDonutType(t)?n.donut_expand_duration:e.isGaugeType(t)?n.gauge_expand_duration:e.isPieType(t)?n.pie_expand_duration:50},S.shouldExpand=function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},S.shouldShowArcLabel=function(){var t=this,e=t.config,n=!0;return t.hasType("donut")?n=e.donut_label_show:t.hasType("pie")&&(n=e.pie_label_show),n},S.meetsArcLabelThreshold=function(t){var e=this.config;return t>=(this.hasType("donut")?e.donut_label_threshold:e.pie_label_threshold)},S.getArcLabelFormat=function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),n},S.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},S.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},S.updateTargetsForArc=function(t){var e,n=this,i=n.main,o=n.classChartArc.bind(n),a=n.classArcs.bind(n),s=n.classFocus.bind(n);(e=i.select("."+r.chartArcs).selectAll("."+r.chartArc).data(n.pie(t)).attr("class",(function(t){return o(t)+s(t.data)})).enter().append("g").attr("class",o)).append("g").attr("class",a),e.append("text").attr("dy",n.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},S.initArc=function(){var t=this;t.arcs=t.main.select("."+r.chart).append("g").attr("class",r.chartArcs).attr("transform",t.getTranslate("arc")),t.arcs.append("text").attr("class",r.chartArcsTitle).style("text-anchor","middle").text(t.getArcTitle())},S.redrawArc=function(t,e,n){var i,o,a,s=this,u=s.d3,l=s.config,c=s.main,f=s.hasType("gauge");if((i=c.selectAll("."+r.arcs).selectAll("."+r.arc).data(s.arcData.bind(s))).enter().append("path").attr("class",s.classArc.bind(s)).style("fill",(function(t){return s.color(t.data)})).style("cursor",(function(t){return l.interaction_enabled&&l.data_selection_isselectable(t)?"pointer":null})).each((function(t){s.isGaugeType(t.data)&&(t.startAngle=t.endAngle=l.gauge_startingAngle),this._current=t})),f&&((a=c.selectAll("."+r.arcs).selectAll("."+r.arcLabelLine).data(s.arcData.bind(s))).enter().append("rect").attr("class",(function(t){return r.arcLabelLine+" "+r.target+" "+r.target+"-"+t.data.id})),1===s.filterTargetsToShow(s.data.targets).length?a.style("display","none"):a.style("fill",(function(t){return l.color_pattern.length>0?s.levelColor(t.data.values[0].value):s.color(t.data)})).style("display",l.gauge_labelLine_show?"":"none").each((function(t){var e=0,n=0,r=0,i="";if(s.hiddenTargetIds.indexOf(t.data.id)<0){var o=s.updateAngle(t),a=s.gaugeArcWidth/s.filterTargetsToShow(s.data.targets).length*(o.index+1),l=o.endAngle-Math.PI/2,c=s.radius-a,f=l-(0===c?0:1/c);e=s.radiusExpanded-s.radius+a,n=Math.cos(f)*c,r=Math.sin(f)*c,i="rotate("+180*l/Math.PI+", "+n+", "+r+")"}u.select(this).attr({x:n,y:r,width:e,height:2,transform:i}).style("stroke-dasharray","0, "+(e+2)+", 0")}))),i.attr("transform",(function(t){return!s.isGaugeType(t.data)&&n?"scale(0)":""})).on("mouseover",l.interaction_enabled?function(t){var e,n;s.transiting||(e=s.updateAngle(t))&&(n=s.convertToArcData(e),s.expandArc(e.data.id),s.api.focus(e.data.id),s.toggleFocusLegend(e.data.id,!0),s.config.data_onmouseover(n,this))}:null).on("mousemove",l.interaction_enabled?function(t){var e,n=s.updateAngle(t);n&&(e=[s.convertToArcData(n)],s.showTooltip(e,this))}:null).on("mouseout",l.interaction_enabled?function(t){var e,n;s.transiting||(e=s.updateAngle(t))&&(n=s.convertToArcData(e),s.unexpandArc(e.data.id),s.api.revert(),s.revertLegend(),s.hideTooltip(),s.config.data_onmouseout(n,this))}:null).on("click",l.interaction_enabled?function(t,e){var n,r=s.updateAngle(t);r&&(n=s.convertToArcData(r),s.toggleShape&&s.toggleShape(this,n,e),s.config.data_onclick.call(s.api,n,this))}:null).each((function(){s.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e,n=s.updateAngle(t);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),e=u.interpolate(this._current,n),this._current=e(0),function(n){var r=e(n);return r.data=t.data,s.getArc(r,!0)}):function(){return"M 0 0"}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){return s.levelColor?s.levelColor(t.data.values[0].value):s.color(t.data.id)})).call(s.endall,(function(){s.transiting=!1})),i.exit().transition().duration(e).style("opacity",0).remove(),c.selectAll("."+r.chartArc).select("text").style("opacity",0).attr("class",(function(t){return s.isGaugeType(t.data)?r.gaugeValue:""})).text(s.textForArcLabel.bind(s)).attr("transform",s.transformForArcLabel.bind(s)).style("font-size",(function(t){return s.isGaugeType(t.data)&&1===s.filterTargetsToShow(s.data.targets).length?Math.round(s.radius/5)+"px":""})).transition().duration(t).style("opacity",(function(t){return s.isTargetToShow(t.data.id)&&s.isArcType(t.data)?1:0})),c.select("."+r.chartArcsTitle).style("opacity",s.hasType("donut")||f?1:0),f){var h=0;(o=s.arcs.select("g."+r.chartArcsBackground).selectAll("path."+r.chartArcsBackground).data(s.data.targets)).enter().append("path"),o.attr("class",(function(t,e){return r.chartArcsBackground+" "+r.chartArcsBackground+"-"+e})).attr("d",(function(t){if(s.hiddenTargetIds.indexOf(t.id)>=0)return"M 0 0";var e={data:[{value:l.gauge_max}],startAngle:l.gauge_startingAngle,endAngle:-1*l.gauge_startingAngle*(l.gauge_fullCircle?Math.PI:1),index:h++};return s.getArc(e,!0,!0)})),o.exit().remove(),s.arcs.select("."+r.chartArcsGaugeUnit).attr("dy",".75em").text(l.gauge_label_show?l.gauge_units:""),s.arcs.select("."+r.chartArcsGaugeMin).attr("dx",-1*(s.innerRadius+(s.radius-s.innerRadius)/(l.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(l.gauge_label_show?s.textForGaugeMinMax(l.gauge_min,!1):""),s.arcs.select("."+r.chartArcsGaugeMax).attr("dx",s.innerRadius+(s.radius-s.innerRadius)/(l.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(l.gauge_label_show?s.textForGaugeMinMax(l.gauge_max,!0):"")}},S.initGauge=function(){var t=this.arcs;this.hasType("gauge")&&(t.append("g").attr("class",r.chartArcsBackground),t.append("text").attr("class",r.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",r.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",r.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},S.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},S.hasCaches=function(t){for(var e=0;e=0?r.focused:"")},S.classDefocused=function(t){return" "+(this.defocusedTargetIds.indexOf(t.id)>=0?r.defocused:"")},S.classChartText=function(t){return r.chartText+this.classTarget(t.id)},S.classChartLine=function(t){return r.chartLine+this.classTarget(t.id)},S.classChartBar=function(t){return r.chartBar+this.classTarget(t.id)},S.classChartArc=function(t){return r.chartArc+this.classTarget(t.data.id)},S.getTargetSelectorSuffix=function(t){return t||0===t?("-"+t).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},S.selectorTarget=function(t,e){return(e||"")+"."+r.target+this.getTargetSelectorSuffix(t)},S.selectorTargets=function(t,e){var n=this;return(t=t||[]).length?t.map((function(t){return n.selectorTarget(t,e)})):null},S.selectorLegend=function(t){return"."+r.legendItem+this.getTargetSelectorSuffix(t)},S.selectorLegends=function(t){var e=this;return t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null},S.getClipPath=function(t){return"url("+(window.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":document.URL.split("#")[0])+"#"+t+")"},S.appendClip=function(t,e){return t.append("clipPath").attr("id",e).append("rect")},S.getAxisClipX=function(t){var e=Math.max(30,this.margin.left);return t?-(1+e):-(e-1)},S.getAxisClipY=function(t){return t?-20:-this.margin.top},S.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},S.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},S.getYAxisClipX=function(){var t=this;return t.config.axis_y_inner?-1:t.getAxisClipX(t.config.axis_rotated)},S.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},S.getAxisClipWidth=function(t){var e=this,n=Math.max(30,e.margin.left),r=Math.max(30,e.margin.right);return t?e.width+2+n+r:e.margin.left+20},S.getAxisClipHeight=function(t){return(t?this.margin.bottom:this.margin.top+this.height)+20},S.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},S.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},S.getYAxisClipWidth=function(){var t=this;return t.getAxisClipWidth(t.config.axis_rotated)+(t.config.axis_y_inner?20:0)},S.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},S.generateColor=function(){var t=this.config,e=this.d3,n=t.data_colors,r=g(t.color_pattern)?t.color_pattern:e.scale.category10().range(),i=t.data_color,o=[];return function(t){var e,a=t.id||t.data&&t.data.id||t;return n[a]instanceof Function?e=n[a](t):n[a]?e=n[a]:(o.indexOf(a)<0&&o.push(a),e=r[o.indexOf(a)%r.length],n[a]=e),i instanceof Function?i(e,t):e}},S.generateLevelColor=function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.values&&n.values.length?n.values:[],o=n.max||100;return g(t.color_threshold)?function(t){var n,a=e[e.length-1];for(n=0;n=0?r.data.xs[n]=(e&&r.data.xs[n]?r.data.xs[n]:[]).concat(t.map((function(t){return t[a]})).filter(o).map((function(t,e){return r.generateTargetX(t,n,e)}))):i.data_x?r.data.xs[n]=r.getOtherTargetXs():g(i.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(a,r.data.targets)):r.data.xs[n]=t.map((function(t,e){return e}))})),a.forEach((function(t){if(!r.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')})),(n=a.map((function(e,n){var o=i.data_idConverter(e);return{id:o,id_org:e,values:t.map((function(t,a){var s,u=t[r.getXKey(e)],c=null===t[e]||isNaN(t[e])?null:+t[e];return r.isCustomX()&&r.isCategorized()&&!l(u)?(0===n&&0===a&&(i.axis_x_categories=[]),-1===(s=i.axis_x_categories.indexOf(u))&&(s=i.axis_x_categories.length,i.axis_x_categories.push(u))):s=r.generateTargetX(u,e,a),(l(t[e])||r.data.xs[e].length<=a)&&(s=void 0),{x:s,value:c,id:o}})).filter((function(t){return c(t.x)}))}}))).forEach((function(t){var e;i.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),e=0,t.values.forEach((function(t){t.index=e++})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),i.data_type&&r.setTargetType(r.mapToIds(n).filter((function(t){return!(t in i.data_types)})),i.data_type),n.forEach((function(t){r.addCache(t.id_org,t)})),n},S.isX=function(t){var e=this.config;return e.data_x&&t===e.data_x||g(e.data_xs)&&v(e.data_xs,t)},S.isNotX=function(t){return!this.isX(t)},S.getXKey=function(t){var e=this.config;return e.data_x?e.data_x:g(e.data_xs)?e.data_xs[t]:null},S.getXValuesOfXKey=function(t,e){var n,r=this;return(e&&g(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},S.getIndexByX=function(t){var e=this.filterByX(this.data.targets,t);return e.length?e[0].index:null},S.getXValue=function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&o(n.data.xs[t][e])?n.data.xs[t][e]:e},S.getOtherTargetXs=function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},S.getOtherTargetX=function(t){var e=this.getOtherTargetXs();return e&&t1},S.isMultipleX=function(){return g(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},S.addName=function(t){var e;return t&&(e=this.config.data_names[t.id],t.name=void 0!==e?e:t.id),t},S.getValueOnIndex=function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},S.updateTargetX=function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},S.updateTargetXs=function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},S.generateTargetX=function(t,e,n){var r=this;return r.isTimeSeries()?t?r.parseDate(t):r.parseDate(r.getXValue(e,n)):r.isCustomX()&&!r.isCategorized()?o(t)?+t:r.getXValue(e,n):n},S.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},S.updateXs=function(){var t=this;t.data.targets.length&&(t.xs=[],t.data.targets[0].values.forEach((function(e){t.xs[e.index]=e.x})))},S.getPrevX=function(t){var e=this.xs[t-1];return void 0!==e?e:null},S.getNextX=function(t){var e=this.xs[t+1];return void 0!==e?e:null},S.getMaxDataCount=function(){return this.d3.max(this.data.targets,(function(t){return t.values.length}))},S.getMaxDataCountTarget=function(t){var e,n=t.length,r=0;return n>1?t.forEach((function(t){t.values.length>r&&(e=t,r=t.values.length)})):e=n?t[0]:null,e},S.getEdgeX=function(t){return t.length?[this.d3.min(t,(function(t){return t.values[0].x})),this.d3.max(t,(function(t){return t.values[t.values.length-1].x}))]:[0,0]},S.mapToIds=function(t){return t.map((function(t){return t.id}))},S.mapToTargetIds=function(t){return t?[].concat(t):this.mapToIds(this.data.targets)},S.hasTarget=function(t,e){var n,r=this.mapToIds(t);for(n=0;ne?1:t>=e?0:NaN}))},S.addHiddenTargetIds=function(t){t=t instanceof Array?t:new Array(t);for(var e=0;e0}))},S.isOrderDesc=function(){var t=this.config;return"string"==typeof t.data_order&&"desc"===t.data_order.toLowerCase()},S.isOrderAsc=function(){var t=this.config;return"string"==typeof t.data_order&&"asc"===t.data_order.toLowerCase()},S.getOrderFunction=function(){var t=this,e=t.config,n=t.isOrderAsc(),r=t.isOrderDesc();if(n||r)return function(t,e){var n=function(t,e){return t+Math.abs(e.value)},i=t.values.reduce(n,0),o=e.values.reduce(n,0);return r?o-i:i-o};if(a(e.data_order))return e.data_order;if(s(e.data_order)){var i=e.data_order;return function(t,e){return i.indexOf(t.id)-i.indexOf(e.id)}}},S.orderTargets=function(t){var e=this.getOrderFunction();return e&&(t.sort(e),(this.isOrderAsc()||this.isOrderDesc())&&t.reverse()),t},S.filterByX=function(t,e){return this.d3.merge(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},S.filterRemoveNull=function(t){return t.filter((function(t){return o(t.value)}))},S.filterByXDomain=function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},S.hasDataLabel=function(){var t=this.config;return!("boolean"!=typeof t.data_labels||!t.data_labels)||!("object"!==i(t.data_labels)||!g(t.data_labels))},S.getDataLabelLength=function(t,e,n){var r=this,i=[0,0];return r.selectChart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},S.isNoneArc=function(t){return this.hasTarget(this.data.targets,t.id)},S.isArc=function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},S.findSameXOfValues=function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n0)for(a=s.hasNegativeValueInTargets(t),e=0;e=0})),0!==i.length)for(r=i[0],a&&c[r]&&c[r].forEach((function(t,e){c[r][e]=t<0?t:0})),n=1;n0||(c[r][e]+=+t)}));return s.d3.min(Object.keys(c).map((function(t){return s.d3.min(c[t])})))},S.getYDomainMax=function(t){var e,n,r,i,o,a,s=this,u=s.config,l=s.mapToIds(t),c=s.getValuesAsIdKeyed(t);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(t),e=0;e=0})),0!==i.length)for(r=i[0],a&&c[r]&&c[r].forEach((function(t,e){c[r][e]=t>0?t:0})),n=1;n=0&&S>=0,p=w<=0&&S<=0,(o(b)&&h||o(x)&&p)&&(T=!1),T&&(h&&(w=0),p&&(S=0)),a=s=.1*(i=Math.abs(S-w)),void 0!==A&&(S=A+(u=Math.max(Math.abs(w),Math.abs(S))),w=A-u),C?(l=m.getDataLabelLength(w,S,"width"),c=d(m.y.range()),a+=i*((f=[l[0]/c,l[1]/c])[1]/(1-f[0]-f[1])),s+=i*(f[0]/(1-f[0]-f[1]))):E&&(l=m.getDataLabelLength(w,S,"height"),a+=m.axis.convertPixelsToAxisPadding(l[1],i),s+=m.axis.convertPixelsToAxisPadding(l[0],i)),"y"===e&&g(v.axis_y_padding)&&(a=m.axis.getPadding(v.axis_y_padding,"top",a,i),s=m.axis.getPadding(v.axis_y_padding,"bottom",s,i)),"y2"===e&&g(v.axis_y2_padding)&&(a=m.axis.getPadding(v.axis_y2_padding,"top",a,i),s=m.axis.getPadding(v.axis_y2_padding,"bottom",s,i)),T&&(h&&(s=w),p&&(a=-S)),r=[w-s,S+a],k?r.reverse():r)},S.getXDomainMin=function(t){var e=this,n=e.config;return c(n.axis_x_min)?e.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:e.d3.min(t,(function(t){return e.d3.min(t.values,(function(t){return t.x}))}))},S.getXDomainMax=function(t){var e=this,n=e.config;return c(n.axis_x_max)?e.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:e.d3.max(t,(function(t){return e.d3.max(t.values,(function(t){return t.x}))}))},S.getXDomainPadding=function(t){var e,n,r,a,s=this,u=s.config,l=t[1]-t[0];return n=s.isCategorized()?0:s.hasType("bar")?(e=s.getMaxDataCount())>1?l/(e-1)/2:.5:.01*l,"object"===i(u.axis_x_padding)&&g(u.axis_x_padding)?(r=o(u.axis_x_padding.left)?u.axis_x_padding.left:n,a=o(u.axis_x_padding.right)?u.axis_x_padding.right:n):r=a="number"==typeof u.axis_x_padding?u.axis_x_padding:n,{left:r,right:a}},S.getXDomain=function(t){var e=this,n=[e.getXDomainMin(t),e.getXDomainMax(t)],r=n[0],i=n[1],o=e.getXDomainPadding(n),a=0,s=0;return r-i!=0||e.isCategorized()||(e.isTimeSeries()?(r=new Date(.5*r.getTime()),i=new Date(1.5*i.getTime())):(r=0===r?1:.5*r,i=0===i?-1:1.5*i)),(r||0===r)&&(a=e.isTimeSeries()?new Date(r.getTime()-o.left):r-o.left),(i||0===i)&&(s=e.isTimeSeries()?new Date(i.getTime()+o.right):i+o.right),[a,s]},S.updateXDomain=function(t,e,n,r,i){var o=this,a=o.config;return n&&(o.x.domain(i||o.d3.extent(o.getXDomain(t))),o.orgXDomain=o.x.domain(),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent(),o.subX.domain(o.x.domain()),o.brush&&o.brush.scale(o.subX)),e&&(o.x.domain(i||(!o.brush||o.brush.empty()?o.orgXDomain:o.brush.extent())),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent()),r&&o.x.domain(o.trimXDomain(o.x.orgDomain())),o.x.domain()},S.trimXDomain=function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},S.drag=function(t){var e,n,i,o,a,s,u,l,c=this,f=c.config,h=c.main,d=c.d3;c.hasArcType()||f.data_selection_enabled&&(f.zoom_enabled&&!c.zoom.altDomain||f.data_selection_multiple&&(e=c.dragStart[0],n=c.dragStart[1],i=t[0],o=t[1],a=Math.min(e,i),s=Math.max(e,i),u=f.data_selection_grouped?c.margin.top:Math.min(n,o),l=f.data_selection_grouped?c.height:Math.max(n,o),h.select("."+r.dragarea).attr("x",a).attr("y",u).attr("width",s-a).attr("height",l-u),h.selectAll("."+r.shapes).selectAll("."+r.shape).filter((function(t){return f.data_selection_isselectable(t)})).each((function(t,e){var n,i,o,f,h,p,g=d.select(this),m=g.classed(r.SELECTED),v=g.classed(r.INCLUDED),y=!1;if(g.classed(r.circle))n=1*g.attr("cx"),i=1*g.attr("cy"),h=c.togglePoint,y=au&&(s=s.filter((function(t){return(""+t).indexOf(".")<0})));return s},S.getGridFilterToRemove=function(t){return t?function(e){var n=!1;return[].concat(t).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},S.removeGridLines=function(t,e){var n=this,i=n.config,o=n.getGridFilterToRemove(t),a=function(t){return!o(t)},s=e?r.xgridLines:r.ygridLines,u=e?r.xgridLine:r.ygridLine;n.main.select("."+s).selectAll("."+u).filter(o).transition().duration(i.transition_duration).style("opacity",0).remove(),e?i.grid_x_lines=i.grid_x_lines.filter(a):i.grid_y_lines=i.grid_y_lines.filter(a)},S.initEventRect=function(){this.main.select("."+r.chart).append("g").attr("class",r.eventRects).style("fill-opacity",0)},S.redrawEventRect=function(){var t,e,n=this,i=n.config,o=n.isMultipleX(),a=n.main.select("."+r.eventRects).style("cursor",i.zoom_enabled?i.axis_rotated?"ns-resize":"ew-resize":null).classed(r.eventRectsMultiple,o).classed(r.eventRectsSingle,!o);a.selectAll("."+r.eventRect).remove(),n.eventRect=a.selectAll("."+r.eventRect),o?(t=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(t.enter()),n.updateEventRect(t)):(e=n.getMaxDataCountTarget(n.data.targets),a.datum(e?e.values:[]),n.eventRect=a.selectAll("."+r.eventRect),t=n.eventRect.data((function(t){return t})),n.generateEventRectsForSingleX(t.enter()),n.updateEventRect(t),t.exit().remove())},S.updateEventRect=function(t){var e,n,r,i,o,a,s=this,u=s.config;t=t||s.eventRect.data((function(t){return t})),s.isMultipleX()?(e=0,n=0,r=s.width,i=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(o=s.getEventRectWidth(),a=function(t){return s.x(t.x)-o/2}):(s.updateXs(),o=function(t){var e=s.getPrevX(t.index),n=s.getNextX(t.index);return null===e&&null===n?u.axis_rotated?s.height:s.width:(null===e&&(e=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(e))/2))},a=function(t){var e=s.getPrevX(t.index),n=s.getNextX(t.index),r=s.data.xs[t.id][t.index];return null===e&&null===n?0:(null===e&&(e=s.x.domain()[0]),(s.x(r)+s.x(e))/2)}),e=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:o,i=u.axis_rotated?o:s.height),t.attr("class",s.classEvent.bind(s)).attr("x",e).attr("y",n).attr("width",r).attr("height",i)},S.generateEventRectsForSingleX=function(t){var e=this,n=e.d3,i=e.config;t.append("rect").attr("class",e.classEvent.bind(e)).style("cursor",i.data_selection_enabled&&i.data_selection_grouped?"pointer":null).on("mouseover",(function(t){var n=t.index;e.dragging||e.flowing||e.hasArcType()||(i.point_focus_expand_enabled&&e.expandCircles(n,null,!0),e.expandBars(n,null,!0),e.main.selectAll("."+r.shape+"-"+n).each((function(t){i.data_onmouseover.call(e.api,t)})))})).on("mouseout",(function(t){var n=t.index;e.config&&(e.hasArcType()||(e.hideXGridFocus(),e.hideTooltip(),e.unexpandCircles(),e.unexpandBars(),e.main.selectAll("."+r.shape+"-"+n).each((function(t){i.data_onmouseout.call(e.api,t)}))))})).on("mousemove",(function(t){var o,a=t.index,s=e.svg.select("."+r.eventRect+"-"+a);e.dragging||e.flowing||e.hasArcType()||(e.isStepType(t)&&"step-after"===e.config.line_step_type&&n.mouse(this)[0]=0})).classed(r.legendItemFocused,e).transition().duration(100).style("opacity",(function(){return(e?n.opacityForLegend:n.opacityForUnfocusedLegend).call(n,n.d3.select(this))}))},S.revertLegend=function(){var t=this,e=t.d3;t.legend.selectAll("."+r.legendItem).classed(r.legendItemFocused,!1).transition().duration(100).style("opacity",(function(){return t.opacityForLegend(e.select(this))}))},S.showLegend=function(t){var e=this,n=e.config;n.legend_show||(n.legend_show=!0,e.legend.style("visibility","visible"),e.legendHasRendered||e.updateLegendWithDefaults()),e.removeHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("visibility","visible").transition().style("opacity",(function(){return e.opacityForLegend(e.d3.select(this))}))},S.hideLegend=function(t){var e=this,n=e.config;n.legend_show&&p(t)&&(n.legend_show=!1,e.legend.style("visibility","hidden")),e.addHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("opacity",0).style("visibility","hidden")},S.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},S.updateLegend=function(t,e,n){var i,o,a,s,u,l,f,h,d,p,g,v,y,_,b,x,w=this,S=w.config,A=0,T=0,k=S.legend_item_tile_width+5,C=0,E={},P={},O={},I=[0],M={},L=0;function R(e,n,i){var o,a,s=0===i,u=i===t.length-1,l=function(t,e){return w.legendItemTextBox[e]||(w.legendItemTextBox[e]=w.getTextRect(t.textContent,r.legendItem,t)),w.legendItemTextBox[e]}(e,n),c=l.width+k+(!u||w.isLegendRight||w.isLegendInset?10:0)+S.legend_padding,f=l.height+4,h=w.isLegendRight||w.isLegendInset?f:c,d=w.isLegendRight||w.isLegendInset?w.getLegendHeight():w.getLegendWidth();function p(t,e){e||(o=(d-C-h)/2)<10&&(o=(d-h)/2,C=0,L++),M[t]=L,I[L]=w.isLegendInset?10:o,E[t]=C,C+=h}s&&(C=0,L=0,A=0,T=0),!S.legend_show||w.isLegendToShow(n)?(P[n]=c,O[n]=f,(!A||c>=A)&&(A=c),(!T||f>=T)&&(T=f),a=w.isLegendRight||w.isLegendInset?T:A,S.legend_equally?(Object.keys(P).forEach((function(t){P[t]=A})),Object.keys(O).forEach((function(t){O[t]=T})),(o=(d-a*t.length)/2)<10?(C=0,L=0,t.forEach((function(t){p(t)}))):p(n,!0)):p(n)):P[n]=O[n]=M[n]=E[n]=0}t=t.filter((function(t){return!c(S.data_names[t])||null!==S.data_names[t]})),g=m(e=e||{},"withTransition",!0),v=m(e,"withTransitionForTransform",!0),w.isLegendInset&&(L=S.legend_inset_step?S.legend_inset_step:t.length,w.updateLegendStep(L)),w.isLegendRight?(i=function(t){return A*M[t]},s=function(t){return I[M[t]]+E[t]}):w.isLegendInset?(i=function(t){return A*M[t]+10},s=function(t){return I[M[t]]+E[t]}):(i=function(t){return I[M[t]]+E[t]},s=function(t){return T*M[t]}),o=function(t,e){return i(t,e)+4+S.legend_item_tile_width},u=function(t,e){return s(t,e)+9},a=function(t,e){return i(t,e)},l=function(t,e){return s(t,e)-5},f=function(t,e){return i(t,e)-2},h=function(t,e){return i(t,e)-2+S.legend_item_tile_width},d=function(t,e){return s(t,e)+4},(p=w.legend.selectAll("."+r.legendItem).data(t).enter().append("g").attr("class",(function(t){return w.generateClass(r.legendItem,t)})).style("visibility",(function(t){return w.isLegendToShow(t)?"visible":"hidden"})).style("cursor","pointer").on("click",(function(t){S.legend_item_onclick?S.legend_item_onclick.call(w,t):w.d3.event.altKey?(w.api.hide(),w.api.show(t)):(w.api.toggle(t),w.isTargetToShow(t)?w.api.focus(t):w.api.revert())})).on("mouseover",(function(t){S.legend_item_onmouseover?S.legend_item_onmouseover.call(w,t):(w.d3.select(this).classed(r.legendItemFocused,!0),!w.transiting&&w.isTargetToShow(t)&&w.api.focus(t))})).on("mouseout",(function(t){S.legend_item_onmouseout?S.legend_item_onmouseout.call(w,t):(w.d3.select(this).classed(r.legendItemFocused,!1),w.api.revert())}))).append("text").text((function(t){return c(S.data_names[t])?S.data_names[t]:t})).each((function(t,e){R(this,t,e)})).style("pointer-events","none").attr("x",w.isLegendRight||w.isLegendInset?o:-200).attr("y",w.isLegendRight||w.isLegendInset?-200:u),p.append("rect").attr("class",r.legendItemEvent).style("fill-opacity",0).attr("x",w.isLegendRight||w.isLegendInset?a:-200).attr("y",w.isLegendRight||w.isLegendInset?-200:l),p.append("line").attr("class",r.legendItemTile).style("stroke",w.color).style("pointer-events","none").attr("x1",w.isLegendRight||w.isLegendInset?f:-200).attr("y1",w.isLegendRight||w.isLegendInset?-200:d).attr("x2",w.isLegendRight||w.isLegendInset?h:-200).attr("y2",w.isLegendRight||w.isLegendInset?-200:d).attr("stroke-width",S.legend_item_tile_height),x=w.legend.select("."+r.legendBackground+" rect"),w.isLegendInset&&A>0&&0===x.size()&&(x=w.legend.insert("g","."+r.legendItem).attr("class",r.legendBackground).append("rect")),y=w.legend.selectAll("text").data(t).text((function(t){return c(S.data_names[t])?S.data_names[t]:t})).each((function(t,e){R(this,t,e)})),(g?y.transition():y).attr("x",o).attr("y",u),_=w.legend.selectAll("rect."+r.legendItemEvent).data(t),(g?_.transition():_).attr("width",(function(t){return P[t]})).attr("height",(function(t){return O[t]})).attr("x",a).attr("y",l),b=w.legend.selectAll("line."+r.legendItemTile).data(t),(g?b.transition():b).style("stroke",w.levelColor?function(t){return w.levelColor(w.cache[t].values[0].value)}:w.color).attr("x1",f).attr("y1",d).attr("x2",h).attr("y2",d),x&&(g?x.transition():x).attr("height",w.getLegendHeight()-12).attr("width",A*(L+1)+10),w.legend.selectAll("."+r.legendItem).classed(r.legendItemHidden,(function(t){return!w.isTargetToShow(t)})),w.updateLegendItemWidth(A),w.updateLegendItemHeight(T),w.updateLegendStep(L),w.updateSizes(),w.updateScales(),w.updateSvgSize(),w.transformAll(v,n),w.legendHasRendered=!0},S.initRegion=function(){var t=this;t.region=t.main.append("g").attr("clip-path",t.clipPath).attr("class",r.regions)},S.updateRegion=function(t){var e=this,n=e.config;e.region.style("visibility",e.hasArcType()?"hidden":"visible"),e.mainRegion=e.main.select("."+r.regions).selectAll("."+r.region).data(n.regions),e.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),e.mainRegion.attr("class",e.classRegion.bind(e)),e.mainRegion.exit().transition().duration(t).style("opacity",0).remove()},S.redrawRegion=function(t){var e=this,n=e.mainRegion.selectAll("rect").each((function(){var t=e.d3.select(this.parentNode).datum();e.d3.select(this).datum(t)})),r=e.regionX.bind(e),i=e.regionY.bind(e),a=e.regionWidth.bind(e),s=e.regionHeight.bind(e);return[(t?n.transition():n).attr("x",r).attr("y",i).attr("width",a).attr("height",s).style("fill-opacity",(function(t){return o(t.opacity)?t.opacity:.1}))]},S.regionX=function(t){var e=this,n=e.config,r="y"===t.axis?e.y:e.y2;return"y"===t.axis||"y2"===t.axis?n.axis_rotated&&"start"in t?r(t.start):0:n.axis_rotated?0:"start"in t?e.x(e.isTimeSeries()?e.parseDate(t.start):t.start):0},S.regionY=function(t){var e=this,n=e.config,r="y"===t.axis?e.y:e.y2;return"y"===t.axis||"y2"===t.axis?n.axis_rotated?0:"end"in t?r(t.end):0:n.axis_rotated&&"start"in t?e.x(e.isTimeSeries()?e.parseDate(t.start):t.start):0},S.regionWidth=function(t){var e,n=this,r=n.config,i=n.regionX(t),o="y"===t.axis?n.y:n.y2;return(e="y"===t.axis||"y2"===t.axis?r.axis_rotated&&"end"in t?o(t.end):n.width:r.axis_rotated?n.width:"end"in t?n.x(n.isTimeSeries()?n.parseDate(t.end):t.end):n.width)n.bar_width_max?n.bar_width_max:r},S.getBars=function(t,e){var n=this;return(e?n.main.selectAll("."+r.bars+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+r.bar+(o(t)?"-"+t:""))},S.expandBars=function(t,e,n){n&&this.unexpandBars(),this.getBars(t,e).classed(r.EXPANDED,!0)},S.unexpandBars=function(t){this.getBars(t).classed(r.EXPANDED,!1)},S.generateDrawBar=function(t,e){var n=this.config,r=this.generateGetBarPoints(t,e);return function(t,e){var i=r(t,e),o=n.axis_rotated?1:0,a=n.axis_rotated?0:1;return"M "+i[0][o]+","+i[0][a]+" L"+i[1][o]+","+i[1][a]+" L"+i[2][o]+","+i[2][a]+" L"+i[3][o]+","+i[3][a]+" z"}},S.generateGetBarPoints=function(t,e){var n=this,r=e?n.subXAxis:n.xAxis,i=t.__max__+1,o=n.getBarW(r,i),a=n.getShapeX(o,i,t,!!e),s=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),l=o*(n.config.bar_space/2),c=e?n.getSubYScale:n.getYScale;return function(t,e){var r=c.call(n,t.id)(0),i=u(t,e)||r,f=a(t),h=s(t);return n.config.axis_rotated&&(0=0&&(l+=s(i[a].value)-u))})),l}},S.isWithinShape=function(t,e){var n,i=this,o=i.d3.select(t);return i.isTargetToShow(e.id)?"circle"===t.nodeName?n=i.isStepType(e)?i.isWithinStep(t,i.getYScale(e.id)(e.value)):i.isWithinCircle(t,1.5*i.pointSelectR(e)):"path"===t.nodeName&&(n=!o.classed(r.bar)||i.isWithinBar(t)):n=!1,n},S.getInterpolate=function(t){var e=this,n=e.isInterpolationType(e.config.spline_interpolation_type)?e.config.spline_interpolation_type:"cardinal";return e.isSplineType(t)?n:e.isStepType(t)?e.config.line_step_type:"linear"},S.initLine=function(){this.main.select("."+r.chart).append("g").attr("class",r.chartLines)},S.updateTargetsForLine=function(t){var e,n=this,i=n.config,o=n.classChartLine.bind(n),a=n.classLines.bind(n),s=n.classAreas.bind(n),u=n.classCircles.bind(n),l=n.classFocus.bind(n);(e=n.main.select("."+r.chartLines).selectAll("."+r.chartLine).data(t).attr("class",(function(t){return o(t)+l(t)})).enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none")).append("g").attr("class",a),e.append("g").attr("class",s),e.append("g").attr("class",(function(t){return n.generateClass(r.selectedCircles,t.id)})),e.append("g").attr("class",u).style("cursor",(function(t){return i.data_selection_isselectable(t)?"pointer":null})),t.forEach((function(t){n.main.selectAll("."+r.selectedCircles+n.getTargetSelectorSuffix(t.id)).selectAll("."+r.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))},S.updateLine=function(t){var e=this;e.mainLine=e.main.selectAll("."+r.lines).selectAll("."+r.line).data(e.lineData.bind(e)),e.mainLine.enter().append("path").attr("class",e.classLine.bind(e)).style("stroke",e.color),e.mainLine.style("opacity",e.initialOpacity.bind(e)).style("shape-rendering",(function(t){return e.isStepType(t)?"crispEdges":""})).attr("transform",null),e.mainLine.exit().transition().duration(t).style("opacity",0).remove()},S.redrawLine=function(t,e){return[(e?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",t).style("stroke",this.color).style("opacity",1)]},S.generateDrawLine=function(t,e){var n=this,r=n.config,i=n.d3.svg.line(),o=n.generateGetLinePoints(t,e),a=e?n.getSubYScale:n.getYScale,s=function(t){return(e?n.subxx:n.xx).call(n,t)},u=function(t,e){return r.data_groups.length>0?o(t,e)[0][1]:a.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x(u).y(s):i.x(s).y(u),r.line_connectNull||(i=i.defined((function(t){return null!=t.value}))),function(t){var o,s=r.line_connectNull?n.filterRemoveNull(t.values):t.values,u=e?n.subX:n.x,l=a.call(n,t.id),c=0,f=0;return n.isLineType(t)?r.data_regions[t.id]?o=n.lineWithRegions(s,u,l,r.data_regions[t.id]):(n.isStepType(t)&&(s=n.convertValuesToStep(s)),o=i.interpolate(n.getInterpolate(t))(s)):(s[0]&&(c=u(s[0].x),f=l(s[0].value)),o=r.axis_rotated?"M "+f+" "+c:"M "+c+" "+f),o||"M 0 0"}},S.generateGetLinePoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,o=n.getShapeX(0,i,t,!!e),a=n.getShapeY(!!e),s=n.getShapeOffset(n.isLineType,t,!!e),u=e?n.getSubYScale:n.getYScale;return function(t,e){var i=u.call(n,t.id)(0),l=s(t,e)||i,c=o(t),f=a(t);return r.axis_rotated&&(00?o(t,e)[0][1]:a.call(n,t.id)(n.getAreaBaseValue(t.id))},l=function(t,e){return r.data_groups.length>0?o(t,e)[1][1]:a.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x0(u).x1(l).y(s):i.x(s).y0(r.area_above?0:u).y1(l),r.line_connectNull||(i=i.defined((function(t){return null!==t.value}))),function(t){var e,o=r.line_connectNull?n.filterRemoveNull(t.values):t.values,a=0,s=0;return n.isAreaType(t)?(n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=i.interpolate(n.getInterpolate(t))(o)):(o[0]&&(a=n.x(o[0].x),s=n.getYScale(t.id)(o[0].value)),e=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),e||"M 0 0"}},S.getAreaBaseValue=function(){return 0},S.generateGetAreaPoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,o=n.getShapeX(0,i,t,!!e),a=n.getShapeY(!!e),s=n.getShapeOffset(n.isAreaType,t,!!e),u=e?n.getSubYScale:n.getYScale;return function(t,e){var i=u.call(n,t.id)(0),l=s(t,e)||i,c=o(t),f=a(t);return r.axis_rotated&&(00?(t=n.getShapeIndices(n.isLineType),e=n.generateGetLinePoints(t),n.circleY=function(t,n){return e(t,n)[0][1]}):n.circleY=function(t){return n.getYScale(t.id)(t.value)}},S.getCircles=function(t,e){var n=this;return(e?n.main.selectAll("."+r.circles+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+r.circle+(o(t)?"-"+t:""))},S.expandCircles=function(t,e,n){var i=this,o=i.pointExpandedR.bind(i);n&&i.unexpandCircles(),i.getCircles(t,e).classed(r.EXPANDED,!0).attr("r",o)},S.unexpandCircles=function(t){var e=this,n=e.pointR.bind(e);e.getCircles(t).filter((function(){return e.d3.select(this).classed(r.EXPANDED)})).classed(r.EXPANDED,!1).attr("r",n)},S.pointR=function(t){var e=this.config;return this.isStepType(t)?0:a(e.point_r)?e.point_r(t):e.point_r},S.pointExpandedR=function(t){var e=this,n=e.config;return n.point_focus_expand_enabled?a(n.point_focus_expand_r)?n.point_focus_expand_r(t):n.point_focus_expand_r?n.point_focus_expand_r:1.75*e.pointR(t):e.pointR(t)},S.pointSelectR=function(t){var e=this.config;return a(e.point_select_r)?e.point_select_r(t):e.point_select_r?e.point_select_r:4*this.pointR(t)},S.isWithinCircle=function(t,e){var n=this.d3,r=n.mouse(t),i=n.select(t),o=+i.attr("cx"),a=+i.attr("cy");return Math.sqrt(Math.pow(o-r[0],2)+Math.pow(a-r[1],2))0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},S.getCurrentPaddingTop=function(){var t=this,e=t.config,n=o(e.padding_top)?e.padding_top:0;return t.title&&t.title.node()&&(n+=t.getTitlePadding()),n},S.getCurrentPaddingBottom=function(){var t=this.config;return o(t.padding_bottom)?t.padding_bottom:0},S.getCurrentPaddingLeft=function(t){var e=this,n=e.config;return o(n.padding_left)?n.padding_left:n.axis_rotated?!n.axis_x_show||n.axis_x_inner?1:Math.max(f(e.getAxisWidthByAxisId("x",t)),40):!n.axis_y_show||n.axis_y_inner?e.axis.getYAxisLabelPosition().isOuter?30:1:f(e.getAxisWidthByAxisId("y",t))},S.getCurrentPaddingRight=function(){var t=this,e=t.config,n=t.isLegendRight?t.getLegendWidth()+20:0;return o(e.padding_right)?e.padding_right+1:e.axis_rotated?10+n:!e.axis_y2_show||e.axis_y2_inner?2+n+(t.axis.getY2AxisLabelPosition().isOuter?20:0):f(t.getAxisWidthByAxisId("y2"))+n},S.getParentRectValue=function(t){for(var e,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{e=n.getBoundingClientRect()[t]}catch(r){"width"===t&&(e=n.offsetWidth)}if(e)break;n=n.parentNode}return e},S.getParentWidth=function(){return this.getParentRectValue("width")},S.getParentHeight=function(){var t=this.selectChart.style("height");return t.indexOf("px")>0?+t.replace("px",""):0},S.getSvgLeft=function(t){var e=this,n=e.config,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?r.axisX:r.axisY,a=e.main.select("."+o).node(),s=a&&i?a.getBoundingClientRect():{right:0},u=e.selectChart.node().getBoundingClientRect(),l=e.hasArcType(),c=s.right-u.left-(l?0:e.getCurrentPaddingLeft(t));return c>0?c:0},S.getAxisWidthByAxisId=function(t,e){var n=this.axis.getLabelPositionById(t);return this.axis.getMaxTickWidth(t,e)+(n.isInner?20:40)},S.getHorizontalAxisHeight=function(t){var e=this,n=e.config,r=30;return"x"!==t||n.axis_x_show?"x"===t&&n.axis_x_height?n.axis_x_height:"y"!==t||n.axis_y_show?"y2"!==t||n.axis_y2_show?("x"===t&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===t&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"===t?-10:0)):e.rotated_padding_top:!n.legend_show||e.isLegendRight||e.isLegendInset?1:10:8},S.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},S.initBrush=function(){var t=this,e=t.d3;t.brush=e.svg.brush().on("brush",(function(){t.redrawForBrush()})),t.brush.update=function(){return t.context&&t.context.select("."+r.brush).call(this),this},t.brush.scale=function(e){return t.config.axis_rotated?this.y(e):this.x(e)}},S.initSubchart=function(){var t=this,e=t.config,n=t.context=t.svg.append("g").attr("transform",t.getTranslate("context")),i=e.subchart_show?"visible":"hidden";n.style("visibility",i),n.append("g").attr("clip-path",t.clipPathForSubchart).attr("class",r.chart),n.select("."+r.chart).append("g").attr("class",r.chartBars),n.select("."+r.chart).append("g").attr("class",r.chartLines),n.append("g").attr("clip-path",t.clipPath).attr("class",r.brush).call(t.brush),t.axes.subx=n.append("g").attr("class",r.axisX).attr("transform",t.getTranslate("subx")).attr("clip-path",e.axis_rotated?"":t.clipPathForXAxis).style("visibility",e.subchart_axis_x_show?i:"hidden")},S.updateTargetsForSubchart=function(t){var e,n=this,i=n.context,o=n.config,a=n.classChartBar.bind(n),s=n.classBars.bind(n),u=n.classChartLine.bind(n),l=n.classLines.bind(n),c=n.classAreas.bind(n);o.subchart_show&&(i.select("."+r.chartBars).selectAll("."+r.chartBar).data(t).attr("class",a).enter().append("g").style("opacity",0).attr("class",a).append("g").attr("class",s),(e=i.select("."+r.chartLines).selectAll("."+r.chartLine).data(t).attr("class",u).enter().append("g").style("opacity",0).attr("class",u)).append("g").attr("class",l),e.append("g").attr("class",c),i.selectAll("."+r.brush+" rect").attr(o.axis_rotated?"width":"height",o.axis_rotated?n.width2:n.height2))},S.updateBarForSubchart=function(t){var e=this;e.contextBar=e.context.selectAll("."+r.bars).selectAll("."+r.bar).data(e.barData.bind(e)),e.contextBar.enter().append("path").attr("class",e.classBar.bind(e)).style("stroke","none").style("fill",e.color),e.contextBar.style("opacity",e.initialOpacity.bind(e)),e.contextBar.exit().transition().duration(t).style("opacity",0).remove()},S.redrawBarForSubchart=function(t,e,n){(e?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",t).style("opacity",1)},S.updateLineForSubchart=function(t){var e=this;e.contextLine=e.context.selectAll("."+r.lines).selectAll("."+r.line).data(e.lineData.bind(e)),e.contextLine.enter().append("path").attr("class",e.classLine.bind(e)).style("stroke",e.color),e.contextLine.style("opacity",e.initialOpacity.bind(e)),e.contextLine.exit().transition().duration(t).style("opacity",0).remove()},S.redrawLineForSubchart=function(t,e,n){(e?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",t).style("opacity",1)},S.updateAreaForSubchart=function(t){var e=this,n=e.d3;e.contextArea=e.context.selectAll("."+r.areas).selectAll("."+r.area).data(e.lineData.bind(e)),e.contextArea.enter().append("path").attr("class",e.classArea.bind(e)).style("fill",e.color).style("opacity",(function(){return e.orgAreaOpacity=+n.select(this).style("opacity"),0})),e.contextArea.style("opacity",0),e.contextArea.exit().transition().duration(t).style("opacity",0).remove()},S.redrawAreaForSubchart=function(t,e,n){(e?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",t).style("fill",this.color).style("opacity",this.orgAreaOpacity)},S.redrawSubchart=function(t,e,n,r,i,o,a){var s,u,l,c=this,f=c.d3,h=c.config;c.context.style("visibility",h.subchart_show?"visible":"hidden"),h.subchart_show&&(f.event&&"zoom"===f.event.type&&c.brush.extent(c.x.orgDomain()).update(),t&&(c.brush.empty()||c.brush.extent(c.x.orgDomain()).update(),s=c.generateDrawArea(i,!0),u=c.generateDrawBar(o,!0),l=c.generateDrawLine(a,!0),c.updateBarForSubchart(n),c.updateLineForSubchart(n),c.updateAreaForSubchart(n),c.redrawBarForSubchart(u,n,n),c.redrawLineForSubchart(l,n,n),c.redrawAreaForSubchart(s,n,n)))},S.redrawForBrush=function(){var t=this,e=t.x;t.redraw({withTransition:!1,withY:t.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t.config.subchart_onbrush.call(t.api,e.orgDomain())},S.transformContext=function(t,e){var n,i=this;e&&e.axisSubX?n=e.axisSubX:(n=i.context.select("."+r.axisX),t&&(n=n.transition())),i.context.attr("transform",i.getTranslate("context")),n.attr("transform",i.getTranslate("subx"))},S.getDefaultExtent=function(){var t=this,e=t.config,n=a(e.axis_x_extent)?e.axis_x_extent(t.getXDomain(t.data.targets)):e.axis_x_extent;return t.isTimeSeries()&&(n=[t.parseDate(n[0]),t.parseDate(n[1])]),n},S.initText=function(){var t=this;t.main.select("."+r.chart).append("g").attr("class",r.chartTexts),t.mainText=t.d3.selectAll([])},S.updateTargetsForText=function(t){var e=this,n=e.classChartText.bind(e),i=e.classTexts.bind(e),o=e.classFocus.bind(e);e.main.select("."+r.chartTexts).selectAll("."+r.chartText).data(t).attr("class",(function(t){return n(t)+o(t)})).enter().append("g").attr("class",n).style("opacity",0).style("pointer-events","none").append("g").attr("class",i)},S.updateText=function(t){var e=this,n=e.config,i=e.barOrLineData.bind(e),o=e.classText.bind(e);e.mainText=e.main.selectAll("."+r.texts).selectAll("."+r.text).data(i),e.mainText.enter().append("text").attr("class",o).attr("text-anchor",(function(t){return n.axis_rotated?t.value<0?"end":"start":"middle"})).style("stroke","none").style("fill",(function(t){return e.color(t)})).style("fill-opacity",0),e.mainText.text((function(t,n,r){return e.dataLabelFormat(t.id)(t.value,t.id,n,r)})),e.mainText.exit().transition().duration(t).style("fill-opacity",0).remove()},S.redrawText=function(t,e,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",t).attr("y",e).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},S.getTextRect=function(t,e,n){var r,i=this.d3.select("body").append("div").classed("c3",!0),o=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a=this.d3.select(n).style("font");return o.selectAll(".dummy").data([t]).enter().append("text").classed(e||"",!0).style("font",a).text(t).each((function(){r=this.getBoundingClientRect()})),i.remove(),r},S.generateXYForText=function(t,e,n,r){var i=this,o=i.generateGetAreaPoints(t,!1),a=i.generateGetBarPoints(e,!1),s=i.generateGetLinePoints(n,!1),u=r?i.getXForText:i.getYForText;return function(t,e){var n=i.isAreaType(t)?o:i.isBarType(t)?a:s;return u.call(i,n(t,e),t,this)}},S.getXForText=function(t,e,n){var r,i,o=this,a=n.getBoundingClientRect();return o.config.axis_rotated?(i=o.isBarType(e)?4:6,r=t[2][1]+i*(e.value<0?-1:1)):r=o.hasType("bar")?(t[2][0]+t[0][0])/2:t[0][0],null===e.value&&(r>o.width?r=o.width-a.width:r<0&&(r=4)),r},S.getYForText=function(t,e,n){var r,i=this,o=n.getBoundingClientRect();return i.config.axis_rotated?r=(t[0][0]+t[2][0]+.6*o.height)/2:(r=t[2][1],e.value<0||0===e.value&&!i.hasPositiveValue?(r+=o.height,i.isBarType(e)&&i.isSafari()?r-=3:!i.isBarType(e)&&i.isChrome()&&(r+=3)):r+=i.isBarType(e)?-3:-6),null!==e.value||i.config.axis_rotated||(rthis.height&&(r=this.height-4)),r},S.initTitle=function(){var t=this;t.title=t.svg.append("text").text(t.config.title_text).attr("class",t.CLASS.title)},S.redrawTitle=function(){var t=this;t.title.attr("x",t.xForTitle.bind(t)).attr("y",t.yForTitle.bind(t))},S.xForTitle=function(){var t=this,e=t.config,n=e.title_position||"left";return n.indexOf("right")>=0?t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width-e.title_padding.right:n.indexOf("center")>=0?(t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width)/2:e.title_padding.left},S.yForTitle=function(){var t=this;return t.config.title_padding.top+t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).height},S.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},S.initTooltip=function(){var t,e=this,n=e.config;if(e.tooltip=e.selectChart.style("position","relative").append("div").attr("class",r.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(e.isTimeSeries()&&u(n.tooltip_init_x)){for(n.tooltip_init_x=e.parseDate(n.tooltip_init_x),t=0;t"+(a||0===a?""+a+"":"")),void 0!==(s=y(p(t[o].value,t[o].ratio,t[o].id,t[o].index,t))))){if(null===t[o].name)continue;u=y(d(t[o].name,t[o].ratio,t[o].id,t[o].index)),l=c.levelColor?c.levelColor(t[o].value):r(t[o].id),i+="",i+=""+u+"",i+=""+s+"",i+=""}return i+""},S.tooltipPosition=function(t,e,n,r){var i,o,a,s,u,l=this,c=l.config,f=l.d3,h=l.hasArcType(),d=f.mouse(r);return h?(o=(l.width-(l.isLegendRight?l.getLegendWidth():0))/2+d[0],s=(l.hasType("gauge")?l.height:l.height/2)+d[1]+20):(i=l.getSvgLeft(!0),c.axis_rotated?(a=(o=i+d[0]+100)+e,u=l.currentWidth-l.getCurrentPaddingRight(),s=l.x(t[0].x)+20):(a=(o=i+l.getCurrentPaddingLeft(!0)+l.x(t[0].x)+20)+e,u=i+l.currentWidth-l.getCurrentPaddingRight(),s=d[1]+15),a>u&&(o-=a-u+20),s+n>l.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:o}},S.showTooltip=function(t,e){var n,r,i,a=this,s=a.config,u=a.hasArcType(),l=t.filter((function(t){return t&&o(t.value)})),c=s.tooltip_position||S.tooltipPosition;0!==l.length&&s.tooltip_show&&(a.tooltip.html(s.tooltip_contents.call(a,t,a.axis.getXAxisTickFormat(),a.getYFormat(u),a.color)).style("display","block"),n=a.tooltip.property("offsetWidth"),r=a.tooltip.property("offsetHeight"),i=c.call(this,l,n,r,e),a.tooltip.style("top",i.top+"px").style("left",i.left+"px"))},S.hideTooltip=function(){this.tooltip.style("display","none")},S.setTargetType=function(t,e){var n=this,r=n.config;n.mapToTargetIds(t).forEach((function(t){n.withoutFadeIn[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},S.hasType=function(t,e){var n=this,r=n.config.data_types,i=!1;return(e=e||n.data.targets)&&e.length?e.forEach((function(e){var n=r[e.id];(n&&n.indexOf(t)>=0||!n&&"line"===t)&&(i=!0)})):Object.keys(r).length?Object.keys(r).forEach((function(e){r[e]===t&&(i=!0)})):i=n.config.data_type===t,i},S.hasArcType=function(t){return this.hasType("pie",t)||this.hasType("donut",t)||this.hasType("gauge",t)},S.isLineType=function(t){var e=this.config,n=u(t)?t:t.id;return!e.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(e.data_types[n])>=0},S.isStepType=function(t){var e=u(t)?t:t.id;return["step","area-step"].indexOf(this.config.data_types[e])>=0},S.isSplineType=function(t){var e=u(t)?t:t.id;return["spline","area-spline"].indexOf(this.config.data_types[e])>=0},S.isAreaType=function(t){var e=u(t)?t:t.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[e])>=0},S.isBarType=function(t){var e=u(t)?t:t.id;return"bar"===this.config.data_types[e]},S.isScatterType=function(t){var e=u(t)?t:t.id;return"scatter"===this.config.data_types[e]},S.isPieType=function(t){var e=u(t)?t:t.id;return"pie"===this.config.data_types[e]},S.isGaugeType=function(t){var e=u(t)?t:t.id;return"gauge"===this.config.data_types[e]},S.isDonutType=function(t){var e=u(t)?t:t.id;return"donut"===this.config.data_types[e]},S.isArcType=function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)},S.lineData=function(t){return this.isLineType(t)?[t]:[]},S.arcData=function(t){return this.isArcType(t.data)?[t]:[]},S.barData=function(t){return this.isBarType(t)?t.values:[]},S.lineOrScatterData=function(t){return this.isLineType(t)||this.isScatterType(t)?t.values:[]},S.barOrLineData=function(t){return this.isBarType(t)||this.isLineType(t)?t.values:[]},S.isInterpolationType=function(t){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(t)>=0},S.isSafari=function(){var t=window.navigator.userAgent;return t.indexOf("Safari")>=0&&t.indexOf("Chrome")<0},S.isChrome=function(){return window.navigator.userAgent.indexOf("Chrome")>=0},S.initZoom=function(){var t,e=this,n=e.d3,r=e.config;e.zoom=n.behavior.zoom().on("zoomstart",(function(){t=n.event.sourceEvent,e.zoom.altDomain=n.event.sourceEvent.altKey?e.x.orgDomain():null,r.zoom_onzoomstart.call(e.api,n.event.sourceEvent)})).on("zoom",(function(){e.redrawForZoom.call(e)})).on("zoomend",(function(){var i=n.event.sourceEvent;i&&t.clientX===i.clientX&&t.clientY===i.clientY||(e.redrawEventRect(),e.updateZoom(),r.zoom_onzoomend.call(e.api,e.x.orgDomain()))})),e.zoom.scale=function(t){return r.axis_rotated?this.y(t):this.x(t)},e.zoom.orgScaleExtent=function(){var t=r.zoom_extent?r.zoom_extent:[1,10];return[t[0],Math.max(e.getMaxDataCount()/t[1],t[1])]},e.zoom.updateScaleExtent=function(){var t=d(e.x.orgDomain())/d(e.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*t,n[1]*t]),this}},S.getZoomDomain=function(){var t=this,e=t.config,n=t.d3;return[n.min([t.orgXDomain[0],e.zoom_x_min]),n.max([t.orgXDomain[1],e.zoom_x_max])]},S.updateZoom=function(){var t=this,e=t.config.zoom_enabled?t.zoom:function(){};t.main.select("."+r.zoomRect).call(e).on("dblclick.zoom",null),t.main.selectAll("."+r.eventRect).call(e).on("dblclick.zoom",null)},S.redrawForZoom=function(){var t=this,e=t.d3,n=t.config,r=t.zoom,i=t.x;if(n.zoom_enabled&&0!==t.filterTargetsToShow(t.data.targets).length){if("mousemove"===e.event.sourceEvent.type&&r.altDomain)return i.domain(r.altDomain),void r.scale(i).updateScaleExtent();t.isCategorized()&&i.orgDomain()[0]===t.orgXDomain[0]&&i.domain([t.orgXDomain[0]-1e-10,i.orgDomain()[1]]),t.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===e.event.sourceEvent.type&&(t.cancelClick=!0),n.zoom_onzoom.call(t.api,i.orgDomain())}},A}()},5971:t=>{function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i{var r,i;!function(){var o={version:"3.5.17"},a=[].slice,s=function(t){return a.call(t)},u=this.document;function l(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(t){s=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,h=f.setAttribute,d=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,g=p.setProperty;f.setAttribute=function(t,e){h.call(this,t,e+"")},f.setAttributeNS=function(t,e,n){d.call(this,t,e,n+"")},p.setProperty=function(t,e,n){g.call(this,t,e+"",n)}}function m(t,e){return te?1:t>=e?0:NaN}function v(t){return null===t?NaN:+t}function y(t){return!isNaN(t)}function _(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}o.ascending=m,o.descending=function(t,e){return et?1:e>=t?0:NaN},o.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},o.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},o.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},o.deviation=function(){var t=o.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=_(m);function x(t){return t.length}o.bisectLeft=b.left,o.bisect=o.bisectRight=b.right,o.bisector=function(t){return _(1===t.length?function(e,n){return m(t(e),n)}:t)},o.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,o<2&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},o.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},o.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n};var w=Math.abs;function S(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function A(){this._=Object.create(null)}function T(t){return"__proto__"==(t+="")||"\0"===t[0]?"\0"+t:t}function k(t){return"\0"===(t+="")[0]?t.slice(1):t}function C(t){return T(t)in this._}function E(t){return(t=T(t))in this._&&delete this._[t]}function P(){var t=[];for(var e in this._)t.push(k(e));return t}function O(){var t=0;for(var e in this._)++t;return t}function I(){for(var t in this._)return!1;return!0}function M(){this._=Object.create(null)}function L(t){return t}function R(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function N(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=D.length;ne;)i.push(r/o);else for(;(r=t+n*++a)=r.length)return e?e.call(n,o):t?o.sort(t):o;for(var u,l,c,f,h=-1,d=o.length,p=r[s++],g=new A;++h=r.length)return t;var n=[],o=i[e++];return t.forEach((function(t,r){n.push({key:t,values:s(r,e)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}return n.map=function(t,e){return a(e,t,0)},n.entries=function(t){return s(a(o.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return i[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},o.set=function(t){var e=new M;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},o.event=null,o.requote=function(t){return t.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,z={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function U(t){return z(t,K),t}var W=function(t,e){return e.querySelector(t)},q=function(t,e){return e.querySelectorAll(t)},Z=function(t,e){var n=t.matches||t[N(t,"matchesSelector")];return Z=function(t,e){return n.call(t,e)},Z(t,e)};"function"==typeof Sizzle&&(W=function(t,e){return Sizzle(t,e)[0]||null},q=Sizzle,Z=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var K=o.selection.prototype=[];function Y(t){return"function"==typeof t?t:function(){return W(t,this)}}function X(t){return"function"==typeof t?t:function(){return q(t,this)}}K.select=function(t){var e,n,r,i,o=[];t=Y(t);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),J.hasOwnProperty(n)?{space:J[n],local:t}:t}},K.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=o.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(tt(e,t[e]));return this}return this.each(tt(t,e))},K.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=rt(t)).length,i=-1;if(e=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},K.sort=function(t){t=ht.apply(this,arguments);for(var e=-1,n=this.length;++e0&&(t=t.slice(0,i));var u=vt.get(t);function l(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return u&&(t=u,a=_t),i?e?function(){var i=a(e,s(arguments));l.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:l:e?j:function(){var e,n=new RegExp("^__on([^.]+)"+o.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}}o.selection.enter=pt,o.selection.enter.prototype=gt,gt.append=K.append,gt.empty=K.empty,gt.node=K.node,gt.call=K.call,gt.size=K.size,gt.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s=r&&(r=e+1);!(a=s[r])&&++r0?1:t<0?-1:0}function Nt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Dt(t){return t>1?0:t<-1?Et:Math.acos(t)}function jt(t){return t>1?It:t<-1?-It:Math.asin(t)}function $t(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;o.interpolateZoom=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],s=e[0],u=e[1],l=e[2],c=s-i,f=u-o,h=c*c+f*f;if(h0&&(t=t.transition().duration(g)),t.call(w.event)}function C(){s&&s.domain(a.range().map((function(t){return(t-h.x)/h.k})).map(a.invert)),f&&f.domain(l.range().map((function(t){return(t-h.y)/h.k})).map(l.invert))}function E(t){m++||t({type:"zoomstart"})}function P(t){C(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function O(t){--m||(t({type:"zoomend"}),e=null)}function I(){var t=this,e=x.of(t,arguments),n=0,r=o.select(c(t)).on(y,(function(){n=1,T(o.mouse(t),i),P(e)})).on(_,(function(){r.on(y,null).on(_,null),a(n),O(e)})),i=S(o.mouse(t)),a=wt(t);Es.call(t),E(e)}function M(){var t,e=this,n=x.of(e,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,l="touchend"+s,c=[],f=o.select(e),d=wt(e);function p(){var n=o.touches(e);return t=h.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=S(t))})),n}function g(){var t=o.event.target;o.select(t).on(u,m).on(l,y),c.push(t);for(var n=o.event.changedTouches,s=0,f=n.length;s1){v=d[0];var _=d[1],b=v[0]-_[0],x=v[1]-_[1];a=b*b+x*x}}function m(){var s,u,l,c,f=o.touches(e);Es.call(e);for(var h=0,d=f.length;h360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new se(o(t+120),o(t),o(t-120))}function Zt(t,e,n){return this instanceof Zt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof Zt?new Zt(t.h,t.c,t.l):function(t,e,n){return t>0?new Zt(Math.atan2(n,e)*Lt,Math.sqrt(e*e+n*n),t):new Zt(NaN,NaN,t)}(t instanceof Xt?t.l:(t=pe((t=o.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Zt(t,e,n)}Wt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,this.l/t)},Wt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,t*this.l)},Wt.rgb=function(){return qt(this.h,this.s,this.l)},o.hcl=Zt;var Kt=Zt.prototype=new zt;function Yt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Xt(n,Math.cos(t*=Mt)*e,Math.sin(t)*e)}function Xt(t,e,n){return this instanceof Xt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof Xt?new Xt(t.l,t.a,t.b):t instanceof Zt?Yt(t.h,t.c,t.l):pe((t=se(t)).r,t.g,t.b):new Xt(t,e,n)}Kt.brighter=function(t){return new Zt(this.h,this.c,Math.min(100,this.l+Qt*(arguments.length?t:1)))},Kt.darker=function(t){return new Zt(this.h,this.c,Math.max(0,this.l-Qt*(arguments.length?t:1)))},Kt.rgb=function(){return Yt(this.h,this.c,this.l).rgb()},o.lab=Xt;var Qt=18,Jt=.95047,te=1,ee=1.08883,ne=Xt.prototype=new zt;function re(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return new se(ae(3.2404542*(i=ie(i)*Jt)-1.5371385*(r=ie(r)*te)-.4985314*(o=ie(o)*ee)),ae(-.969266*i+1.8760108*r+.041556*o),ae(.0556434*i-.2040259*r+1.0572252*o))}function ie(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function oe(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ae(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function se(t,e,n){return this instanceof se?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof se?new se(t.r,t.g,t.b):he(""+t,se,qt):new se(t,e,n)}function ue(t){return new se(t>>16,t>>8&255,255&t)}function le(t){return ue(t)+""}ne.brighter=function(t){return new Xt(Math.min(100,this.l+Qt*(arguments.length?t:1)),this.a,this.b)},ne.darker=function(t){return new Xt(Math.max(0,this.l-Qt*(arguments.length?t:1)),this.a,this.b)},ne.rgb=function(){return re(this.l,this.a,this.b)},o.rgb=se;var ce=se.prototype=new zt;function fe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function he(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(me(i[0]),me(i[1]),me(i[2]))}return(o=ve.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function de(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e0&&u<1?0:r),new Ut(r,i,u)}function pe(t,e,n){var r=oe((.4124564*(t=ge(t))+.3575761*(e=ge(e))+.1804375*(n=ge(n)))/Jt),i=oe((.2126729*t+.7151522*e+.072175*n)/te);return Xt(116*i-16,500*(r-i),200*(i-oe((.0193339*t+.119192*e+.9503041*n)/ee)))}function ge(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function me(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}ce.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,l)}return this.XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(t)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=f:l.onreadystatechange=function(){l.readyState>3&&f()},l.onprogress=function(t){var e=o.event;o.event=t;try{a.progress.call(i,l)}finally{o.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return n=t,i},["get","post"].forEach((function(t){i[t]=function(){return i.send.apply(i,[t].concat(s(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=c&&(l.responseType=c),null!=o&&i.on("error",o).on("load",(function(t){o(null,t)})),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}ve.forEach((function(t,e){ve.set(t,ue(e))})),o.functor=ye,o.xhr=_e(L),o.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=be(t,e,null==n?o:a(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?o:a(t)):n},i}function o(t){return i.parse(t.responseText)}function a(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(u).join(t)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,(function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i}))},i.parseRows=function(t,e){var n,i,o={},a={},s=[],u=t.length,l=0,c=0;function f(){if(l>=u)return a;if(i)return i=!1,o;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++24?(isFinite(e)&&(clearTimeout(Ae),Ae=setTimeout(Ce,e)),Se=0):(Se=1,Te(Ce))}function Ee(){for(var t=Date.now(),e=xe;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Pe(){for(var t,e=xe,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Me(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:L;return function(t){var n=Le.exec(t),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",l=n[4]||"",c=n[5],f=+n[6],h=n[7],d=n[8],p=n[9],g=1,m="",v="",y=!1,_=!0;switch(d&&(d=+d.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),p){case"n":h=!0,p="g";break;case"%":g=100,v="%",p="f";break;case"p":g=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(m="0"+p.toLowerCase());case"c":_=!1;case"d":y=!0,d=0;break;case"s":g=-1,p="r"}"$"===l&&(m=i[0],v=i[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=Re.get(p)||Ne;var b=c&&h;return function(t){var n=v;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(g<0){var l=o.formatPrefix(t,d);t=l.scale(t),n=l.symbol+v}else t*=g;var x,w,S=(t=p(t,d)).lastIndexOf(".");if(S<0){var A=_?t.lastIndexOf("e"):-1;A<0?(x=t,w=""):(x=t.substring(0,A),w=t.substring(A))}else x=t.substring(0,S),w=e+t.substring(S+1);!c&&h&&(x=a(x,1/0));var T=m.length+x.length+w.length+(b?0:i.length),k=T"===s?k+i+t:"^"===s?k.substring(0,T>>=1)+i+t+k.substring(T):i+(b?t:k+t))+n}}}o.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=o.round(t,Oe(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ie[8+n/3]};var Le=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Re=o.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=o.round(t,Oe(t,e))).toFixed(Math.max(0,Math.min(20,Oe(t*(1+1e-15),e))))}});function Ne(t){return t+""}var De=o.time={},je=Date;function $e(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}$e.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Fe.setUTCDate.apply(this._,arguments)},setDay:function(){Fe.setUTCDay.apply(this._,arguments)},setFullYear:function(){Fe.setUTCFullYear.apply(this._,arguments)},setHours:function(){Fe.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Fe.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Fe.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Fe.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Fe.setUTCSeconds.apply(this._,arguments)},setTime:function(){Fe.setTime.apply(this._,arguments)}};var Fe=Date.prototype;function Be(t,e,n){function r(e){var n=t(e),r=o(n,1);return e-n1)for(;a=l)return-1;if(37===(i=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=w[a in Ge?e.charAt(s++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(je=$e);return n._=t,e(n)}finally{je=Date}}return n.parse=function(t){try{je=$e;var n=e.parse(t);return n&&n._}finally{je=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=fn;var h=o.map(),d=qe(a),p=Ze(a),g=qe(s),m=Ze(s),v=qe(u),y=Ze(u),_=qe(l),b=Ze(l);i.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var x={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:c(e),d:function(t,e){return We(t.getDate(),e,2)},e:function(t,e){return We(t.getDate(),e,2)},H:function(t,e){return We(t.getHours(),e,2)},I:function(t,e){return We(t.getHours()%12||12,e,2)},j:function(t,e){return We(1+De.dayOfYear(t),e,3)},L:function(t,e){return We(t.getMilliseconds(),e,3)},m:function(t,e){return We(t.getMonth()+1,e,2)},M:function(t,e){return We(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return We(t.getSeconds(),e,2)},U:function(t,e){return We(De.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return We(De.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return We(t.getFullYear()%100,e,2)},Y:function(t,e){return We(t.getFullYear()%1e4,e,4)},Z:ln,"%":function(){return"%"}},w={a:function(t,e,n){g.lastIndex=0;var r=g.exec(e.slice(n));return r?(t.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){d.lastIndex=0;var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){v.lastIndex=0;var r=v.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return f(t,x.c.toString(),e,n)},d:nn,e:nn,H:on,I:on,j:rn,L:un,m:en,M:an,p:function(t,e,n){var r=h.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:sn,U:Ye,w:Ke,W:Xe,x:function(t,e,n){return f(t,x.x.toString(),e,n)},X:function(t,e,n){return f(t,x.X.toString(),e,n)},y:Je,Y:Qe,Z:tn,"%":cn};return c}De.year=Be((function(t){return(t=De.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),De.years=De.year.range,De.years.utc=De.year.utc.range,De.day=Be((function(t){var e=new je(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),De.days=De.day.range,De.days.utc=De.day.utc.range,De.dayOfYear=function(t){var e=De.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=De[t]=Be((function(t){return(t=De.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=De.year(t).getDay();return Math.floor((De.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));De[t+"s"]=n.range,De[t+"s"].utc=n.utc.range,De[t+"OfYear"]=function(t){var n=De.year(t).getDay();return Math.floor((De.dayOfYear(t)+(n+e)%7)/7)}})),De.week=De.sunday,De.weeks=De.sunday.range,De.weeks.utc=De.sunday.utc.range,De.weekOfYear=De.sundayOfYear;var Ge={"-":"",_:" ",0:"0"},ze=/^\s*\d+/,Ue=/^%/;function We(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+i[0].length):-1}function tn(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function en(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function nn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function rn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function on(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function an(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function sn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function un(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ln(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=w(e)/60|0,i=w(e)%60;return n+We(r,"0",2)+We(i,"0",2)}function cn(t,e,n){Ue.lastIndex=0;var r=Ue.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function fn(t){for(var e=t.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(e),l=Math.sin(e),c=i*l,f=r*u+c*Math.cos(s),h=c*a*Math.sin(s);Ln.add(Math.atan2(h,f)),n=t,r=u,i=l}Rn.point=function(a,s){Rn.point=o,n=(t=a)*Mt,r=Math.cos(s=(e=s)*Mt/2+Et/4),i=Math.sin(s)},Rn.lineEnd=function(){o(t,e)}}function Dn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function jn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function $n(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Fn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Bn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Vn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Hn(t){return[Math.atan2(t[1],t[0]),jt(t[2])]}function Gn(t,e){return w(t[0]-e[0])kt?r=90:l<-kt&&(e=-90),f[0]=t,f[1]=n}};function d(i,o){c.push(f=[t=i,n=i]),or&&(r=o)}function p(o,a){var s=Dn([o*Mt,a*Mt]);if(u){var l=$n(u,s),c=$n([l[1],-l[0],0],l);Vn(c),c=Hn(c);var f=o-i,h=f>0?1:-1,p=c[0]*Lt*h,g=w(f)>180;if(g^(h*ir&&(r=m);else if(g^(h*i<(p=(p+360)%360-180)&&pr&&(r=a);g?ob(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o):n>=t?(on&&(n=o)):o>i?b(t,o)>b(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o)}else d(o,a);u=s,i=o}function g(){h.point=p}function m(){f[0]=t,f[1]=n,h.point=d,u=null}function v(t,e){if(u){var n=t-i;l+=w(n)>180?n+(n>0?360:-360):n}else a=t,s=e;Rn.point(t,e),p(t,e)}function y(){Rn.lineStart()}function _(){v(a,s),Rn.lineEnd(),w(l)>kt&&(t=-(n=180)),f[0]=t,f[1]=n,u=null}function b(t,e){return(e-=t)<0?e+360:e}function x(t,e){return t[0]-e[0]}function S(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tb(g[0],g[1])&&(g[1]=d[1]),b(d[0],g[1])>b(g[0],g[1])&&(g[0]=d[0])):s.push(g=d);for(var u,l,d,p=-1/0,g=(a=0,s[l=s.length-1]);a<=l;g=d,++a)d=s[a],(u=b(g[1],d[0]))>p&&(p=u,t=d[0],n=g[1])}return c=f=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),o.geo.centroid=function(t){wn=Sn=An=Tn=kn=Cn=En=Pn=On=In=Mn=0,o.geo.stream(t,zn);var e=On,n=In,r=Mn,i=e*e+n*n+r*r;return i=0;--s)i.point((f=c[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function Jn(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,S=w*x,A=S>Et,T=p*_;if(Ln.add(Math.atan2(T*w*Math.sin(S),g*b+T*Math.cos(S))),o+=A?x+w*Pt:x,A^h>=n^v>=n){var k=$n(Dn(f),Dn(t));Vn(k);var C=$n(i,k);Vn(C);var E=(A^x>=0?-1:1)*jt(C[2]);(r>E||r===E&&(k[0]||k[1]))&&(a+=A^x>=0?1:-1)}if(!m++)break;h=v,p=_,g=b,f=t}}return(o<-kt||o0){for(_||(a.polygonStart(),_=!0),a.lineStart();++o1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(nr))}return c}}function nr(t){return t.length>1}function rr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:j,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function ir(t,e){return((t=t.x)[0]<0?t[1]-It-kt:It-t[1])-((e=e.x)[0]<0?e[1]-It-kt:It-e[1])}var or=er(Xn,(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?Et:-Et,u=w(o-n);w(u-Et)0?It:-It),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=Et&&(w(n-i)kt?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*It,r.point(-Et,i),r.point(0,i),r.point(Et,i),r.point(Et,0),r.point(Et,-i),r.point(0,-i),r.point(-Et,-i),r.point(-Et,0),r.point(-Et,i);else if(w(t[0]-e[0])>kt){var o=t[0]0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=n-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o0&&(i.a={x:u+c*h,y:l+c*d}),f<1&&(i.b={x:u+f*h,y:l+f*d}),i}}}}}}var sr=1e9;function ur(t,e,n,r){return function(u){var l,c,f,h,d,p,g,m,v,y,_,b=u,x=rr(),w=ar(t,e,n,r),S={point:k,lineStart:function(){S.point=C,c&&c.push(f=[]),y=!0,v=!1,g=m=NaN},lineEnd:function(){l&&(C(h,d),p&&v&&x.rejoin(),l.push(x.buffer())),S.point=k,v&&u.lineEnd()},polygonStart:function(){u=x,l=[],c=[],_=!0},polygonEnd:function(){u=b,l=o.merge(l);var e=function(t){for(var e=0,n=c.length,r=t[1],i=0;ir&&Nt(l,o,t)>0&&++e:o[1]<=r&&Nt(l,o,t)<0&&--e,l=o;return 0!==e}([t,r]),n=_&&e,i=l.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),A(null,null,1,u),u.lineEnd()),i&&Qn(l,a,e,A,u),u.polygonEnd()),l=c=f=null}};function A(o,a,u,l){var c=0,f=0;if(null==o||(c=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+u+4)%4)!==f);else l.point(a[0],a[1])}function T(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function k(t,e){T(t,e)&&u.point(t,e)}function C(t,e){var n=T(t=Math.max(-1e9,Math.min(sr,t)),e=Math.max(-1e9,Math.min(sr,e)));if(c&&f.push([t,e]),y)h=t,d=e,p=n,y=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&v)u.point(t,e);else{var r={a:{x:g,y:m},b:{x:t,y:e}};w(r)?(v||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),_=!1):n&&(u.lineStart(),u.point(t,e),_=!1)}g=t,m=e,v=n}return S};function i(r,i){return w(r[0]-t)0?0:3:w(r[0]-n)0?2:1:w(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return s(t.x,e.x)}function s(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function lr(t){var e=0,n=Et/3,r=Lr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Et/180,n=t[1]*Et/180):[e/Et*180,n/Et*180]},i}function cr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,jt((i-(t*t+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(s){return arguments.length?(o=ur(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return lr(cr)}).raw=cr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var t,e,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};function l(i){var o=i[0],a=i[1];return t=null,e(o,a),t||(n(o,a),t)||r(o,a),t}return l.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(t)},l.stream=function(t){var e=i.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},l.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),l):i.precision()},l.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),l.translate(i.translate())):i.scale()},l.translate=function(t){if(!arguments.length)return i.translate();var o=i.scale(),c=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(u).point,n=a.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+kt,f+.12*o+kt],[c-.214*o-kt,f+.234*o-kt]]).stream(u).point,r=s.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+kt,f+.166*o+kt],[c-.115*o-kt,f+.234*o-kt]]).stream(u).point,l},l.scale(1070)};var fr,hr,dr,pr,gr,mr,vr={point:j,lineStart:j,lineEnd:j,polygonStart:function(){hr=0,vr.lineStart=yr},polygonEnd:function(){vr.lineStart=vr.lineEnd=vr.point=j,fr+=w(hr/2)}};function yr(){var t,e,n,r;function i(t,e){hr+=r*t-n*e,n=t,r=e}vr.point=function(o,a){vr.point=i,t=n=o,e=r=a},vr.lineEnd=function(){i(t,e)}}var _r={point:function(t,e){tgr&&(gr=t),emr&&(mr=e)},lineStart:j,lineEnd:j,polygonStart:j,polygonEnd:j};function br(){var t=xr(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=xr(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=o}function o(t,n){e.push("L",t,",",n)}function a(){n.point=r}function s(){e.push("Z")}return n}function xr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var wr,Sr={point:Ar,lineStart:Tr,lineEnd:kr,polygonStart:function(){Sr.lineStart=Cr},polygonEnd:function(){Sr.point=Ar,Sr.lineStart=Tr,Sr.lineEnd=kr}};function Ar(t,e){An+=t,Tn+=e,++kn}function Tr(){var t,e;function n(n,r){var i=n-t,o=r-e,a=Math.sqrt(i*i+o*o);Cn+=a*(t+n)/2,En+=a*(e+r)/2,Pn+=a,Ar(t=n,e=r)}Sr.point=function(r,i){Sr.point=n,Ar(t=r,e=i)}}function kr(){Sr.point=Ar}function Cr(){var t,e,n,r;function i(t,e){var i=t-n,o=e-r,a=Math.sqrt(i*i+o*o);Cn+=a*(n+t)/2,En+=a*(r+e)/2,Pn+=a,On+=(a=r*t-n*e)*(n+t),In+=a*(r+e),Mn+=3*a,Ar(n=t,r=e)}Sr.point=function(o,a){Sr.point=i,Ar(t=n=o,e=r=a)},Sr.lineEnd=function(){i(t,e)}}function Er(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=t,n},result:j};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Pt)}function i(e,r){t.moveTo(e,r),n.point=o}function o(e,n){t.lineTo(e,n)}function a(){n.point=r}function s(){t.closePath()}return n}function Pr(t){var e=.5,n=Math.cos(30*Mt),r=16;function i(t){return(r?a:o)(t)}function o(e){return Ir(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function a(e){var n,i,o,a,u,l,c,f,h,d,p,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=x},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){f=NaN,m.point=_,e.lineStart()}function _(n,i){var o=Dn([n,i]),a=t(n,i);s(f,h,c,d,p,g,f=a[0],h=a[1],c=n,d=o[0],p=o[1],g=o[2],r,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function x(){y(),m.point=w,m.lineEnd=S}function w(t,e){_(n=t,e),i=f,o=h,a=d,u=p,l=g,m.point=_}function S(){s(f,h,c,d,p,g,i,o,n,a,u,l,r,e),m.lineEnd=b,b()}return m}function s(r,i,o,a,u,l,c,f,h,d,p,g,m,v){var y=c-r,_=f-i,b=y*y+_*_;if(b>4*e&&m--){var x=a+d,S=u+p,A=l+g,T=Math.sqrt(x*x+S*S+A*A),k=Math.asin(A/=T),C=w(w(A)-1)e||w((y*I+_*M)/b-.5)>.3||a*d+u*p+l*g0&&16,i):Math.sqrt(e)},i}function Or(t){this.stream=t}function Ir(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Mr(t){return Lr((function(){return t}))()}function Lr(t){var e,n,r,i,a,s,u=Pr((function(t,n){return[(t=e(t,n))[0]*l+i,a-t[1]*l]})),l=150,c=480,f=250,h=0,d=0,p=0,g=0,m=0,v=or,y=L,_=null,b=null;function x(t){return[(t=r(t[0]*Mt,t[1]*Mt))[0]*l+i,a-t[1]*l]}function S(t){return(t=r.invert((t[0]-i)/l,(a-t[1])/l))&&[t[0]*Lt,t[1]*Lt]}function A(){r=Yn(n=jr(p,g,m),e);var t=e(h,d);return i=c-t[0]*l,a=f+t[1]*l,T()}function T(){return s&&(s.valid=!1,s=null),x}return x.stream=function(t){return s&&(s.valid=!1),(s=Rr(v(n,u(y(t))))).valid=!0,s},x.clipAngle=function(t){return arguments.length?(v=null==t?(_=t,or):function(t){var e=Math.cos(t),n=e>0,r=w(e)>kt;return er(i,(function(t){var e,s,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,h){var d,p=[f,h],g=i(f,h),m=n?g?0:a(f,h):g?a(f+(f<0?Et:-Et),h):0;if(!e&&(l=u=g)&&t.lineStart(),g!==u&&(d=o(e,p),(Gn(e,d)||Gn(p,d))&&(p[0]+=kt,p[1]+=kt,g=i(p[0],p[1]))),g!==u)c=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(r&&e&&n^g){var v;m&s||!(v=o(p,e,!0))||(c=0,n?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&&Gn(e,p)||t.point(p[0],p[1]),e=p,u=g,s=m},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}}),Vr(t,6*Mt),n?[0,-t]:[-Et,t-Et]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function o(t,n,r){var i=[1,0,0],o=$n(Dn(t),Dn(n)),a=jn(o,o),s=o[0],u=a-s*s;if(!u)return!r&&t;var l=e*a/u,c=-e*s/u,f=$n(i,o),h=Bn(i,l);Fn(h,Bn(o,c));var d=f,p=jn(h,d),g=jn(d,d),m=p*p-g*(jn(h,h)-1);if(!(m<0)){var v=Math.sqrt(m),y=Bn(d,(-p-v)/g);if(Fn(y,h),y=Hn(y),!r)return y;var _,b=t[0],x=n[0],S=t[1],A=n[1];x0^y[1]<(w(y[0]-b)Et^(b<=y[0]&&y[0]<=x)){var C=Bn(d,(-p+v)/g);return Fn(C,h),[y,Hn(C)]}}}function a(e,r){var i=n?t:Et-t,o=0;return e<-i?o|=1:e>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}((_=+t)*Mt),T()):_},x.clipExtent=function(t){return arguments.length?(b=t,y=t?ur(t[0][0],t[0][1],t[1][0],t[1][1]):L,T()):b},x.scale=function(t){return arguments.length?(l=+t,A()):l},x.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],A()):[c,f]},x.center=function(t){return arguments.length?(h=t[0]%360*Mt,d=t[1]%360*Mt,A()):[h*Lt,d*Lt]},x.rotate=function(t){return arguments.length?(p=t[0]%360*Mt,g=t[1]%360*Mt,m=t.length>2?t[2]%360*Mt:0,A()):[p*Lt,g*Lt,m*Lt]},o.rebind(x,u,"precision"),function(){return e=t.apply(this,arguments),x.invert=e.invert&&S,A()}}function Rr(t){return Ir(t,(function(e,n){t.point(e*Mt,n*Mt)}))}function Nr(t,e){return[t,e]}function Dr(t,e){return[t>Et?t-Pt:t<-Et?t+Pt:t,e]}function jr(t,e,n){return t?e||n?Yn(Fr(t),Br(e,n)):Fr(t):e||n?Br(e,n):Dr}function $r(t){return function(e,n){return[(e+=t)>Et?e-Pt:e<-Et?e+Pt:e,n]}}function Fr(t){var e=$r(t);return e.invert=$r(-t),e}function Br(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),o=Math.sin(e);function a(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*n+s*r;return[Math.atan2(u*i-c*o,s*n-l*r),jt(c*i+u*o)]}return a.invert=function(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*i-u*o;return[Math.atan2(u*i+l*o,s*n+c*r),jt(c*n-s*r)]},a}function Vr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=Hr(n,i),o=Hr(n,o),(a>0?io)&&(i+=a*Pt)):(i=t+a*Pt,o=t-.5*u);for(var l,c=i;a>0?c>o:c2?t[2]*Mt:0),e.invert=function(e){return(e=t.invert(e[0]*Mt,e[1]*Mt))[0]*=Lt,e[1]*=Lt,e},e},Dr.invert=Nr,o.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=jr(-t[0]*Mt,-t[1]*Mt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=Lt,t[1]*=Lt}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Vr((t=+n)*Mt,r*Mt),i):t},i.precision=function(n){return arguments.length?(e=Vr(t*Mt,(r=+n)*Mt),i):r},i.angle(90)},o.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Mt,i=t[1]*Mt,o=e[1]*Mt,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},o.geo.graticule=function(){var t,e,n,r,i,a,s,u,l,c,f,h,d=10,p=d,g=90,m=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return o.range(Math.ceil(r/g)*g,n,g).map(f).concat(o.range(Math.ceil(u/m)*m,s,m).map(h)).concat(o.range(Math.ceil(e/d)*d,t,d).filter((function(t){return w(t%g)>kt})).map(l)).concat(o.range(Math.ceil(a/p)*p,i,p).filter((function(t){return w(t%m)>kt})).map(c))}return y.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.majorExtent(t).minorExtent(t):y.minorExtent()},y.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),u>s&&(t=u,u=s,s=t),y.precision(v)):[[r,u],[n,s]]},y.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(v)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.majorStep(t).minorStep(t):y.minorStep()},y.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],y):[g,m]},y.minorStep=function(t){return arguments.length?(d=+t[0],p=+t[1],y):[d,p]},y.precision=function(o){return arguments.length?(v=+o,l=Gr(a,i,90),c=zr(e,t,v),f=Gr(u,s,90),h=zr(r,n,v),y):v},y.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},o.geo.greatArc=function(){var t,e,n=Ur,r=Wr;function i(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},i.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,i):n},i.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(t,e){return n=t[0]*Mt,r=t[1]*Mt,i=e[0]*Mt,o=e[1]*Mt,a=Math.cos(r),s=Math.sin(r),u=Math.cos(o),l=Math.sin(o),c=a*Math.cos(n),f=a*Math.sin(n),h=u*Math.cos(i),d=u*Math.sin(i),p=2*Math.asin(Math.sqrt(Ft(o-r)+a*u*Ft(i-n))),g=1/Math.sin(p),(m=p?function(t){var e=Math.sin(t*=p)*g,n=Math.sin(p-t)*g,r=n*c+e*h,i=n*f+e*d,o=n*s+e*l;return[Math.atan2(i,r)*Lt,Math.atan2(o,Math.sqrt(r*r+i*i))*Lt]}:function(){return[n*Lt,r*Lt]}).distance=p,m;var n,r,i,o,a,s,u,l,c,f,h,d,p,g,m},o.geo.length=function(t){return wr=0,o.geo.stream(t,qr),wr};var qr={sphere:j,point:j,lineStart:function(){var t,e,n;function r(r,i){var o=Math.sin(i*=Mt),a=Math.cos(i),s=w((r*=Mt)-t),u=Math.cos(s);wr+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-e*a*u)*s),e*o+n*a*u),t=r,e=o,n=a}qr.point=function(i,o){t=i*Mt,e=Math.sin(o*=Mt),n=Math.cos(o),qr.point=r},qr.lineEnd=function(){qr.point=qr.lineEnd=j}},lineEnd:j,polygonStart:j,polygonEnd:j};function Zr(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}var Kr=Zr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(o.geo.azimuthalEqualArea=function(){return Mr(Kr)}).raw=Kr;var Yr=Zr((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),L);function Xr(t,e){var n=Math.cos(t),r=function(t){return Math.tan(Et/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),o=n*Math.pow(r(t),i)/i;if(!i)return ti;function a(t,e){o>0?e<-It+kt&&(e=-It+kt):e>It-kt&&(e=It-kt);var n=o/Math.pow(r(e),i);return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}return a.invert=function(t,e){var n=o-e,r=Rt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(o/r,1/i))-It]},a}function Qr(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(w(r)1&&Nt(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ui(t,e){return t[0]-e[0]||t[1]-e[1]}(o.geo.stereographic=function(){return Mr(ri)}).raw=ri,ii.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-It]},(o.geo.transverseMercator=function(){var t=ei(ii),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=ii,o.geom={},o.geom.hull=function(t){var e=oi,n=ai;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=ye(e),o=ye(n),a=t.length,s=[],u=[];for(r=0;r=0;--r)d.push(t[s[l[r]][2]]);for(r=+f;rkt)s=s.L;else{if(!((i=o-ki(s,a))>kt)){r>-kt?(e=s.P,n=s):i>-kt?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=xi(t);if(gi.insert(e,u),e||n){if(e===n)return Ii(e),n=xi(e.site),gi.insert(u,n),u.edge=n.edge=Ri(e.site,u.site),Oi(e),void Oi(n);if(n){Ii(e),Ii(n);var l=e.site,c=l.x,f=l.y,h=t.x-c,d=t.y-f,p=n.site,g=p.x-c,m=p.y-f,v=2*(h*m-d*g),y=h*h+d*d,_=g*g+m*m,b={x:(m*y-d*_)/v+c,y:(h*_-g*y)/v+f};Ni(n.edge,l,p,b),u.edge=Ri(l,t,null,b),n.edge=Ri(t,p,null,b),Oi(e),Oi(n)}else u.edge=Ri(e.site,u.site)}}function Ti(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function ki(t,e){var n=t.N;if(n)return Ti(n,e);var r=t.site;return r.y===e?r.x:1/0}function Ci(t){this.site=t,this.edges=[]}function Ei(t,e){return e.angle-t.angle}function Pi(){$i(this),this.x=this.y=this.arc=this.site=this.cy=null}function Oi(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,l=r.y-s,c=o.x-a,f=2*(u*(m=o.y-s)-l*c);if(!(f>=-Ct)){var h=u*u+l*l,d=c*c+m*m,p=(m*h-l*d)/f,g=(u*d-c*h)/f,m=g+s,v=_i.pop()||new Pi;v.arc=t,v.site=i,v.x=p+a,v.y=m+Math.sqrt(p*p+g*g),v.cy=m,t.circle=v;for(var y=null,_=vi._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}vi.insert(y,v),y||(mi=v)}}}}function Ii(t){var e=t.circle;e&&(e.P||(mi=e.N),vi.remove(e),_i.push(e),$i(e),t.circle=null)}function Mi(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],s=e[1][0],u=e[0][1],l=e[1][1],c=t.l,f=t.r,h=c.x,d=c.y,p=f.x,g=f.y,m=(h+p)/2,v=(d+g)/2;if(g===d){if(m=s)return;if(h>p){if(o){if(o.y>=l)return}else o={x:m,y:u};n={x:m,y:l}}else{if(o){if(o.y1)if(h>p){if(o){if(o.y>=l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xkt||w(i-n)>kt)&&(s.splice(a,0,new Di((v=o.site,y=c,_=w(r-f)kt?{x:f,y:w(e-f)kt?{x:w(n-p)kt?{x:h,y:w(e-h)kt?{x:w(n-d)=n&&l.x<=i&&l.y>=r&&l.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return a.links=function(t){return Hi(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},a.triangles=function(t){var e=[];return Hi(s(t)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,l=n.edges.sort(Ei),c=-1,f=l.length,h=l[f-1].edge,d=h.l===u?h.r:h.l;++co&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yi(n,r)})),o=Ji.lastIndex;return og&&(g=u.x),u.y>m&&(m=u.y),l.push(u.x),c.push(u.y);else for(f=0;fg&&(g=_),b>m&&(m=b),l.push(_),c.push(b)}var x=g-d,S=m-p;function A(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,l=t.y;if(null!=u)if(w(u-n)+w(l-r)<.01)T(t,e,n,r,i,o,a,s);else{var c=t.point;t.x=t.y=t.point=null,T(t,c,u,l,i,o,a,s),T(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else T(t,e,n,r,i,o,a,s)}function T(t,e,n,r,i,o,a,s){var u=.5*(i+a),l=.5*(o+s),c=n>=u,f=r>=l,h=f<<1|c;t.leaf=!1,c?i=u:a=u,f?o=l:s=l,A(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,i,o,a,s)}x>S?m=p+x:g=d+S;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){A(k,t,+v(t,++f),+y(t,f),d,p,g,m)}};if(k.visit=function(t){qi(t,k,d,p,g,m)},k.find=function(t){return function(t,e,n,r,i,o,a){var s,u=1/0;return function t(l,c,f,h,d){if(!(c>o||f>a||h=x)<<1|e>=b,S=w+4;w=0&&!(n=o.interpolators[r](t,e)););return n}function eo(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;n=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function co(t){return 1-Math.cos(t*It)}function fo(t){return Math.pow(2,10*(t-1))}function ho(t){return 1-Math.sqrt(1-t*t)}function po(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function go(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function mo(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=yo(i),s=vo(i,o),u=yo(((e=o)[0]+=(r=-s)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]=0?t.slice(0,n):t,i=n>=0?t.slice(n+1):"in";return r=ro.get(r)||no,i=io.get(i)||L,e=i(r.apply(null,a.call(arguments,1))),function(t){return t<=0?0:t>=1?1:e(t)}},o.interpolateHcl=function(t,e){t=o.hcl(t),e=o.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,s=e.c-r,u=e.l-i;return isNaN(s)&&(s=0,r=isNaN(r)?e.c:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360),function(t){return Yt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateHsl=function(t,e){t=o.hsl(t),e=o.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,s=e.s-r,u=e.l-i;return isNaN(s)&&(s=0,r=isNaN(r)?e.s:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360),function(t){return qt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateLab=function(t,e){t=o.lab(t),e=o.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,s=e.a-r,u=e.b-i;return function(t){return re(n+a*t,r+s*t,i+u*t)+""}},o.interpolateRound=go,o.transform=function(t){var e=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new mo(n?n.matrix:_o)})(t)},mo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _o={a:1,b:0,c:0,d:1,e:0,f:0};function bo(t){return t.length?t.pop()+",":""}function xo(t,e){var n=[],r=[];return t=o.transform(t),e=o.transform(e),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Yi(t[0],e[0])},{i:i-2,x:Yi(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}(t.translate,e.translate,n,r),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(bo(n)+"rotate(",null,")")-2,x:Yi(t,e)})):e&&n.push(bo(n)+"rotate("+e+")")}(t.rotate,e.rotate,n,r),function(t,e,n,r){t!==e?r.push({i:n.push(bo(n)+"skewX(",null,")")-2,x:Yi(t,e)}):e&&n.push(bo(n)+"skewX("+e+")")}(t.skew,e.skew,n,r),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(bo(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Yi(t[0],e[0])},{i:i-2,x:Yi(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(bo(n)+"scale("+e+")")}(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,o=r.length;++i0?n=e:(t.c=null,t.t=NaN,t=null,u.end({type:"end",alpha:n=0})):e>0&&(u.start({type:"start",alpha:n=e}),t=ke(s.tick)),s):n},s.start=function(){var t,e,n,o=v.length,u=y.length,c=l[0],p=l[1];for(t=0;t=0;)n.push(i[r])}function Do(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=l}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Do(i,(function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)})),s}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(No(t,(function(t){t.children&&(t.value=0)})),Do(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},o.layout.partition=function(){var t=o.layout.hierarchy(),e=[1,1];function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=t.value?r/t.value:0;++ls&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=e);return r}function Yo(t){return t.reduce(Xo,0)}function Xo(t,e){return t+e[1]}function Qo(t,e){return Jo(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Jo(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function ta(t){return[o.min(t),o.max(t)]}function ea(t,e){return t.value-e.value}function na(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function ra(t,e){t._pack_next=e,e._pack_prev=t}function ia(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function oa(t){if((e=t.children)&&(u=e.length)){var e,n,r,i,o,a,s,u,l=1/0,c=-1/0,f=1/0,h=-1/0;if(e.forEach(aa),(n=e[0]).x=-n.r,n.y=0,_(n),u>1&&((r=e[1]).x=r.r,r.y=0,_(r),u>2))for(la(n,r,i=e[2]),_(i),na(n,i),n._pack_prev=i,na(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=l[o.bisect(h,u,1,p)-1]).y+=g,s.push(i[a]));return l}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(n=ye(t),i):n},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return Jo(e,t)}:ye(t),i):r},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},o.layout.pack=function(){var t,e=o.layout.hierarchy().sort(ea),n=0,r=[1,1];function i(i,o){var a=e.call(this,i,o),s=a[0],u=r[0],l=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Do(s,(function(t){t.r=+c(t.value)})),Do(s,oa),n){var f=n*(t?1:Math.max(2*s.r/u,2*s.r/l))/2;Do(s,(function(t){t.r+=f})),Do(s,oa),Do(s,(function(t){t.r-=f}))}return ua(s,u/2,l/2,t?1:1/Math.max(2*s.r/u,2*s.r/l)),a}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(t){return arguments.length?(n=+t,i):n},Ro(i,e)},o.layout.tree=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ca,n=[1,1],r=null;function i(i,o){var l=t.call(this,i,o),c=l[0],f=function(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;ad.x&&(d=t),t.depth>p.depth&&(p=t)}));var g=e(h,d)/2-h.x,m=n[0]/(d.x+e(d,h)/2+g),v=n[1]/(p.depth||1);No(c,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return l}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,h=u.m;s=ha(s),o=fa(o),s&&o;)u=fa(u),(a=ha(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(da(pa(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,h+=u.m,c+=a.m;s&&!ha(a)&&(a.t=s,a.m+=f-c),o&&!fa(u)&&(u.t=o,u.m+=l-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t)?u:null,i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:u,i):r?n:null},Ro(i,t)},o.layout.cluster=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ca,n=[1,1],r=!1;function i(i,a){var s,u=t.call(this,i,a),l=u[0],c=0;Do(l,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+o.max(t,(function(t){return t.y}))}(n)):(t.x=s?c+=e(t,s):0,t.y=0,s=t)}));var f=ga(l),h=ma(l),d=f.x-e(f,h)/2,p=h.x+e(h,f)/2;return Do(l,r?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-d)/(p-d)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),u}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t),i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null!=(n=t),i):r?n:null},Ro(i,t)},o.layout.treemap=function(){var t,e=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=va,s=!1,u="squarify",l=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,i=-1,o=t.length;++i0;)s.push(n=l[i-1]),s.area+=n.area,"squarify"!==u||(r=d(s,g))<=h?(l.pop(),h=r):(s.area-=s.pop().area,p(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,h=1/0);s.length&&(p(s,g,o,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var n,r=a(t),i=e.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(p(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(h)}}function d(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++ai&&(i=n));return e*=e,(r*=r)?Math.max(e*i*l/r,r/(e*o*l)):1/0}function p(t,e,r,i){var o,a=-1,s=t.length,u=r.x,l=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++ar.dx)&&(c=r.dx);++a1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=o.random.normal.apply(o,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=o.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n2?Ta:xa,u=r?So:wo;return i=a(t,e,u,n),o=a(e,t,u,to),s}function s(t){return i(t)}return s.invert=function(t){return o(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),a()):t},s.range=function(t){return arguments.length?(e=t,a()):e},s.rangeRound=function(t){return s.range(t).interpolate(go)},s.clamp=function(t){return arguments.length?(r=t,a()):r},s.interpolate=function(t){return arguments.length?(n=t,a()):n},s.ticks=function(e){return Oa(t,e)},s.tickFormat=function(e,n){return Ia(t,e,n)},s.nice=function(e){return Ea(t,e),a()},s.copy=function(){return ka(t,e,n,r)},a()}function Ca(t,e){return o.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Ea(t,e){return wa(t,Sa(Pa(t,e)[2])),wa(t,Sa(Pa(t,e)[2])),t}function Pa(t,e){null==e&&(e=10);var n=_a(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Oa(t,e){return o.range.apply(o,Pa(t,e))}function Ia(t,e,n){var r=Pa(t,e);if(n){var i=Le.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(w(r[0]),w(r[1])));return i[7]||(i[7]="."+La(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+function(t,e){var n=La(e[2]);return t in Ma?Math.abs(n-La(Math.max(w(e[0]),w(e[1]))))+ +("e"!==t):n-2*("%"===t)}(i[8],r)),n=i.join("")}else n=",."+La(r[2])+"f";return o.format(n)}o.scale.linear=function(){return ka([0,1],[0,1],to,!1)};var Ma={s:1,g:1,p:1,r:1,e:1};function La(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ra(t,e,n,r){function i(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function s(e){return t(i(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),s):r},s.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),s):e},s.nice=function(){var e=wa(r.map(i),n?Math:Da);return t.domain(e),r=e.map(a),s},s.ticks=function(){var t=_a(r),o=[],s=t[0],u=t[1],l=Math.floor(i(s)),c=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;l0;h--)o.push(a(l)*h);for(l=0;o[l]u;c--);o=o.slice(l,c)}return o},s.tickFormat=function(t,n){if(!arguments.length)return Na;arguments.length<2?n=Na:"function"!=typeof n&&(n=o.format(n));var r=Math.max(1,e*t/s.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return o*e0?n[r-1]:t[0],rf?0:1;if(l=Ot)return u(l,d)+(s?u(s,1-d):"")+"Z";var p,g,m,v,y,_,b,x,w,S,A,T,k=0,C=0,E=[];if((v=(+a.apply(this,arguments)||0)/2)&&(m=r===Ka?Math.sqrt(s*s+l*l):+r.apply(this,arguments),d||(C*=-1),l&&(C=jt(m/l*Math.sin(v))),s&&(k=jt(m/s*Math.sin(v)))),l){y=l*Math.cos(c+C),_=l*Math.sin(c+C),b=l*Math.cos(f-C),x=l*Math.sin(f-C);var P=Math.abs(f-c-2*C)<=Et?0:1;if(C&&es(y,_,b,x)===d^P){var O=(c+f)/2;y=l*Math.cos(O),_=l*Math.sin(O),b=x=null}}else y=_=0;if(s){w=s*Math.cos(f-k),S=s*Math.sin(f-k),A=s*Math.cos(c+k),T=s*Math.sin(c+k);var I=Math.abs(c-f+2*k)<=Et?0:1;if(k&&es(w,S,A,T)===1-d^I){var M=(c+f)/2;w=s*Math.cos(M),S=s*Math.sin(M),A=T=null}}else w=S=0;if(h>kt&&(p=Math.min(Math.abs(l-s)/2,+n.apply(this,arguments)))>.001){g=s0?0:1}function ns(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,l=-s*o,c=t[0]+u,f=t[1]+l,h=e[0]+u,d=e[1]+l,p=(c+h)/2,g=(f+d)/2,m=h-c,v=d-f,y=m*m+v*v,_=n-r,b=c*d-h*f,x=(v<0?-1:1)*Math.sqrt(Math.max(0,_*_*y-b*b)),w=(b*v-m*x)/y,S=(-b*m-v*x)/y,A=(b*v+m*x)/y,T=(-b*m+v*x)/y,k=w-p,C=S-g,E=A-p,P=T-g;return k*k+C*C>E*E+P*P&&(w=A,S=T),[[w-u,S-l],[w*n/_,S*n/_]]}function rs(t){var e=oi,n=ai,r=Xn,i=os,o=i.key,a=.7;function s(o){var s,u=[],l=[],c=-1,f=o.length,h=ye(e),d=ye(n);function p(){u.push("M",i(t(l),a))}for(;++c1&&i.push("H",r[0]),i.join("")},"step-before":ss,"step-after":us,basis:fs,"basis-open":function(t){if(t.length<4)return os(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(hs(gs,o)+","+hs(gs,a)),--r;++r9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(t))}});function os(t){return t.length>1?t.join("L"):t+"Z"}function as(t){return t.join("L")+"Z"}function ss(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var l=2;lEt)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(n=ye(t),o):n},o.source=function(e){return arguments.length?(t=ye(e),o):t},o.target=function(t){return arguments.length?(e=ye(t),o):e},o.startAngle=function(t){return arguments.length?(r=ye(t),o):r},o.endAngle=function(t){return arguments.length?(i=ye(t),o):i},o},o.svg.diagonal=function(){var t=Ur,e=Wr,n=xs;function r(r,i){var o=t.call(this,r,i),a=e.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(e){return arguments.length?(t=ye(e),r):t},r.target=function(t){return arguments.length?(e=ye(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},o.svg.diagonal.radial=function(){var t=o.svg.diagonal(),e=xs,n=t.projection;return t.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-It;return[n*Math.cos(r),n*Math.sin(r)]}}(e=t)):e},t},o.svg.symbol=function(){var t=Ss,e=ws;function n(n,r){return(Ts.get(t.call(this,n,r))||As)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=ye(e),n):t},n.size=function(t){return arguments.length?(e=ye(t),n):e},n};var Ts=o.map({circle:As,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Cs)),n=e*Cs;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/ks),n=e*ks/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/ks),n=e*ks/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});o.svg.symbolTypes=Ts.keys();var ks=Math.sqrt(3),Cs=Math.tan(30*Mt);K.transition=function(t){for(var e,n,r=Is||++Rs,i=js(t),o=[],a=Ms||{time:Date.now(),ease:lo,delay:0,duration:250},s=-1,u=this.length;++s0;)l[--h].call(t,a);if(o>=1)return f.event&&f.event.end.call(t,t.__data__,e),--c.count?delete c[r]:delete t[n],1}f||(o=i.time,a=ke((function(t){var e=f.delay;if(a.t=e+o,e<=t)return h(t-e);a.c=h}),0,o),f=c[r]={tween:new A,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++c.count)}Ls.call=K.call,Ls.empty=K.empty,Ls.node=K.node,Ls.size=K.size,o.transition=function(t,e){return t&&t.transition?Is?t.transition(e):t:o.selection().transition(t)},o.transition.prototype=Ls,Ls.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=Y(t);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function g(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function m(){var f,m,v=this,y=o.select(o.event.target),_=n.of(v,arguments),b=o.select(v),x=y.datum(),w=!/^(n|s)$/.test(x)&&r,S=!/^(e|w)$/.test(x)&&i,A=y.classed("extent"),T=wt(v),k=o.mouse(v),C=o.select(c(v)).on("keydown.brush",(function(){32==o.event.keyCode&&(A||(f=null,k[0]-=a[1],k[1]-=s[1],A=2),B())})).on("keyup.brush",(function(){32==o.event.keyCode&&2==A&&(k[0]+=a[1],k[1]+=s[1],A=0,B())}));if(o.event.changedTouches?C.on("touchmove.brush",O).on("touchend.brush",M):C.on("mousemove.brush",O).on("mouseup.brush",M),b.interrupt().selectAll("*").interrupt(),A)k[0]=a[0]-k[0],k[1]=s[0]-k[1];else if(x){var E=+/w$/.test(x),P=+/^n/.test(x);m=[a[1-E]-k[0],s[1-P]-k[1]],k[0]=a[E],k[1]=s[P]}else o.event.altKey&&(f=k.slice());function O(){var t=o.mouse(v),e=!1;m&&(t[0]+=m[0],t[1]+=m[1]),A||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),k[0]=a[+(t[0]1?{floor:function(e){for(;s(e=t.floor(e));)e=Ys(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ys(+e+1);return e}}:t))},r.ticks=function(t,e){var n=_a(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],Ys(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Ks(t.copy(),e,n)},Ca(r,t)}function Ys(t){return new Date(t)}Us.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Zs:qs,Zs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Zs.toString=qs.toString,De.second=Be((function(t){return new je(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),De.seconds=De.second.range,De.seconds.utc=De.second.utc.range,De.minute=Be((function(t){return new je(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),De.minutes=De.minute.range,De.minutes.utc=De.minute.utc.range,De.hour=Be((function(t){var e=t.getTimezoneOffset()/60;return new je(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),De.hours=De.hour.range,De.hours.utc=De.hour.utc.range,De.month=Be((function(t){return(t=De.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),De.months=De.month.range,De.months.utc=De.month.utc.range;var Xs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Qs=[[De.second,1],[De.second,5],[De.second,15],[De.second,30],[De.minute,1],[De.minute,5],[De.minute,15],[De.minute,30],[De.hour,1],[De.hour,3],[De.hour,6],[De.hour,12],[De.day,1],[De.day,2],[De.week,1],[De.month,1],[De.month,3],[De.year,1]],Js=Us.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Xn]]),tu={range:function(t,e,n){return o.range(Math.ceil(t/n)*n,+e,n).map(Ys)},floor:L,ceil:L};Qs.year=De.year,De.scale=function(){return Ks(o.scale.linear(),Qs,Js)};var eu=Qs.map((function(t){return[t[0].utc,t[1]]})),nu=Ws.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Xn]]);function ru(t){return JSON.parse(t.responseText)}function iu(t){var e=u.createRange();return e.selectNode(u.body),e.createContextualFragment(t.responseText)}eu.year=De.year.utc,De.scale.utc=function(){return Ks(o.scale.linear(),eu,nu)},o.text=_e((function(t){return t.responseText})),o.json=function(t,e){return be(t,"application/json",ru,e)},o.html=function(t,e){return be(t,"text/html",iu,e)},o.xml=_e((function(t){return t.responseXML})),this.d3=o,void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)}()},7718:t=>{t.exports=function(t,e){var n={},r={true:!0,false:!1,null:null};return t.replace(/\+/g," ").split("&").forEach((function(t,i){var o,a=t.split("="),s=decodeURIComponent(a[0]),u=n,l=0,c=s.split("]["),f=c.length-1;if(/\[/.test(c[0])&&/\]$/.test(c[f])?(c[f]=c[f].replace(/\]$/,""),f=(c=c.shift().split("[").concat(c)).length-1):f=0,2===a.length)if(o=decodeURIComponent(a[1]),e&&(o=o&&!isNaN(o)?+o:"undefined"===o?void 0:void 0!==r[o]?r[o]:o),f)for(;l<=f;l++)u=u[s=""===c[l]?u.length:c[l]]=l{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,o,a){var s=t.lambda,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n '+u(s(null!=e?c(e,"count"):e,e))+" names published "+u(s(null!=e?c(e,"connector"):e,e))+" "+u(s(null!=e?c(e,"standardForm"):e,e))+'\n \n
\n
\n
\n
'},useData:!0})},5942:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,u="function",l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
"+l(typeof(o=null!=(o=c(n,"display")||(null!=e?c(e,"display"):e))?o:s)===u?o.call(a,{name:"display",hash:{},data:i,loc:{start:{line:1,column:5},end:{line:1,column:16}}}):o)+'
\n'},useData:!0})},3384:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({1:function(t,e,r,i,o,a,s){var u,l=t.lambda,c=t.escapeExpression,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n"},3:function(t,e,n,r,i){var o=t.lambda,a=t.escapeExpression,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n No names '+a(o(null!=e?s(e,"action"):e,e))+" in "+a(o(null!=e?s(e,"current"):e,e))+"\n
\n"},5:function(t,e,n,r,i,o,a){var s,u=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=c(n,"each").call(u,null!=e?c(e,"data"):e,{name:"each",hash:{},fn:t.program(6,i,0,o,a),inverse:t.noop,data:i,loc:{start:{line:36,column:8},end:{line:44,column:17}}}))?s:"")+" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
JanFebMarchAprilMayJuneJulyAugSeptOctNovDecTotal
Total"+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,0,{name:"lookup",hash:{},data:i,loc:{start:{line:47,column:14},end:{line:47,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,1,{name:"lookup",hash:{},data:i,loc:{start:{line:48,column:14},end:{line:48,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,2,{name:"lookup",hash:{},data:i,loc:{start:{line:49,column:14},end:{line:49,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,3,{name:"lookup",hash:{},data:i,loc:{start:{line:50,column:14},end:{line:50,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,4,{name:"lookup",hash:{},data:i,loc:{start:{line:51,column:14},end:{line:51,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,5,{name:"lookup",hash:{},data:i,loc:{start:{line:52,column:14},end:{line:52,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,6,{name:"lookup",hash:{},data:i,loc:{start:{line:53,column:14},end:{line:53,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,7,{name:"lookup",hash:{},data:i,loc:{start:{line:54,column:14},end:{line:54,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,8,{name:"lookup",hash:{},data:i,loc:{start:{line:55,column:14},end:{line:55,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,9,{name:"lookup",hash:{},data:i,loc:{start:{line:56,column:14},end:{line:56,column:35}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,10,{name:"lookup",hash:{},data:i,loc:{start:{line:57,column:14},end:{line:57,column:36}}}))+""+l(c(n,"lookup").call(u,null!=e?c(e,"totals"):e,11,{name:"lookup",hash:{},data:i,loc:{start:{line:58,column:14},end:{line:58,column:36}}}))+""+l(t.lambda(null!=(s=null!=e?c(e,"totals"):e)?c(s,"total"):s,e))+"\n
\n
\n"},6:function(t,e,n,r,i,o,a){var s,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n '+u(t.lambda(i&&c(i,"key"),e))+"\n"+(null!=(s=c(n,"each").call(l,e,{name:"each",hash:{},fn:t.program(7,i,0,o,a),inverse:t.noop,data:i,loc:{start:{line:39,column:10},end:{line:41,column:19}}}))?s:"")+" "+u(c(n,"lookup").call(l,null!=a[1]?c(a[1],"totals"):a[1],i&&c(i,"key"),{name:"lookup",hash:{},data:i,loc:{start:{line:42,column:14},end:{line:42,column:39}}}))+"\n \n"},7:function(t,e,n,r,i){return" "+t.escapeExpression(t.lambda(e,e))+"\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i,o,a){var s,u=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n In \n
\n\n"+(null!=(s=f(n,"if").call(c,null!=e?f(e,"error"):e,{name:"if",hash:{},fn:t.program(3,i,0,o,a),inverse:t.program(5,i,0,o,a),data:i,loc:{start:{line:10,column:2},end:{line:64,column:9}}}))?s:"")+"
"},useData:!0,useDepths:!0})},1625:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({1:function(t,e,r,i,o,a,s){var u,l=t.lambda,c=t.escapeExpression,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n"},3:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n No names published in '+t.escapeExpression(t.lambda(null!=e?o(e,"current"):e,e))+"\n
\n"},5:function(t,e,n,r,i,o,a){var s,u=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=l(n,"each").call(u,null!=e?l(e,"data"):e,{name:"each",hash:{},fn:t.program(6,i,0,o,a),inverse:t.noop,data:i,loc:{start:{line:30,column:8},end:{line:41,column:17}}}))?s:"")+' \n \n \n \n \n \n \n \n \n \n \n
InfraspecificSpecificInfragenericGenericInfrafamilialFamilialTotal
Total'+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"infraspecific"):s,{name:"if",hash:{},fn:t.program(21,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:44,column:14},end:{line:44,column:82}}}))?s:"")+""+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"specific"):s,{name:"if",hash:{},fn:t.program(23,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:45,column:14},end:{line:45,column:72}}}))?s:"")+""+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"infrageneric"):s,{name:"if",hash:{},fn:t.program(25,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:46,column:14},end:{line:46,column:80}}}))?s:"")+""+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"generic"):s,{name:"if",hash:{},fn:t.program(27,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:47,column:14},end:{line:47,column:70}}}))?s:"")+""+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"infrafamilial"):s,{name:"if",hash:{},fn:t.program(29,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:48,column:14},end:{line:48,column:82}}}))?s:"")+""+(null!=(s=l(n,"if").call(u,null!=(s=null!=e?l(e,"totals"):e)?l(s,"familial"):s,{name:"if",hash:{},fn:t.program(31,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:49,column:14},end:{line:49,column:72}}}))?s:"")+""+t.escapeExpression(t.lambda(null!=(s=null!=e?l(e,"totals"):e)?l(s,"total"):s,e))+"
\n
\n"},6:function(t,e,n,r,i,o,a){var s,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n '+u(t.lambda(i&&c(i,"key"),e))+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"infraspecific"):e,{name:"if",hash:{},fn:t.program(7,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:33,column:14},end:{line:33,column:68}}}))?s:"")+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"specific"):e,{name:"if",hash:{},fn:t.program(11,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:34,column:14},end:{line:34,column:58}}}))?s:"")+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"infrageneric"):e,{name:"if",hash:{},fn:t.program(13,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:35,column:14},end:{line:35,column:66}}}))?s:"")+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"generic"):e,{name:"if",hash:{},fn:t.program(15,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:36,column:14},end:{line:36,column:56}}}))?s:"")+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"infrafamilial"):e,{name:"if",hash:{},fn:t.program(17,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:37,column:14},end:{line:37,column:68}}}))?s:"")+"\n "+(null!=(s=c(n,"if").call(l,null!=e?c(e,"familial"):e,{name:"if",hash:{},fn:t.program(19,i,0,o,a),inverse:t.program(9,i,0,o,a),data:i,loc:{start:{line:38,column:14},end:{line:38,column:58}}}))?s:"")+"\n "+u(c(n,"lookup").call(l,null!=a[1]?c(a[1],"totals"):a[1],i&&c(i,"key"),{name:"lookup",hash:{},data:i,loc:{start:{line:39,column:14},end:{line:39,column:39}}}))+"\n \n"},7:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"infraspecific"):e,e))},9:function(t,e,n,r,i){return"-"},11:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"specific"):e,e))},13:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"infrageneric"):e,e))},15:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"generic"):e,e))},17:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"infrafamilial"):e,e))},19:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=e?o(e,"familial"):e,e))},21:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"infraspecific"):o,e))},23:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"specific"):o,e))},25:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"infrageneric"):o,e))},27:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"generic"):o,e))},29:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"infrafamilial"):o,e))},31:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"totals"):e)?a(o,"familial"):o,e))},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i,o,a){var s,u=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n In \n
\n\n"+(null!=(s=l(n,"if").call(u,null!=e?l(e,"error"):e,{name:"if",hash:{},fn:t.program(3,i,0,o,a),inverse:t.program(5,i,0,o,a),data:i,loc:{start:{line:10,column:2},end:{line:55,column:9}}}))?s:"")+"
"},useData:!0,useDepths:!0})},7079:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return",%20"+t.escapeExpression("function"==typeof(o=null!=(o=a(n,"forename")||(null!=e?a(e,"forename"):e))?o:t.hooks.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"forename",hash:{},data:i,loc:{start:{line:2,column:106},end:{line:2,column:118}}}):o)},3:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"%20("+t.escapeExpression("function"==typeof(o=null!=(o=a(n,"dates")||(null!=e?a(e,"dates"):e))?o:t.hooks.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"dates",hash:{},data:i,loc:{start:{line:2,column:142},end:{line:2,column:151}}}):o)+")"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a,s=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l="function",c=t.escapeExpression,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return''},useData:!0})},6016:(t,e,n)=>{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return", "+t.escapeExpression(t.lambda(null!=e?o(e,"forename"):e,e))},3:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" ("+t.escapeExpression(t.lambda(null!=e?o(e,"dates"):e,e))+")"},5:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n"},7:function(t,e,n,r,i){return' \n'},9:function(t,e,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Alternative Abbreviations
"+t.escapeExpression(i(n(3326)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"alternativeAbbreviations"):e,{name:"breakLines",hash:{},data:a,loc:{start:{line:22,column:82},end:{line:22,column:121}}}))+"
"},11:function(t,e,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Alternative Names
"+t.escapeExpression(i(n(3326)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"alternativeNames"):e,{name:"breakLines",hash:{},data:a,loc:{start:{line:23,column:66},end:{line:23,column:97}}}))+"
"},13:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Area of Interest
"+t.escapeExpression(t.lambda(null!=e?o(e,"taxonGroups"):e,e))+"
"},15:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Information Source
"+t.escapeExpression(t.lambda(null!=e?o(e,"source"):e,e))+"
"},17:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Example of Name Published
"+t.escapeExpression(t.lambda(null!=e?o(e,"examples"):e,e))+"
"},19:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Comments
"+t.escapeExpression(t.lambda(null!=e?o(e,"comments"):e,e))+"
"},21:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Name Notes
"+t.escapeExpression(t.lambda(null!=e?o(e,"notes"):e,e))+"
"},23:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Countries
"+t.escapeExpression(t.lambda(null!=e?o(e,"isoCountries"):e,e))+"
"},compiler:[8,">= 4.3.0"],main:function(t,e,r,i,o){var a,s=t.lambda,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n
\n

'+u(s(null!=e?c(e,"surname"):e,e))+(null!=(a=c(r,"if").call(l,null!=e?c(e,"forename"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:4,column:70},end:{line:4,column:107}}}))?a:"")+(null!=(a=c(r,"if").call(l,null!=e?c(e,"dates"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o,loc:{start:{line:4,column:107},end:{line:4,column:139}}}))?a:"")+"

\n
\n
\n"+(null!=(a=c(r,"if").call(l,null!=e?c(e,"hasBhlLink"):e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o,loc:{start:{line:7,column:4},end:{line:9,column:12}}}))?a:"")+'
\n
\n\n
\n'+(null!=(a=t.invokePartial(n(7079),e,{name:"partials/authorContactLink",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:"")+(null!=(a=c(r,"if").call(l,null!=e?c(e,"suppressed"):e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o,loc:{start:{line:15,column:4},end:{line:17,column:11}}}))?a:"")+'
\n
\n
Standard Form
'+u(s(null!=e?c(e,"standardForm"):e,e))+"
\n
IPNI Life Sciences Identifier (LSID)
urn:lsid:ipni.org:authors:"+u(s(null!=e?c(e,"id"):e,e))+"
\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"alternativeAbbreviations"):e,{name:"if",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o,loc:{start:{line:22,column:12},end:{line:22,column:133}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"alternativeNames"):e,{name:"if",hash:{},fn:t.program(11,o,0),inverse:t.noop,data:o,loc:{start:{line:23,column:12},end:{line:23,column:109}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"taxonGroups"):e,{name:"if",hash:{},fn:t.program(13,o,0),inverse:t.noop,data:o,loc:{start:{line:24,column:12},end:{line:24,column:87}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"source"):e,{name:"if",hash:{},fn:t.program(15,o,0),inverse:t.noop,data:o,loc:{start:{line:25,column:12},end:{line:25,column:79}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"examples"):e,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o,loc:{start:{line:26,column:12},end:{line:26,column:90}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"comments"):e,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o,loc:{start:{line:27,column:12},end:{line:27,column:73}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"notes"):e,{name:"if",hash:{},fn:t.program(21,o,0),inverse:t.noop,data:o,loc:{start:{line:28,column:12},end:{line:28,column:69}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"isoCountries"):e,{name:"if",hash:{},fn:t.program(23,o,0),inverse:t.noop,data:o,loc:{start:{line:29,column:12},end:{line:29,column:82}}}))?a:"")+'\n
\n
\n
\n \n
\n
\n'},usePartial:!0,useData:!0})},1892:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'},useData:!0})},4587:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,u="function",l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return''},useData:!0})},7468:(t,e,n)=>{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n"},3:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n"},4:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' WFO '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n"},6:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' POWO '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n"},8:function(t,e,n,r,i){return' \n'},10:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"parent"):e,{name:"each",hash:{},fn:t.program(11,i,0),inverse:t.noop,data:i,loc:{start:{line:35,column:8},end:{line:40,column:17}}}))?o:""},11:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Species Name
\n
\n '+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:38,column:46},end:{line:38,column:63}}}))+"\n
\n"},13:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(o=s(n,"if").call(a,null!=e?s(e,"linkedPublication"):e,{name:"if",hash:{},fn:t.program(14,i,0),inverse:t.program(16,i,0),data:i,loc:{start:{line:43,column:8},end:{line:47,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"referenceCollation"):e,{name:"if",hash:{},fn:t.program(18,i,0),inverse:t.noop,data:i,loc:{start:{line:48,column:8},end:{line:50,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"publicationYearNote"):e,{name:"if",hash:{},fn:t.program(20,i,0),inverse:t.noop,data:i,loc:{start:{line:51,column:8},end:{line:53,column:15}}}))?o:"")},14:function(t,e,n,r,i){var o,a=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Publication
'+s(a(null!=(o=null!=e?u(e,"linkedPublication"):e)?u(o,"title"):o,e))+"
\n"},16:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Publication
"+t.escapeExpression(t.lambda(null!=e?o(e,"publication"):e,e))+"
\n"},18:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Collation
"+t.escapeExpression(t.lambda(null!=e?o(e,"referenceCollation"):e,e))+"
\n"},20:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Date of Publication
"+t.escapeExpression(t.lambda(null!=e?o(e,"publicationYearNote"):e,e))+"
\n"},22:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Family as entered in IPNI\n \n \n \n
\n
'+t.escapeExpression(t.lambda(null!=e?o(e,"family"):e,e))+"
\n"},24:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Type Information

\n
\n"+(null!=(o=s(n,"if").call(a,null!=e?s(e,"typeName"):e,{name:"if",hash:{},fn:t.program(25,i,0),inverse:t.noop,data:i,loc:{start:{line:69,column:8},end:{line:71,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"collectorTeam"):e,{name:"if",hash:{},fn:t.program(27,i,0),inverse:t.noop,data:i,loc:{start:{line:72,column:8},end:{line:74,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"locality"):e,{name:"if",hash:{},fn:t.program(29,i,0),inverse:t.noop,data:i,loc:{start:{line:75,column:8},end:{line:77,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"collectionDate1"):e,{name:"if",hash:{},fn:t.program(31,i,0),inverse:t.noop,data:i,loc:{start:{line:78,column:8},end:{line:80,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"collectionDate2"):e,{name:"if",hash:{},fn:t.program(33,i,0),inverse:t.noop,data:i,loc:{start:{line:81,column:8},end:{line:83,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"bibliographicTypeInfo"):e,{name:"if",hash:{},fn:t.program(35,i,0),inverse:t.noop,data:i,loc:{start:{line:84,column:8},end:{line:86,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"typeLocations"):e,{name:"if",hash:{},fn:t.program(37,i,0),inverse:t.noop,data:i,loc:{start:{line:87,column:8},end:{line:89,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"geographicUnit"):e,{name:"if",hash:{},fn:t.program(39,i,0),inverse:t.noop,data:i,loc:{start:{line:90,column:8},end:{line:92,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"typeCoordinates"):e)?s(o,"validLatitude"):o,{name:"if",hash:{},fn:t.program(41,i,0),inverse:t.noop,data:i,loc:{start:{line:93,column:8},end:{line:95,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"typeCoordinates"):e)?s(o,"validLongitude"):o,{name:"if",hash:{},fn:t.program(43,i,0),inverse:t.noop,data:i,loc:{start:{line:96,column:8},end:{line:98,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"typeChosenBy"):e,{name:"if",hash:{},fn:t.program(45,i,0),inverse:t.noop,data:i,loc:{start:{line:99,column:8},end:{line:101,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"bibliographicTypeInfo"):e,{name:"if",hash:{},fn:t.program(47,i,0),inverse:t.noop,data:i,loc:{start:{line:102,column:8},end:{line:104,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"distribution"):e,{name:"if",hash:{},fn:t.program(49,i,0),inverse:t.noop,data:i,loc:{start:{line:105,column:8},end:{line:107,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"typeNote"):e,{name:"if",hash:{},fn:t.program(51,i,0),inverse:t.noop,data:i,loc:{start:{line:108,column:8},end:{line:110,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"typeRemarks"):e,{name:"if",hash:{},fn:t.program(53,i,0),inverse:t.noop,data:i,loc:{start:{line:111,column:8},end:{line:113,column:15}}}))?o:"")+"
\n"},25:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Type Name
'+t.escapeExpression(t.lambda(null!=e?o(e,"typeName"):e,e))+"
\n"},27:function(t,e,n,r,i){var o,a=t.lambda,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Collector Team
"+(null!=(o=a(null!=e?s(e,"collectorTeam"):e,e))?o:"")+" "+t.escapeExpression(a(null!=e?s(e,"collectionNumber"):e,e))+"
\n"},29:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Locality
"+t.escapeExpression(t.lambda(null!=e?o(e,"locality"):e,e))+"
\n"},31:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Collection Date
"+t.escapeExpression(t.lambda(null!=e?o(e,"collectionDate1"):e,e))+"
\n"},33:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Second Collection Date
"+t.escapeExpression(t.lambda(null!=e?o(e,"collectionDate2"):e,e))+"
\n"},35:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Bibliographic Type Information
"+t.escapeExpression(t.lambda(null!=e?o(e,"bibliographicTypeInfo"):e,e))+"
\n"},37:function(t,e,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Type Herbaria
"+t.escapeExpression(i(n(1600)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"typeLocations"):e,{name:"formatTypeLocation",hash:{},data:a,loc:{start:{line:88,column:36},end:{line:88,column:72}}}))+"
\n"},39:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Geographic Unit
"+t.escapeExpression(t.lambda(null!=e?o(e,"geographicUnit"):e,e))+"
\n"},41:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Latitude
"+t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"typeCoordinates"):e)?a(o,"formattedLatitude"):o,e))+"
\n"},43:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Longitude
"+t.escapeExpression(t.lambda(null!=(o=null!=e?a(e,"typeCoordinates"):e)?a(o,"formattedLongitude"):o,e))+"
\n"},45:function(t,e,n,r,i){var o,a=t.lambda,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Chosen By
"+(null!=(o=a(null!=e?s(e,"typeChosenBy"):e,e))?o:"")+" "+t.escapeExpression(a(null!=e?s(e,"bibliographicReference"):e,e))+"
\n"},47:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Type Published in
"+t.escapeExpression(t.lambda(null!=e?o(e,"bibliographicTypeInfo"):e,e))+"
\n"},49:function(t,e,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Distribution Of Types
"+t.escapeExpression(i(n(3326)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"distribution"):e,{name:"breakLines",hash:{},data:a,loc:{start:{line:106,column:44},end:{line:106,column:71}}}))+"
\n"},51:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Type Specimen Note
"+t.escapeExpression(t.lambda(null!=e?o(e,"typeNote"):e,e))+"
\n"},53:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Type Remarks
"+t.escapeExpression(t.lambda(null!=e?o(e,"typeRemarks"):e,e))+"
\n"},55:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Original Data

\n
\n"+(null!=(o=s(n,"if").call(a,null!=e?s(e,"originalRemarks"):e,{name:"if",hash:{},fn:t.program(56,i,0),inverse:t.noop,data:i,loc:{start:{line:120,column:8},end:{line:122,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"originalHybridParentage"):e,{name:"if",hash:{},fn:t.program(58,i,0),inverse:t.noop,data:i,loc:{start:{line:123,column:8},end:{line:125,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"originalReplacedSynonym"):e,{name:"if",hash:{},fn:t.program(60,i,0),inverse:t.noop,data:i,loc:{start:{line:126,column:8},end:{line:128,column:15}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"originalTaxonDistribution"):e,{name:"if",hash:{},fn:t.program(62,i,0),inverse:t.noop,data:i,loc:{start:{line:129,column:8},end:{line:131,column:15}}}))?o:"")+"
\n"},56:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Remarks
"+t.escapeExpression(t.lambda(null!=e?o(e,"originalRemarks"):e,e))+"
\n"},58:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Hybrid Parentage
"+t.escapeExpression(t.lambda(null!=e?o(e,"originalHybridParentage"):e,e))+"
\n"},60:function(t,e,n,r,i){var o=t.lambda,a=t.escapeExpression,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Replaced Synonym
"+a(o(null!=e?s(e,"originalReplacedSynonym"):e,e))+" "+a(o(null!=e?s(e,"originalReplacedSynonymAuthorTeam"):e,e))+"
\n"},62:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Distribution
"+t.escapeExpression(t.lambda(null!=e?o(e,"originalTaxonDistribution"):e,e))+"
\n"},64:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Nomenclatural Notes

\n "+(null!=(o=s(n,"if").call(a,null!=e?s(e,"nameStatus"):e,{name:"if",hash:{},fn:t.program(65,i,0),inverse:t.noop,data:i,loc:{start:{line:137,column:6},end:{line:137,column:60}}}))?o:"")+"\n "+(null!=(o=s(n,"if").call(a,null!=e?s(e,"referenceRemarks"):e,{name:"if",hash:{},fn:t.program(67,i,0),inverse:t.noop,data:i,loc:{start:{line:138,column:6},end:{line:138,column:64}}}))?o:"")+"\n"},65:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Status: "+t.escapeExpression(t.lambda(null!=e?o(e,"nameStatus"):e,e))+"

"},67:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

"+t.escapeExpression(t.lambda(null!=e?o(e,"referenceRemarks"):e,e))+"

"},69:function(t,e,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Remarks

\n

"+t.escapeExpression(i(n(1330)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"remarks"):e,{name:"linkDoi",hash:{},data:a,loc:{start:{line:143,column:9},end:{line:143,column:28}}}))+"

\n"},71:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"

Links

\n
\n"+(null!=(o=s(n,"each").call(a,null!=e?s(e,"basionym"):e,{name:"each",hash:{},fn:t.program(72,i,0),inverse:t.noop,data:i,loc:{start:{line:149,column:8},end:{line:151,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"basionymOf"):e,{name:"each",hash:{},fn:t.program(74,i,0),inverse:t.noop,data:i,loc:{start:{line:152,column:8},end:{line:154,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"conservedAgainst"):e,{name:"each",hash:{},fn:t.program(76,i,0),inverse:t.noop,data:i,loc:{start:{line:155,column:8},end:{line:157,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"rejectedInFavorOf"):e,{name:"each",hash:{},fn:t.program(78,i,0),inverse:t.noop,data:i,loc:{start:{line:158,column:8},end:{line:160,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"correctionOf"):e,{name:"each",hash:{},fn:t.program(80,i,0),inverse:t.noop,data:i,loc:{start:{line:161,column:8},end:{line:163,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"correctedBy"):e,{name:"each",hash:{},fn:t.program(82,i,0),inverse:t.noop,data:i,loc:{start:{line:164,column:8},end:{line:166,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"isonymOf"):e,{name:"each",hash:{},fn:t.program(84,i,0),inverse:t.noop,data:i,loc:{start:{line:167,column:8},end:{line:169,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"isonym"):e,{name:"each",hash:{},fn:t.program(86,i,0),inverse:t.noop,data:i,loc:{start:{line:170,column:8},end:{line:172,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"laterHomonymOf"):e,{name:"each",hash:{},fn:t.program(88,i,0),inverse:t.noop,data:i,loc:{start:{line:173,column:8},end:{line:175,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"hasLaterHomonym"):e,{name:"each",hash:{},fn:t.program(90,i,0),inverse:t.noop,data:i,loc:{start:{line:176,column:8},end:{line:178,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"nomenclaturalSynonym"):e,{name:"each",hash:{},fn:t.program(92,i,0),inverse:t.noop,data:i,loc:{start:{line:179,column:8},end:{line:181,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"replacedSynonym"):e,{name:"each",hash:{},fn:t.program(94,i,0),inverse:t.noop,data:i,loc:{start:{line:182,column:8},end:{line:184,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"replacedSynonymOf"):e,{name:"each",hash:{},fn:t.program(96,i,0),inverse:t.noop,data:i,loc:{start:{line:185,column:8},end:{line:187,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"sameCitationAs"):e,{name:"each",hash:{},fn:t.program(98,i,0),inverse:t.noop,data:i,loc:{start:{line:188,column:8},end:{line:190,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"duplicateCitationOf"):e,{name:"each",hash:{},fn:t.program(100,i,0),inverse:t.noop,data:i,loc:{start:{line:191,column:8},end:{line:193,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"superfluousNameOf"):e,{name:"each",hash:{},fn:t.program(102,i,0),inverse:t.noop,data:i,loc:{start:{line:194,column:8},end:{line:196,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"hasSuperfluousName"):e,{name:"each",hash:{},fn:t.program(104,i,0),inverse:t.noop,data:i,loc:{start:{line:197,column:8},end:{line:199,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"type"):e,{name:"each",hash:{},fn:t.program(106,i,0),inverse:t.noop,data:i,loc:{start:{line:200,column:8},end:{line:202,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"typeOf"):e,{name:"each",hash:{},fn:t.program(108,i,0),inverse:t.noop,data:i,loc:{start:{line:203,column:8},end:{line:205,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"validationOf"):e,{name:"each",hash:{},fn:t.program(110,i,0),inverse:t.noop,data:i,loc:{start:{line:206,column:8},end:{line:208,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"validatedBy"):e,{name:"each",hash:{},fn:t.program(112,i,0),inverse:t.noop,data:i,loc:{start:{line:209,column:8},end:{line:211,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"orthographicVariantOf"):e,{name:"each",hash:{},fn:t.program(114,i,0),inverse:t.noop,data:i,loc:{start:{line:212,column:8},end:{line:214,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"hasOrthographicVariant"):e,{name:"each",hash:{},fn:t.program(116,i,0),inverse:t.noop,data:i,loc:{start:{line:215,column:8},end:{line:217,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"hybridParents"):e,{name:"each",hash:{},fn:t.program(118,i,0),inverse:t.noop,data:i,loc:{start:{line:218,column:8},end:{line:220,column:17}}}))?o:"")+(null!=(o=s(n,"each").call(a,null!=e?s(e,"hybridChildren"):e,{name:"each",hash:{},fn:t.program(120,i,0),inverse:t.noop,data:i,loc:{start:{line:221,column:8},end:{line:223,column:17}}}))?o:"")},72:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Basionym
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:150,column:67},end:{line:150,column:84}}}))+"
\n"},74:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Basionym of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:153,column:70},end:{line:153,column:87}}}))+"
\n"},76:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Conserved against
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:156,column:76},end:{line:156,column:93}}}))+"
\n"},78:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Rejected in favor of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:159,column:79},end:{line:159,column:96}}}))+"
\n"},80:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Correction of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:162,column:72},end:{line:162,column:89}}}))+"
\n"},82:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Corrected by
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:165,column:71},end:{line:165,column:88}}}))+"
\n"},84:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Isonym of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:168,column:68},end:{line:168,column:85}}}))+"
\n"},86:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Isonym
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:171,column:65},end:{line:171,column:82}}}))+"
\n"},88:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Later homonym of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:174,column:75},end:{line:174,column:92}}}))+"
\n"},90:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Has later homonym
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:177,column:76},end:{line:177,column:93}}}))+"
\n"},92:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Nomenclatural link
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:180,column:77},end:{line:180,column:94}}}))+"
\n"},94:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Replaced synonym
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:183,column:75},end:{line:183,column:92}}}))+"
\n"},96:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Replaced synonym of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:186,column:78},end:{line:186,column:95}}}))+"
\n"},98:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Same citation as
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:189,column:75},end:{line:189,column:92}}}))+"
\n"},100:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Duplicate citation of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:192,column:80},end:{line:192,column:97}}}))+"
\n"},102:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Superfluous name of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:195,column:78},end:{line:195,column:95}}}))+"
\n"},104:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Has superfluous name
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:198,column:79},end:{line:198,column:96}}}))+"
\n"},106:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Type
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:201,column:63},end:{line:201,column:80}}}))+"
\n"},108:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Type of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:204,column:66},end:{line:204,column:83}}}))+"
\n"},110:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Validation of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:207,column:72},end:{line:207,column:89}}}))+"
\n"},112:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Validated by
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:210,column:71},end:{line:210,column:88}}}))+"
\n"},114:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Orthographic variant of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:213,column:82},end:{line:213,column:99}}}))+"
\n"},116:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Has orthographic variant
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:216,column:83},end:{line:216,column:100}}}))+"
\n"},118:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Hybrid Parent
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:219,column:77},end:{line:219,column:94}}}))+"
\n"},120:function(t,e,r,o,a){var s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
Hybrid Parent of
'+s(i(n(6742)).call(null!=e?e:t.nullContext||{},e,{name:"fullName",hash:{},data:a,loc:{start:{line:222,column:80},end:{line:222,column:97}}}))+"
\n"},compiler:[8,">= 4.3.0"],main:function(t,e,r,o,a){var s,u=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lambda,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n
\n '+l(i(n(8875)).call(u,e,{name:"linkedFullName",hash:{},data:a,loc:{start:{line:4,column:4},end:{line:4,column:27}}}))+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"bhlLink"):e,{name:"if",hash:{},fn:t.program(1,a,0),inverse:t.noop,data:a,loc:{start:{line:5,column:8},end:{line:7,column:16}}}))?s:"")+"
\n"+(null!=(s=t.invokePartial(n(4587),e,{name:"partials/nameContactLink",data:a,indent:" ",helpers:r,partials:o,decorators:t.decorators}))?s:"")+'
\n\n
\n'+(null!=(s=f(r,"if").call(u,null!=e?f(e,"hasExternalLinks"):e,{name:"if",hash:{},fn:t.program(3,a,0),inverse:t.noop,data:a,loc:{start:{line:13,column:4},end:{line:27,column:11}}}))?s:"")+'
\n'+(null!=(s=f(r,"if").call(u,null!=e?f(e,"suppressed"):e,{name:"if",hash:{},fn:t.program(8,a,0),inverse:t.noop,data:a,loc:{start:{line:29,column:4},end:{line:31,column:11}}}))?s:"")+"
\n
IPNI Life Sciences Identifier (LSID)
"+l(c(null!=e?f(e,"fqId"):e,e))+"
\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"infraspecies"):e,{name:"if",hash:{},fn:t.program(10,a,0),inverse:t.noop,data:a,loc:{start:{line:34,column:6},end:{line:41,column:13}}}))?s:"")+(null!=(s=f(r,"if").call(u,null!=e?f(e,"publication"):e,{name:"if",hash:{},fn:t.program(13,a,0),inverse:t.noop,data:a,loc:{start:{line:42,column:6},end:{line:54,column:13}}}))?s:"")+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"family"):e,{name:"if",hash:{},fn:t.program(22,a,0),inverse:t.noop,data:a,loc:{start:{line:56,column:6},end:{line:63,column:13}}}))?s:"")+"
\n\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"hasTypeData"):e,{name:"if",hash:{},fn:t.program(24,a,0),inverse:t.noop,data:a,loc:{start:{line:66,column:4},end:{line:115,column:11}}}))?s:"")+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"hasOriginalData"):e,{name:"if",hash:{},fn:t.program(55,a,0),inverse:t.noop,data:a,loc:{start:{line:117,column:4},end:{line:133,column:11}}}))?s:"")+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"hasNomenclaturalNotes"):e,{name:"if",hash:{},fn:t.program(64,a,0),inverse:t.noop,data:a,loc:{start:{line:135,column:4},end:{line:139,column:11}}}))?s:"")+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"remarks"):e,{name:"if",hash:{},fn:t.program(69,a,0),inverse:t.noop,data:a,loc:{start:{line:141,column:4},end:{line:144,column:11}}}))?s:"")+"\n"+(null!=(s=f(r,"if").call(u,null!=e?f(e,"hasLinks"):e,{name:"if",hash:{},fn:t.program(71,a,0),inverse:t.noop,data:a,loc:{start:{line:146,column:4},end:{line:224,column:13}}}))?s:"")+'
\n
\n \n \n\n'},usePartial:!0,useData:!0})},2064:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,u="function",l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return''},useData:!0})},5589:(t,e,n)=>{var r=n(3633);t.exports=(r.default||r).template({1:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n"},3:function(t,e,n,r,i){return' \n'},5:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
ISBN
"+t.escapeExpression(t.lambda(null!=e?o(e,"isbn"):e,e))+"
"},7:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
ISSN
"+t.escapeExpression(t.lambda(null!=e?o(e,"issn"):e,e))+"
"},9:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Dates
"+t.escapeExpression((a=n(3326),a&&(a.__esModule?a.default:a)).call(null!=e?e:t.nullContext||{},null!=e?s(e,"date"):e,{name:"breakLines",hash:{},data:o,loc:{start:{line:24,column:36},end:{line:24,column:55}}}))+"
"},11:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Library of Congress Number
"+t.escapeExpression(t.lambda(null!=e?o(e,"lcNumber"):e,e))+"
"},13:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
BPH Identifier
"+t.escapeExpression(t.lambda(null!=e?o(e,"bphNumber"):e,e))+"
"},15:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Preceded By
"+t.escapeExpression(t.lambda(null!=e?o(e,"precededBy"):e,e))+"
"},17:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Superceded By
"+t.escapeExpression(t.lambda(null!=e?o(e,"supercededBy"):e,e))+"
"},19:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Comments
"+t.escapeExpression(t.lambda(null!=e?o(e,"comments"):e,e))+"
"},21:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Remarks
"+t.escapeExpression(t.lambda(null!=e?o(e,"remarks"):e,e))+"
"},23:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
Author
"+t.escapeExpression(t.lambda(null!=e?o(e,"tl2Author"):e,e))+"
"},25:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"
TL-2 Number
"+t.escapeExpression(t.lambda(null!=e?o(e,"tl2Number"):e,e))+"
"},27:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n
\n'+(null!=(o=s(n,"if").call(a,null!=e?s(e,"hasBhlTitleLink"):e,{name:"if",hash:{},fn:t.program(28,i,0),inverse:t.noop,data:i,loc:{start:{line:36,column:8},end:{line:38,column:16}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=e?s(e,"hasBhlPageLink"):e,{name:"if",hash:{},fn:t.program(30,i,0),inverse:t.noop,data:i,loc:{start:{line:39,column:8},end:{line:41,column:16}}}))?o:"")+"
\n"},28:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'

Read this publication

\n'},30:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'

View the TL-2 metadata for this publication

\n'},compiler:[8,">= 4.3.0"],main:function(t,e,r,i,o){var a,s=t.lambda,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n
\n

'+u(s(null!=e?c(e,"title"):e,e))+"

\n
\n
\n"+(null!=(a=c(r,"if").call(l,null!=e?c(e,"hasBhlTitleLink"):e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o,loc:{start:{line:7,column:8},end:{line:9,column:16}}}))?a:"")+'
\n
\n\n
\n'+(null!=(a=t.invokePartial(n(2064),e,{name:"partials/publicationContactLink",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:"")+(null!=(a=c(r,"if").call(l,null!=e?c(e,"suppressed"):e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o,loc:{start:{line:15,column:4},end:{line:17,column:11}}}))?a:"")+'
\n
\n
Standard Form
'+u(s(null!=e?c(e,"abbreviation"):e,e))+"
\n
IPNI Life Sciences Identifier (LSID)
urn:lsid:ipni.org:publications:"+u(s(null!=e?c(e,"id"):e,e))+"
\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"isbn"):e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o,loc:{start:{line:22,column:6},end:{line:22,column:55}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"issn"):e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o,loc:{start:{line:23,column:6},end:{line:23,column:55}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"date"):e,{name:"if",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o,loc:{start:{line:24,column:6},end:{line:24,column:67}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"lcNumber"):e,{name:"if",hash:{},fn:t.program(11,o,0),inverse:t.noop,data:o,loc:{start:{line:25,column:6},end:{line:25,column:85}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"bphNumber"):e,{name:"if",hash:{},fn:t.program(13,o,0),inverse:t.noop,data:o,loc:{start:{line:26,column:6},end:{line:26,column:75}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"precededBy"):e,{name:"if",hash:{},fn:t.program(15,o,0),inverse:t.noop,data:o,loc:{start:{line:27,column:6},end:{line:27,column:74}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"supercededBy"):e,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o,loc:{start:{line:28,column:6},end:{line:28,column:80}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"comments"):e,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o,loc:{start:{line:29,column:6},end:{line:29,column:67}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"remarks"):e,{name:"if",hash:{},fn:t.program(21,o,0),inverse:t.noop,data:o,loc:{start:{line:30,column:6},end:{line:30,column:64}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"tl2Author"):e,{name:"if",hash:{},fn:t.program(23,o,0),inverse:t.noop,data:o,loc:{start:{line:31,column:6},end:{line:31,column:67}}}))?a:"")+"\n "+(null!=(a=c(r,"if").call(l,null!=e?c(e,"tl2Number"):e,{name:"if",hash:{},fn:t.program(25,o,0),inverse:t.noop,data:o,loc:{start:{line:32,column:6},end:{line:32,column:72}}}))?a:"")+"\n"+(null!=(a=c(r,"if").call(l,null!=e?c(e,"hasBhlLinks"):e,{name:"if",hash:{},fn:t.program(27,o,0),inverse:t.noop,data:o,loc:{start:{line:33,column:6},end:{line:43,column:13}}}))?a:"")+'
\n
\n
\n
\n \n
\n
\n'},usePartial:!0,useData:!0})},2118:(t,e,n)=>{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){return''},3:function(t,e,n,r,i){return''},5:function(t,e,r,i,o){var a;return null!=(a=t.invokePartial(n(7649),e,{name:"partials/resultsListExpanded",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:""},7:function(t,e,r,i,o){var a;return null!=(a=t.invokePartial(n(6830),e,{name:"partials/resultsList",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:""},9:function(t,e,n,r,i){return'
\n IPNI does not serve more than 10,000 results for a query. Please refine your search or use our API to access the full dataset.\n
\n'},compiler:[8,">= 4.3.0"],main:function(t,e,r,o,a){var s,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
\n
\n \n
\n
\n Filter by:\n
\n
\n \n \n \n \n \n \n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n\n \n\n
\n
\n
\n
\n
\n'+(null!=(s=c(r,"if").call(l,null!=e?c(e,"expanded"):e,{name:"if",hash:{},fn:t.program(5,a,0),inverse:t.program(7,a,0),data:a,loc:{start:{line:61,column:2},end:{line:65,column:9}}}))?s:"")+(null!=(s=c(r,"if").call(l,null!=e?c(e,"atEndOfMaxReturnedRecords"):e,{name:"if",hash:{},fn:t.program(9,a,0),inverse:t.noop,data:a,loc:{start:{line:66,column:2},end:{line:70,column:9}}}))?s:"")+' \n
'},usePartial:!0,useData:!0})},6830:(t,e,n)=>{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
    \n'+(null!=(o=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"results"):e,{name:"each",hash:{},fn:t.program(2,i,0),inverse:t.noop,data:i,loc:{start:{line:3,column:2},end:{line:61,column:11}}}))?o:"")+"
\n"},2:function(t,e,r,o,a){var s,u=null!=e?e:t.nullContext||{};return'
  • \n'+(null!=(s=i(n(6412)).call(u,e,"citation",{name:"isType",hash:{},fn:t.program(3,a,0),inverse:t.noop,data:a,loc:{start:{line:5,column:6},end:{line:30,column:17}}}))?s:"")+"\n"+(null!=(s=i(n(6412)).call(u,e,"author",{name:"isType",hash:{},fn:t.program(13,a,0),inverse:t.noop,data:a,loc:{start:{line:32,column:6},end:{line:45,column:17}}}))?s:"")+"\n"+(null!=(s=i(n(6412)).call(u,e,"publication",{name:"isType",hash:{},fn:t.program(18,a,0),inverse:t.noop,data:a,loc:{start:{line:47,column:6},end:{line:59,column:17}}}))?s:"")+"
  • \n"},3:function(t,e,r,o,a){var s,u=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n '+u(i(n(6742)).call(l,e,{name:"fullName",hash:{},data:a,loc:{start:{line:7,column:8},end:{line:7,column:25}}}))+'\n \n \n"},4:function(t,e,n,r,i){return"top-copy"},6:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n \n"},8:function(t,e,n,r,i){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n"},9:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n WFO '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n \n"},11:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n POWO '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n \n"},13:function(t,e,n,r,i){var o,a=t.lambda,s=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n \n '+s(a(null!=e?l(e,"standardForm"):e,e))+" – "+s(a(null!=e?l(e,"forename"):e,e))+" "+s(a(null!=e?l(e,"surname"):e,e))+" "+(null!=(o=l(n,"if").call(u,null!=e?l(e,"dates"):e,{name:"if",hash:{},fn:t.program(14,i,0),inverse:t.noop,data:i,loc:{start:{line:35,column:62},end:{line:36,column:17}}}))?o:"")+' \n \n"},14:function(t,e,n,r,i){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"("+t.escapeExpression(t.lambda(null!=e?o(e,"dates"):e,e))+")\n"},16:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n \n"},18:function(t,e,n,r,i){var o,a=t.lambda,s=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n \n '+s(a(null!=e?u(e,"title"):e,e))+'\n \n \n"},19:function(t,e,r,i,o){var a,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n BHL '+(null!=(a=t.invokePartial(n(1892),e,{name:"partials/externalLinkIcon",data:o,helpers:r,partials:i,decorators:t.decorators}))?a:"")+"\n \n"},21:function(t,e,n,r,i){return'
    No results. Please try a different search.
    \n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=a(n,"if").call(null!=e?e:t.nullContext||{},null!=e?a(e,"results"):e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(21,i,0),data:i,loc:{start:{line:1,column:0},end:{line:65,column:7}}}))?o:""},usePartial:!0,useData:!0})},7649:(t,e,n)=>{var r=n(3633);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
      \n'+(null!=(o=a(n,"each").call(null!=e?e:t.nullContext||{},null!=e?a(e,"results"):e,{name:"each",hash:{},fn:t.program(2,i,0),inverse:t.noop,data:i,loc:{start:{line:3,column:2},end:{line:15,column:11}}}))?o:"")+"
    \n"},2:function(t,e,r,o,a){var s,u=null!=e?e:t.nullContext||{};return'
  • \n'+(null!=(s=i(n(6412)).call(u,e,"citation",{name:"isType",hash:{},fn:t.program(3,a,0),inverse:t.noop,data:a,loc:{start:{line:5,column:6},end:{line:7,column:17}}}))?s:"")+(null!=(s=i(n(6412)).call(u,e,"author",{name:"isType",hash:{},fn:t.program(5,a,0),inverse:t.noop,data:a,loc:{start:{line:8,column:6},end:{line:10,column:17}}}))?s:"")+(null!=(s=i(n(6412)).call(u,e,"publication",{name:"isType",hash:{},fn:t.program(7,a,0),inverse:t.noop,data:a,loc:{start:{line:11,column:6},end:{line:13,column:17}}}))?s:"")+"
  • \n"},3:function(t,e,r,i,o){var a;return null!=(a=t.invokePartial(n(7468),e,{name:"../partials/nameDetail",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:""},5:function(t,e,r,i,o){var a;return null!=(a=t.invokePartial(n(6016),e,{name:"partials/authorDetail",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:""},7:function(t,e,r,i,o){var a;return null!=(a=t.invokePartial(n(5589),e,{name:"partials/publicationDetail",data:o,indent:" ",helpers:r,partials:i,decorators:t.decorators}))?a:""},9:function(t,e,n,r,i){return'
    No results. Please try a different search.
    \n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=a(n,"if").call(null!=e?e:t.nullContext||{},null!=e?a(e,"results"):e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(9,i,0),data:i,loc:{start:{line:1,column:0},end:{line:19,column:7}}}))?o:""},usePartial:!0,useData:!0})},261:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var o=i(n(2871)),a=r(n(9613)),s=r(n(3769)),u=i(n(2849)),l=i(n(7624)),c=r(n(1148));function f(){var t=new o.HandlebarsEnvironment;return u.extend(t,o),t.SafeString=a.default,t.Exception=s.default,t.Utils=u,t.escapeExpression=u.escapeExpression,t.VM=l,t.template=function(e){return l.template(e,t)},t}var h=f();h.create=f,c.default(h),h.default=h,e.default=h,t.exports=e.default},2871:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=f;var i=n(2849),o=r(n(3769)),a=n(2277),s=n(5940),u=r(n(566)),l=n(3865);e.VERSION="4.7.8",e.COMPILER_REVISION=8,e.LAST_COMPATIBLE_COMPILER_REVISION=7,e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var c="[object Object]";function f(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}f.prototype={constructor:f,logger:u.default,log:u.default.log,registerHelper:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===c)i.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var h=u.default.log;e.log=h,e.createFrame=i.createFrame,e.logger=u.default},5940:(t,e,n)=>{"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){i.default(t)};var r,i=(r=n(7430))&&r.__esModule?r:{default:r}},7430:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849);e.default=function(t){t.registerDecorator("inline",(function(t,e,n,i){var o=t;return e.partials||(e.partials={},o=function(i,o){var a=n.partials;n.partials=r.extend({},a,e.partials);var s=t(i,o);return n.partials=a,s}),e.partials[i.args[0]]=i.fn,o}))},t.exports=e.default},3769:(t,e)=>{"use strict";e.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(t,e){var i=e&&e.loc,o=void 0,a=void 0,s=void 0,u=void 0;i&&(o=i.start.line,a=i.end.line,s=i.start.column,u=i.end.column,t+=" - "+o+":"+s);for(var l=Error.prototype.constructor.call(this,t),c=0;c{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),o.default(t),a.default(t),s.default(t),u.default(t),l.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var i=r(n(6097)),o=r(n(6785)),a=r(n(4353)),s=r(n(2355)),u=r(n(5300)),l=r(n(7466)),c=r(n(908))},6097:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849);e.default=function(t){t.registerHelper("blockHelperMissing",(function(e,n){var i=n.inverse,o=n.fn;if(!0===e)return o(this);if(!1===e||null==e)return i(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(e,n)}))},t.exports=e.default},6785:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=(r=n(3769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new o.default("Must pass iterator to #each");var n,r=e.fn,a=e.inverse,s=0,u="",l=void 0,c=void 0;function f(e,n,o){l&&(l.key=e,l.index=n,l.first=0===n,l.last=!!o,c&&(l.contextPath=c+e)),u+=r(t[e],{data:l,blockParams:i.blockParams([t[e],e],[c+e,null])})}if(e.data&&e.ids&&(c=i.appendContextPath(e.data.contextPath,e.ids[0])+"."),i.isFunction(t)&&(t=t.call(this)),e.data&&(l=i.createFrame(e.data)),t&&"object"==typeof t)if(i.isArray(t))for(var h=t.length;s{"use strict";e.__esModule=!0;var r,i=(r=n(3769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},t.exports=e.default},2355:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=(r=n(3769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("if",(function(t,e){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return i.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)})),t.registerHelper("unless",(function(e,n){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},t.exports=e.default},5300:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",(function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",(function(t,e,n){return t?n.lookupProperty(t,e):t}))},t.exports=e.default},908:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=(r=n(3769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("with",(function(t,e){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");i.isFunction(t)&&(t=t.call(this));var n=e.fn;if(i.isEmpty(t))return e.inverse(this);var r=e.data;return e.data&&e.ids&&((r=i.createFrame(e.data)).contextPath=i.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:r,blockParams:i.blockParams([t],[r&&r.contextPath])})}))},t.exports=e.default},9726:(t,e,n)=>{"use strict";e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n{"use strict";e.__esModule=!0,e.createProtoAccessControl=function(t){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,n){return function(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(function(t){!0!==a[t]&&(a[t]=!0,o.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(e),!1)}("function"==typeof t?e.methods:e.properties,n)},e.resetLoggedProperties=function(){Object.keys(a).forEach((function(t){delete a[t]}))};var r,i=n(9726),o=(r=n(566))&&r.__esModule?r:{default:r},a=Object.create(null)},2614:(t,e)=>{"use strict";e.__esModule=!0,e.wrapHelper=function(t,e){return"function"!=typeof t?t:function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),t.apply(this,arguments)}}},566:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(i.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o{"use strict";e.__esModule=!0,e.default=function(t){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",(function(){return this})),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}},t.exports=e.default},7624:(t,e,n)=>{"use strict";e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=a.COMPILER_REVISION;if(!(e>=a.LAST_COMPATIBLE_COMPILER_REVISION&&e<=a.COMPILER_REVISION)){if(e{"use strict";function n(t){this.string=t}e.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},e.default=n,t.exports=e.default},2849:(t,e)=>{"use strict";e.__esModule=!0,e.extend=a,e.indexOf=function(t,e){for(var n=0,r=t.length;n":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function o(t){return n[t]}function a(t){for(var e=1;e= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var c="[object Object]";function f(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}f.prototype={constructor:f,logger:u.default,log:u.default.log,registerHelper:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===c)i.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var h=u.default.log;e.log=h,e.createFrame=i.createFrame,e.logger=u.default},function(t,e){"use strict";e.__esModule=!0,e.extend=a,e.indexOf=function(t,e){for(var n=0,r=t.length;n":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function o(t){return n[t]}function a(t){for(var e=1;e0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(e,n)}))},t.exports=e.default},function(t,e,n){"use strict";var r=n(13).default,i=n(43).default,o=n(55).default,a=n(60).default,s=n(1).default;e.__esModule=!0;var u=n(5),l=s(n(6));e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new l.default("Must pass iterator to #each");var n,s=e.fn,c=e.inverse,f=0,h="",d=void 0,p=void 0;function g(e,n,r){d&&(d.key=e,d.index=n,d.first=0===n,d.last=!!r,p&&(d.contextPath=p+e)),h+=s(t[e],{data:d,blockParams:u.blockParams([t[e],e],[p+e,null])})}if(e.data&&e.ids&&(p=u.appendContextPath(e.data.contextPath,e.ids[0])+"."),u.isFunction(t)&&(t=t.call(this)),e.data&&(d=u.createFrame(e.data)),t&&"object"==typeof t)if(u.isArray(t))for(var m=t.length;fi;)$(t,n=r[i++],e[n]);return t},B=function(t,e){return void 0===e?S(t):F(S(t),e)},V=function(t){var e=O.call(this,t);return!(e||!o(this,t)||!o(M,t)||o(this,P)&&this[P][t])||e},H=function(t,e){var n=x(t=_(t),e);return!n||!o(M,e)||o(t,P)&&t[P][e]||(n.enumerable=!0),n},G=function(t){for(var e,n=A(_(t)),r=[],i=0;n.length>i;)o(M,e=n[i++])||e==P||r.push(e);return r},z=function(t){for(var e,n=A(_(t)),r=[],i=0;n.length>i;)o(M,e=n[i++])&&r.push(M[e]);return r},U=l((function(){var t=T();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}));L||(T=function(){if(j(this))throw TypeError("Symbol is not a constructor");return D(h(arguments.length>0?arguments[0]:void 0))},u(T.prototype,"toString",(function(){return this._k})),j=function(t){return t instanceof T},r.create=B,r.isEnum=V,r.getDesc=H,r.setDesc=$,r.setDescs=F,r.getNames=g.get=G,r.getSymbols=z,a&&!n(41)&&u(R,"propertyIsEnumerable",V,!0));var W={for:function(t){return o(I,t+="")?I[t]:I[t]=T(t)},keyFor:function(t){return p(I,t)},useSetter:function(){E=!0},useSimple:function(){E=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),(function(t){var e=d(t);W[t]=L?e:D(e)})),E=!0,s(s.G+s.W,{Symbol:T}),s(s.S,"Symbol",W),s(s.S+s.F*!L,"Object",{create:B,defineProperty:$,defineProperties:F,getOwnPropertyDescriptor:H,getOwnPropertyNames:G,getOwnPropertySymbols:z}),k&&s(s.S+s.F*(!L||U),"JSON",{stringify:function(t){if(void 0!==t&&!j(t)){for(var e,n,r=[t],i=1,o=arguments;o.length>i;)r.push(o[i++]);return"function"==typeof(e=r[1])&&(n=e),!n&&v(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!j(e))return e}),r[1]=e,C.apply(k,r)}}}),f(T,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(19)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(16),i=n(21),o=n(22),a="prototype",s=function(t,e,n){var u,l,c,f=t&s.F,h=t&s.G,d=t&s.S,p=t&s.P,g=t&s.B,m=t&s.W,v=h?i:i[e]||(i[e]={}),y=h?r:d?r[e]:(r[e]||{})[a];for(u in h&&(n=e),n)(l=!f&&y&&u in y)&&u in v||(c=l?y[u]:n[u],v[u]=h&&"function"!=typeof y[u]?n[u]:g&&l?o(c,r):m&&y[u]==c?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[a]=t[a],e}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((v[a]||(v[a]={}))[u]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,t.exports=s},function(t,e){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(23);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=n(25)},function(t,e,n){var r=n(9),i=n(26);t.exports=n(18)?function(t,e,n){return r.setDesc(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(16),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(9).setDesc,i=n(17),o=n(29)("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,n){var r=n(27)("wks"),i=n(30),o=n(16).Symbol;t.exports=function(t){return r[t]||(r[t]=o&&o[t]||(o||i)("Symbol."+t))}},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(9),i=n(32);t.exports=function(t,e){for(var n,o=i(t),a=r.getKeys(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(32),i=n(9).getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(9);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var i,o=n(t),a=r.isEnum,s=0;o.length>s;)a.call(t,i=o[s++])&&e.push(i);return e}},function(t,e,n){var r=n(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(40);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=!0},function(t,e){},function(t,e,n){t.exports={default:n(44),__esModule:!0}},function(t,e,n){n(45),n(51),t.exports=n(29)("iterator")},function(t,e,n){"use strict";var r=n(46)(!0);n(48)(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(47),i=n(35);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},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,n){"use strict";var r=n(41),i=n(20),o=n(24),a=n(25),s=n(17),u=n(49),l=n(50),c=n(28),f=n(9).getProto,h=n(29)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",g="keys",m="values",v=function(){return this};t.exports=function(t,e,n,y,_,b,x){l(n,e,y);var w,S,A=function(t){if(!d&&t in E)return E[t];switch(t){case g:case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",k=_==m,C=!1,E=t.prototype,P=E[h]||E[p]||_&&E[_],O=P||A(_);if(P){var I=f(O.call(new t));c(I,T,!0),!r&&s(E,p)&&a(I,h,v),k&&P.name!==m&&(C=!0,O=function(){return P.call(this)})}if(r&&!x||!d&&!C&&E[h]||a(E,h,O),u[e]=O,u[T]=v,_)if(w={values:k?O:A(m),keys:b?O:A(g),entries:k?A("entries"):O},x)for(S in w)S in E||o(E,S,w[S]);else i(i.P+i.F*(d||C),e,w);return w}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(9),i=n(26),o=n(28),a={};n(25)(a,n(29)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r.create(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){n(52);var r=n(49);r.NodeList=r.HTMLCollection=r.Array},function(t,e,n){"use strict";var r=n(53),i=n(54),o=n(49),a=n(32);t.exports=n(48)(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)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(56),__esModule:!0}},function(t,e,n){n(51),n(45),t.exports=n(57)},function(t,e,n){var r=n(39),i=n(58);t.exports=n(21).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(59),i=n(29)("iterator"),o=n(49);t.exports=n(21).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(34),i=n(29)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=(e=Object(t))[i])?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){n(62),t.exports=n(21).Object.keys},function(t,e,n){var r=n(63);n(64)("keys",(function(t){return function(e){return t(r(e))}}))},function(t,e,n){var r=n(35);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(20),i=n(21),o=n(19);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){"use strict";var r=n(1).default;e.__esModule=!0;var i=r(n(6));e.default=function(t){t.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;e.__esModule=!0;var i=n(5),o=r(n(6));e.default=function(t){t.registerHelper("if",(function(t,e){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return i.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)})),t.registerHelper("unless",(function(e,n){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},t.exports=e.default},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",(function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o=l.LAST_COMPATIBLE_COMPILER_REVISION&&e<=l.COMPILER_REVISION)){if(e2&&_.push("'"+this.terminals_[m]+"'");w=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:l,expected:_})}}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+f);switch(p[0]){case 1:e.push(f),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),e.push(p[1]),f=null,h?(f=h,h=null):(s=this.lexer.yyleng,o=this.lexer.yytext,a=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[p[1]][1],x.$=n[n.length-v],x._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},c&&(x._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),void 0!==(g=this.performAction.call(x,o,s,a,this.yy,p[1],n,r)))return g;v&&(e=e.slice(0,-1*v*2),n=n.slice(0,-1*v),r=r.slice(0,-1*v)),e.push(this.productions_[p[1]][0]),n.push(x.$),r.push(x._$),y=i[e[e.length-2]][e[e.length-1]],e.push(y);break;case 3:return!0}}return!0}},e={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;ae[0].length)||(e=n,r=a,this.options.flex));a++);return e?((i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,r){function i(t,n){return e.yytext=e.yytext.substring(t,e.yyleng-n+t)}switch(n){case 0:if("\\\\"===e.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function n(){this.yy={}}return t.lexer=e,n.prototype=t,t.Parser=n,new n}();e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;e.__esModule=!0;var i=r(n(88));function o(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function a(t,e,n){void 0===e&&(e=t.length);var r=t[e-1],i=t[e-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function s(t,e,n){void 0===e&&(e=-1);var r=t[e+1],i=t[e+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function u(t,e,n){var r=t[null==e?0:e+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function l(t,e,n){var r=t[null==e?t.length-1:e-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}o.prototype=new i.default,o.prototype.Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=t.body,i=0,o=r.length;i0)throw new i.default("Invalid path: "+r,{loc:n});".."===l&&a++}}return{type:"PathExpression",data:t,depth:a,parts:o,original:r,loc:n}},e.prepareMustache=function(t,e,n,r,i,o){var a=r.charAt(3)||r.charAt(2),s="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:s,strip:i,loc:this.locInfo(o)}},e.prepareRawBlock=function(t,e,n,r){o(t,n);var i={type:"Program",body:e,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},e.prepareBlock=function(t,e,n,r,a,s){r&&r.path&&o(t,r);var u=/\*/.test(t.open);e.blockParams=t.blockParams;var l=void 0,c=void 0;if(n){if(u)throw new i.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),c=n.strip,l=n.program}return a&&(a=l,l=e,e=a),{type:u?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:l,openStrip:t.strip,inverseStrip:c,closeStrip:r&&r.strip,loc:this.locInfo(s)}},e.prepareProgram=function(t,e){if(!e&&t.length){var n=t[0].loc,r=t[t.length-1].loc;n&&r&&(e={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,n,r){return o(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var i=r(n(6));function o(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var n={loc:t.path.loc};throw new i.default(t.path.original+" doesn't match "+e,n)}}},function(t,e,n){"use strict";var r=n(74).default,i=n(1).default;e.__esModule=!0,e.Compiler=l,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new o.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0),e.compat&&(e.useDepths=!0);var r=n.parse(t,e),i=(new n.Compiler).compile(r,e);return(new n.JavaScriptCompiler).compile(i,e)},e.compile=function(t,e,n){if(void 0===e&&(e={}),null==t||"string"!=typeof t&&"Program"!==t.type)throw new o.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=a.extend({},e))||(e.data=!0),e.compat&&(e.useDepths=!0);var r=void 0;function i(){var r=n.parse(t,e),i=(new n.Compiler).compile(r,e),o=(new n.JavaScriptCompiler).compile(i,e,void 0,!0);return n.template(o)}function s(t,e){return r||(r=i()),r.call(this,t,e)}return s._setup=function(t){return r||(r=i()),r._setup(t)},s._child=function(t,e,n,o){return r||(r=i()),r._child(t,e,n,o)},s};var o=i(n(6)),a=n(5),s=i(n(84)),u=[].slice;function l(){}function c(t,e){if(t===e)return!0;if(a.isArray(t)&&a.isArray(e)&&t.length===e.length){for(var n=0;n1)throw new o.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i="SubExpression"===t.name.type;i&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){f(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var r=t.path,i=r.parts[0],o=null!=e||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,o)},simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var r=this.setupFullMustacheParams(t,e,n),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new o.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,s.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=s.default.helpers.scopedId(t),r=!t.depth&&!n&&this.blockParamIndex(e);r?this.opcode("lookupBlockParam",r,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,r=e.length;for(this.opcode("pushHash");n=0)return[e,i]}}}},function(t,e,n){"use strict";var r=n(60).default,i=n(1).default;e.__esModule=!0;var o=n(4),a=i(n(6)),s=n(5),u=i(n(92));function l(t){this.value=t}function c(){}c.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=o.COMPILER_REVISION;return[t,o.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return s.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,r){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,o=void 0,s=void 0,u=void 0,l=void 0;for(u=0,l=i.length;u0&&(n+=", "+i.join(", "));var o=0;r(this.aliases).forEach((function(t){var r=e.aliases[t];r.children&&r.referenceCount>1&&(n+=", alias"+ ++o+"="+t,r.children[0]="alias"+o)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var s=this.mergeSource(n);return t?(a.push(s),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",s,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,o=void 0,a=void 0;return this.source.each((function(t){t.appendToBuffer?(o?t.prepend(" + "):o=t,a=t):(o&&(i?o.prepend("buffer += "):r=!0,a.add(";"),o=a=void 0),i=!0,e||(n=!1))})),n?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(r?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var n=this.topStack();e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack((function(t){return[" != null ? ",t,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[i++])),this.resolvePath("context",t,i,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(t,e,n,r,i){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,n,r,i){var o=e.popStack(),a=n.length;for(t&&a--;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;e{t.exports=n(261).default},9404:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:G(t)}function r(t){return s(t)?t:z(t)}function i(t){return u(t)?t:U(t)}function o(t){return a(t)&&!l(t)?t:W(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[h])}function u(t){return!(!t||!t[d])}function l(t){return s(t)||u(t)}function c(t){return!(!t||!t[p])}e(r,n),e(i,n),e(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=l,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",g="delete",m=32,v=31,y={},_={value:!1},b={value:!1};function x(t){return t.value=!1,t}function w(t){t&&(t.value=!0)}function S(){}function A(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?T(t)+e:e}function C(){return!0}function E(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function P(t,e){return I(t,e,0)}function O(t,e){return I(t,e,e)}function I(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var M="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",R=M||L;function N(t){this.next=t}function D(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function j(){return{value:void 0,done:!0}}function $(t){return!!V(t)}function F(t){return t&&"function"==typeof t.next}function B(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(M&&t[M]||t[L]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function G(t){return null==t?nt():a(t)?t.toSeq():function(t){var e=ot(t)||"object"==typeof t&&new Q(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function z(t){return null==t?nt().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():rt(t)}function U(t){return null==t?nt():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():it(t)}function W(t){return(null==t?nt():a(t)?s(t)?t.entrySeq():t:it(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=0,N.VALUES=1,N.ENTRIES=2,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[R]=function(){return this},e(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(t,e){return at(this,t,e,!0)},G.prototype.__iterator=function(t,e){return st(this,t,e,!0)},e(z,G),z.prototype.toKeyedSeq=function(){return this},e(U,G),U.of=function(){return U(arguments)},U.prototype.toIndexedSeq=function(){return this},U.prototype.toString=function(){return this.__toString("Seq [","]")},U.prototype.__iterate=function(t,e){return at(this,t,e,!1)},U.prototype.__iterator=function(t,e){return st(this,t,e,!1)},e(W,G),W.of=function(){return W(arguments)},W.prototype.toSetSeq=function(){return this},G.isSeq=et,G.Keyed=z,G.Set=W,G.Indexed=U;var q,Z,K,Y="@@__IMMUTABLE_SEQ__@@";function X(t){this._array=t,this.size=t.length}function Q(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function J(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[Y])}function nt(){return q||(q=new X([]))}function rt(t){var e=Array.isArray(t)?new X(t).fromEntrySeq():F(t)?new tt(t).fromEntrySeq():$(t)?new J(t).fromEntrySeq():"object"==typeof t?new Q(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function it(t){var e=ot(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ot(t){return H(t)?new X(t):F(t)?new tt(t):$(t)?new J(t):void 0}function at(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function st(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new N((function(){var t=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:D(e,r?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,n)}function ut(t,e){return e?lt(e,t,"",{"":t}):ct(t)}function lt(t,e,n,r){return Array.isArray(e)?t.call(r,n,U(e).map((function(n,r){return lt(t,n,r,e)}))):ft(e)?t.call(r,n,z(e).map((function(n,r){return lt(t,n,r,e)}))):e}function ct(t){return Array.isArray(t)?U(t).map(ct).toList():ft(t)?z(t).map(ct).toMap():t}function ft(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ht(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function dt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||u(t)!==u(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!l(t);if(c(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&ht(i[1],t)&&(n||ht(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var f=!0,h=e.__iterate((function(e,r){if(n?!t.has(e):i?!ht(e,t.get(r,y)):!ht(t.get(r,y),e))return f=!1,!1}));return f&&t.size===h}function pt(t,e){if(!(this instanceof pt))return new pt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Z)return Z;Z=this}}function gt(t,e){if(!t)throw new Error(e)}function mt(t,e,n){if(!(this instanceof mt))return new mt(t,e,n);if(gt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),er?{value:void 0,done:!0}:D(t,i,n[e?r-i++:i++])}))},e(Q,z),Q.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},Q.prototype.has=function(t){return this._object.hasOwnProperty(t)},Q.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(!1===t(n[a],a,this))return o+1}return o},Q.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new N((function(){var a=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:D(t,a,n[a])}))},Q.prototype[p]=!0,e(J,U),J.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=B(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},J.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=B(this._iterable);if(!F(n))return new N(j);var r=0;return new N((function(){var e=n.next();return e.done?e:D(t,r++,e.value)}))},e(tt,U),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return D(t,i,r[i++])}))},e(pt,U),pt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pt.prototype.get=function(t,e){return this.has(t)?this._value:e},pt.prototype.includes=function(t){return ht(this._value,t)},pt.prototype.slice=function(t,e){var n=this.size;return E(t,e,n)?this:new pt(this._value,O(e,n)-P(t,n))},pt.prototype.reverse=function(){return this},pt.prototype.indexOf=function(t){return ht(this._value,t)?0:-1},pt.prototype.lastIndexOf=function(t){return ht(this._value,t)?this.size:-1},pt.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?{value:void 0,done:!0}:D(t,o++,a)}))},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:dt(this,t)},e(vt,n),e(yt,vt),e(_t,vt),e(bt,vt),vt.Keyed=yt,vt.Indexed=_t,vt.Set=bt;var xt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function wt(t){return t>>>1&1073741824|3221225471&t}function St(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return wt(n)}if("string"===e)return t.length>It?function(t){var e=Rt[t];return void 0===e&&(e=At(t),Lt===Mt&&(Lt=0,Rt={}),Lt++,Rt[t]=e),e}(t):At(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Et&&void 0!==(e=Ct.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!kt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Pt,1073741824&Pt&&(Pt=0),Et)Ct.set(t,e);else{if(void 0!==Tt&&!1===Tt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(kt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"==typeof t.toString)return At(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function At(t){for(var e=0,n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},Dt.prototype.toString=function(){return this.__toString("Map {","}")},Dt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Dt.prototype.set=function(t,e){return Xt(this,t,e)},Dt.prototype.setIn=function(t,e){return this.updateIn(t,y,(function(){return e}))},Dt.prototype.remove=function(t){return Xt(this,t,y)},Dt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return y}))},Dt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Dt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=oe(this,en(t),e,n);return r===y?void 0:r},Dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Yt()},Dt.prototype.merge=function(){return ee(this,void 0,arguments)},Dt.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},Dt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Yt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},Dt.prototype.mergeDeep=function(){return ee(this,ne,arguments)},Dt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ee(this,re(e),n)},Dt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Yt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},Dt.prototype.sort=function(t){return Ee(ze(this,t))},Dt.prototype.sortBy=function(t,e){return Ee(ze(this,e,t))},Dt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Dt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Dt.prototype.asImmutable=function(){return this.__ensureOwner()},Dt.prototype.wasAltered=function(){return this.__altered},Dt.prototype.__iterator=function(t,e){return new Wt(this,t,e)},Dt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},Dt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Kt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Dt.isMap=jt;var $t,Ft="@@__IMMUTABLE_MAP__@@",Bt=Dt.prototype;function Vt(t,e){this.ownerID=t,this.entries=e}function Ht(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Gt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function zt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Ut(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Wt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Zt(t._root)}function qt(t,e){return D(t,e[0],e[1])}function Zt(t,e){return{node:t,index:0,__prev:e}}function Kt(t,e,n,r){var i=Object.create(Bt);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Yt(){return $t||($t=Kt(0))}function Xt(t,e,n){var r,i;if(t._root){var o=x(_),a=x(b);if(r=Qt(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===y?-1:1:0)}else{if(n===y)return t;i=1,r=new Vt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Kt(i,r):Yt()}function Qt(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===y?t:(w(s),w(a),new Ut(e,r,[i,o]))}function Jt(t){return t.constructor===Ut||t.constructor===zt}function te(t,e,n,r,i){if(t.keyHash===r)return new zt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v;return new Ht(e,1<>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function se(t,e,n,r){var i=r?t:A(t);return i[e]=n,i}Bt[Ft]=!0,Bt[g]=Bt.remove,Bt.removeIn=Bt.deleteIn,Vt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=ue)return function(t,e,n,r){t||(t=new S);for(var i=new Ut(t,St(n),[n,r]),o=0;o>>t)&v),o=this.bitmap;return o&i?this.nodes[ae(o&i-1)].get(t+5,e,n,r):r},Ht.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&v,u=1<=le)return function(t,e,n,r,i){for(var o=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new Gt(t,o+1,a)}(t,h,l,s,p);if(c&&!p&&2===h.length&&Jt(h[1^f]))return h[1^f];if(c&&p&&1===h.length&&Jt(p))return p;var g=t&&t===this.ownerID,_=c?p?l:l^u:l|u,b=c?p?se(h,f,p,g):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;a>>t)&v,o=this.nodes[i];return o?o.get(t+5,e,n,r):r},Gt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&v,u=i===y,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Qt(c,t,e+5,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&--h0&&r=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?Te(t,e).set(0,n):Te(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o=x(b);return e>=Ce(t._capacity)?r=we(r,t.__ownerID,0,e,n,o):i=we(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):be(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},fe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},fe.prototype.insert=function(t,e){return this.splice(t,0,e)},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):xe()},fe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Te(n,0,e+t.length);for(var r=0;r>>e&v;if(r>=this.array.length)return new ge([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-5,n))===a&&o)return this}if(o&&!i)return this;var s=Se(this,t);if(!o)for(var u=0;u>>e&v;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i===this.array.length-1)return this}var a=Se(this,t);return a.array.splice(i+1),r&&(a.array[i]=r),a};var me,ve,ye={};function _e(t,e){var n=t._origin,r=t._capacity,i=Ce(r),o=t._tail;return a(t._root,t._level,0);function a(t,s,u){return 0===s?function(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>n?0:n-a,l=r-a;return l>m&&(l=m),function(){if(u===l)return ye;var t=e?--l:u++;return s&&s[t]}}(t,u):function(t,i,o){var s,u=t&&t.array,l=o>n?0:n-o>>i,c=1+(r-o>>i);return c>m&&(c=m),function(){for(;;){if(s){var t=s();if(t!==ye)return t;s=null}if(l===c)return ye;var n=e?--c:l++;s=a(u&&u[n],i-5,o+(n<>>n&v,u=t&&s0){var l=t&&t.array[s],c=we(l,e,n-5,r,i,o);return c===l?t:((a=Se(t,e)).array[s]=c,a)}return u&&t.array[s]===i?t:(w(o),a=Se(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Se(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function Ae(t,e){if(e>=Ce(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&v],r-=5;return n}}function Te(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new S,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new ge(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Ce(o),h=Ce(s);h>=1<f?new ge([],r):d;if(d&&h>f&&a5;m-=5){var y=f>>>m&v;g=g.array[y]=Se(g.array[y],r)}g.array[f>>>5&v]=d}if(s=h)a-=h,s-=h,u=5,l=null,p=p&&p.removeBefore(r,0,a);else if(a>i||h>>u&v;if(_!==h>>>u&v)break;_&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&ho&&(o=l.size),a(u)||(l=l.map((function(t){return ut(t)}))),r.push(l)}return o>t.size&&(t=t.setSize(o)),ie(t,e,r)}function Ce(t){return t>>5<<5}function Ee(t){return null==t?Ie():Pe(t)?t:Ie().withMutations((function(e){var n=r(t);Nt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Pe(t){return jt(t)&&c(t)}function Oe(t,e,n,r){var i=Object.create(Ee.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Ie(){return ve||(ve=Oe(Yt(),xe()))}function Me(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===y){if(!u)return t;a.size>=m&&a.size>=2*o.size?(r=(i=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Oe(r,i)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Re(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function je(t){var e=Qe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Je,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new N((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function $e(t,e,n){var r=Qe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,y);return o===y?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate((function(t,i,a){return!1!==r(e.call(n,t,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(2,i);return new N((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return D(r,s,e.call(n,a[1],s,t),i)}))},r}function Fe(t,e){var n=Qe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=je(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Je,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Be(t,e,n,r){var i=Qe(t);return r&&(i.has=function(r){var i=t.get(r,y);return i!==y&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,y);return o!==y&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate((function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(2,o),s=0;return new N((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return D(i,r?l:s++,c,o)}}))},i}function Ve(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),E(e,n,i))return t;var o=P(e,i),a=O(n,i);if(o!=o||a!=a)return Ve(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=Qe(t);return l.size=0===s?s:t.size&&s||void 0,!r&&et(t)&&s>=0&&(l.get=function(e,n){return(e=k(this,e))>=0&&es)return{value:void 0,done:!0};var t=i.next();return r||1===e?t:D(e,u-1,0===e?void 0:t.value[1],t)}))},l}function He(t,e,n,r){var i=Qe(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,l){if(!s||!(s=e.call(n,t,o,l)))return u++,i(t,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),u=!0,l=0;return new N((function(){var t,o,c;do{if((t=s.next()).done)return r||1===i?t:D(i,l++,0===i?void 0:t.value[1],t);var f=t.value;o=f[0],c=f[1],u&&(u=e.call(n,c,o,a))}while(u);return 2===i?t:D(i,o,c,t)}))},i}function Ge(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function t(u,l){var c=this;u.__iterate((function(i,u){return(!e||l0}function qe(t,e,r){var i=Qe(t);return i.size=new X(r).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=n(t),B(i?t.reverse():t)})),a=0,s=!1;return new N((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:D(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function Ze(t,e){return et(t)?e:t.constructor(e)}function Ke(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ye(t){return Nt(t.size),T(t)}function Xe(t){return s(t)?r:u(t)?i:o}function Qe(t){return Object.create((s(t)?z:u(t)?U:W).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function tn(t,e){return t>e?1:t=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Cn(t,e)},wn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Nt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(e,n)},wn.prototype.pop=function(){return this.slice(1)},wn.prototype.unshift=function(){return this.push.apply(this,arguments)},wn.prototype.unshiftAll=function(t){return this.pushAll(t)},wn.prototype.shift=function(){return this.pop.apply(this,arguments)},wn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):En()},wn.prototype.slice=function(t,e){if(E(t,e,this.size))return this;var n=P(t,this.size);if(O(e,this.size)!==this.size)return _t.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Cn(r,i)},wn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},wn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},wn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new N((function(){if(r){var e=r.value;return r=r.next,D(t,n++,e)}return{value:void 0,done:!0}}))},wn.isStack=Sn;var An,Tn="@@__IMMUTABLE_STACK__@@",kn=wn.prototype;function Cn(t,e,n,r){var i=Object.create(kn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function En(){return An||(An=Cn(0))}function Pn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}kn[Tn]=!0,kn.withMutations=Bt.withMutations,kn.asMutable=Bt.asMutable,kn.asImmutable=Bt.asImmutable,kn.wasAltered=Bt.wasAltered,n.Iterator=N,Pn(n,{toArray:function(){Nt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Re(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return Dt(this.toKeyedSeq())},toObject:function(){Nt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return Ee(this.toKeyedSeq())},toOrderedSet:function(){return mn(s(this)?this.valueSeq():this)},toSet:function(){return un(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return wn(s(this)?this.valueSeq():this)},toList:function(){return fe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Ze(this,function(t,e){var n=s(t),i=[t].concat(e).map((function(t){return a(t)?n&&(t=r(t)):t=n?rt(t):it(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||u(t)&&u(o))return o}var l=new X(i);return n?l=l.toKeyedSeq():u(t)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),l}(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return ht(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Nt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1})),n},filter:function(t,e){return Ze(this,Be(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Nt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Nt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Ze(this,$e(this,t,e))},reduce:function(t,e,n){var r,i;return Nt(this.size),arguments.length<2?i=!0:r=e,this.__iterate((function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ze(this,Fe(this,!0))},slice:function(t,e){return Ze(this,Ve(this,t,e,!0))},some:function(t,e){return!this.every(Rn(t),e)},sort:function(t){return Ze(this,ze(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Dt().asMutable();return t.__iterate((function(i,o){r.update(e.call(n,i,o,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return dt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new X(t._cache);var e=t.toSeq().map(Ln).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Rn(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(C)},flatMap:function(t,e){return Ze(this,function(t,e,n){var r=Xe(t);return t.toSeq().map((function(i,o){return r(e.call(n,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ze(this,Ge(this,t,!0))},fromEntrySeq:function(){return new De(this)},get:function(t,e){return this.find((function(e,n){return ht(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,i=en(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,y):y)===y)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(c(t)?Ee():Dt()).asMutable();t.__iterate((function(o,a){i.update(e.call(n,o,a,t),(function(t){return(t=t||[]).push(r?[a,o]:o),t}))}));var o=Xe(t);return i.map((function(e){return Ze(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,y)!==y},hasIn:function(t){return this.getIn(t,y)!==y},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ht(e,t)}))},keySeq:function(){return this.toSeq().map(Mn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ue(this,t)},maxBy:function(t,e){return Ue(this,e,t)},min:function(t){return Ue(this,t?Nn(t):$n)},minBy:function(t,e){return Ue(this,e?Nn(e):$n,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ze(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ze(this,He(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Rn(t),e)},sortBy:function(t,e){return Ze(this,ze(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ze(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ze(this,function(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate((function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(2,i),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var i=t.value,u=i[0],l=i[1];return e.call(n,l,u,o)?2===r?t:D(r,u,l,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Rn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),n=s(t),r=e?1:0;return function(t,e){return e=xt(e,3432918353),e=xt(e<<15|e>>>-15,461845907),e=xt(e<<13|e>>>-13,5),e=xt((e=e+3864292196^t)^e>>>16,2246822507),wt((e=xt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Fn(St(t),St(e))|0}:function(t,e){r=r+Fn(St(t),St(e))|0}:e?function(t){r=31*r+St(t)|0}:function(t){r=r+St(t)|0}),r)}(this))}});var On=n.prototype;On[f]=!0,On[R]=On.values,On.__toJS=On.toArray,On.__toStringMapper=Dn,On.inspect=On.toSource=function(){return this.toString()},On.chain=On.flatMap,On.contains=On.includes,Pn(r,{flip:function(){return Ze(this,je(this))},mapEntries:function(t,e){var n=this,r=0;return Ze(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ze(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var In=r.prototype;function Mn(t,e){return e}function Ln(t,e){return[e,t]}function Rn(t){return function(){return!t.apply(this,arguments)}}function Nn(t){return function(){return-t.apply(this,arguments)}}function Dn(t){return"string"==typeof t?JSON.stringify(t):String(t)}function jn(){return A(arguments)}function $n(t,e){return te?-1:0}function Fn(t,e){return t^e+2654435769+(t<<6)+(t>>2)}return In[h]=!0,In[R]=On.entries,In.__toJS=On.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Dn(t)},Pn(i,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(t,e){return Ze(this,Be(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ze(this,Fe(this,!1))},slice:function(t,e){return Ze(this,Ve(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=P(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ze(this,1===n?r:r.concat(A(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ze(this,Ge(this,t,!1))},get:function(t,e){return(t=k(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=k(this,t))>=0&&(void 0!==this.size?this.size===1/0||t{var r,i,o;i=[n(4692)],void 0===(o="function"==typeof(r=function(t){"use strict";t.fn.serializeJSON=function(e){var n,r,i,o,a,s,u,l,c,f,h,d;return n=t.serializeJSON,r=this,i=n.setupOpts(e),o=r.serializeArray(),n.readCheckboxUncheckedValues(o,i,r),a={},t.each(o,(function(t,e){s=e.name,u=e.value,c=n.extractTypeAndNameWithNoType(s),f=c.nameWithNoType,(h=c.type)||(h=n.attrFromInputWithName(r,s,"data-value-type")),n.validateType(s,h,i),"skip"!==h&&(d=n.splitInputNameIntoKeysArray(f),!(l=n.parseValue(u,s,h,i))&&n.shouldSkipFalsy(r,s,f,h,i)||n.deepSet(a,d,l,i))})),a},t.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,skipFalsyValuesForTypes:[],skipFalsyValuesForFields:[],customTypes:{},defaultTypes:{string:function(t){return String(t)},number:function(t){return Number(t)},boolean:function(t){return-1===["false","null","undefined","","0"].indexOf(t)},null:function(t){return-1===["false","null","undefined","","0"].indexOf(t)?t:null},array:function(t){return JSON.parse(t)},object:function(t){return JSON.parse(t)},auto:function(e){return t.serializeJSON.parseValue(e,null,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})},skip:null},useIntKeysAsArrayIndex:!1},setupOpts:function(e){var n,r,i,o,a,s;for(n in s=t.serializeJSON,null==e&&(e={}),i=s.defaultOptions||{},r=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","skipFalsyValuesForTypes","skipFalsyValuesForFields","customTypes","defaultTypes","useIntKeysAsArrayIndex"],e)if(-1===r.indexOf(n))throw new Error("serializeJSON ERROR: invalid option '"+n+"'. Please use one of "+r.join(", "));return a=(o=function(t){return!1!==e[t]&&""!==e[t]&&(e[t]||i[t])})("parseAll"),{checkboxUncheckedValue:o("checkboxUncheckedValue"),parseNumbers:a||o("parseNumbers"),parseBooleans:a||o("parseBooleans"),parseNulls:a||o("parseNulls"),parseWithFunction:o("parseWithFunction"),skipFalsyValuesForTypes:o("skipFalsyValuesForTypes"),skipFalsyValuesForFields:o("skipFalsyValuesForFields"),typeFunctions:t.extend({},o("defaultTypes"),o("customTypes")),useIntKeysAsArrayIndex:o("useIntKeysAsArrayIndex")}},parseValue:function(e,n,r,i){var o,a;return o=t.serializeJSON,a=e,i.typeFunctions&&r&&i.typeFunctions[r]?a=i.typeFunctions[r](e):i.parseNumbers&&o.isNumeric(e)?a=Number(e):!i.parseBooleans||"true"!==e&&"false"!==e?i.parseNulls&&"null"==e?a=null:i.typeFunctions&&i.typeFunctions.string&&(a=i.typeFunctions.string(e)):a="true"===e,i.parseWithFunction&&!r&&(a=i.parseWithFunction(a,n)),a},isObject:function(t){return t===Object(t)},isUndefined:function(t){return void 0===t},isValidArrayIndex:function(t){return/^[0-9]+$/.test(String(t))},isNumeric:function(t){return t-parseFloat(t)>=0},optionKeys:function(t){if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)n.push(e);return n},readCheckboxUncheckedValues:function(e,n,r){var i,o,a;null==n&&(n={}),t.serializeJSON,i="input[type=checkbox][name]:not(:checked):not([disabled])",r.find(i).add(r.filter(i)).each((function(r,i){if(o=t(i),null==(a=o.attr("data-unchecked-value"))&&(a=n.checkboxUncheckedValue),null!=a){if(i.name&&-1!==i.name.indexOf("[]["))throw new Error("serializeJSON ERROR: checkbox unchecked values are not supported on nested arrays of objects like '"+i.name+"'. See https://github.com/marioizquierdo/jquery.serializeJSON/issues/67");e.push({name:i.name,value:a})}}))},extractTypeAndNameWithNoType:function(t){var e;return(e=t.match(/(.*):([^:]+)$/))?{nameWithNoType:e[1],type:e[2]}:{nameWithNoType:t,type:null}},shouldSkipFalsy:function(e,n,r,i,o){var a=t.serializeJSON.attrFromInputWithName(e,n,"data-skip-falsy");if(null!=a)return"false"!==a;var s=o.skipFalsyValuesForFields;if(s&&(-1!==s.indexOf(r)||-1!==s.indexOf(n)))return!0;var u=o.skipFalsyValuesForTypes;return null==i&&(i="string"),!(!u||-1===u.indexOf(i))},attrFromInputWithName:function(t,e,n){var r;return r='[name="'+e.replace(/(:|\.|\[|\]|\s)/g,"\\$1")+'"]',t.find(r).add(t.filter(r)).attr(n)},validateType:function(e,n,r){var i,o;if(i=(o=t.serializeJSON).optionKeys(r?r.typeFunctions:o.defaultOptions.defaultTypes),n&&-1===i.indexOf(n))throw new Error("serializeJSON ERROR: Invalid type "+n+" found in input name '"+e+"', please use one of "+i.join(", "));return!0},splitInputNameIntoKeysArray:function(e){var n;return t.serializeJSON,n=e.split("["),""===(n=t.map(n,(function(t){return t.replace(/\]/g,"")})))[0]&&n.shift(),n},deepSet:function(e,n,r,i){var o,a,s,u,l,c;if(null==i&&(i={}),(c=t.serializeJSON).isUndefined(e))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!n||0===n.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");o=n[0],1===n.length?""===o?e.push(r):e[o]=r:(a=n[1],""===o&&(l=e[u=e.length-1],o=c.isObject(l)&&(c.isUndefined(l[a])||n.length>2)?u:u+1),""===a||i.useIntKeysAsArrayIndex&&c.isValidArrayIndex(a)?!c.isUndefined(e[o])&&t.isArray(e[o])||(e[o]=[]):!c.isUndefined(e[o])&&c.isObject(e[o])||(e[o]={}),s=n.slice(1),c.deepSet(e[o],s,r,i))}}})?r.apply(e,i):r)||(t.exports=o)},4692:function(t,e){var n;!function(e,n){"use strict";"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(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},h=f.toString,d=f.hasOwnProperty,p=d.toString,g=p.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},_=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,o=(n=n||_).createElement("script");if(o.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var S="3.7.1",A=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:S,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+I+")"+I+"*"),V=new RegExp(I+"|>"),H=new RegExp(j),G=new RegExp("^"+L+"$"),z={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),Y=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){ut()},Q=ht((function(t){return!0===t.disabled&&C(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(N.childNodes),N.childNodes),o[N.childNodes.length].nodeType}catch(t){g={apply:function(t,e){D.apply(t,s.call(e))},call:function(t){D.apply(t,s.call(arguments,1))}}}function J(t,e,n,r){var i,o,a,s,l,c,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ut(e),e=e||u,f)){if(11!==y&&(l=q.exec(t)))if(i=l[1]){if(9===y){if(!(a=e.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&J.contains(e,a)&&a.id===i)return g.call(n,a),n}else{if(l[2])return g.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(i)),n}if(!(S[t+" "]||h&&h.test(t))){if(d=t,p=e,1===y&&(V.test(t)||B.test(t))){for((p=Z.test(t)&&st(e.parentNode)||e)==e&&m.scope||((s=e.getAttribute("id"))?s=T.escapeSelector(s):e.setAttribute("id",s=v)),o=(c=ct(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+ft(c[o]);d=c.join(",")}try{return g.apply(n,p.querySelectorAll(d)),n}catch(e){S(t,!0)}finally{s===v&&e.removeAttribute("id")}}}return yt(t.replace(M,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[v]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((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 st(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var n,r=t?t.ownerDocument||t:N;return r!=u&&9===r.nodeType&&r.documentElement?(l=(u=r).documentElement,f=!T.isXMLDoc(u),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&N!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=nt((function(t){return l.appendChild(t).id=T.expando,!u.getElementsByName||!u.getElementsByName(T.expando).length})),m.disconnectedMatch=nt((function(t){return p.call(t,"*")})),m.scope=nt((function(){return u.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(K,Y);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(K,Y);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&f)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;l.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||h.push("\\["+I+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),A=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==N&&J.contains(N,t)?-1:e===u||e.ownerDocument==N&&J.contains(N,e)?1:i?c.call(i,t)-c.call(i,e):0:4&n?-1:1)},u):u}for(t in J.matches=function(t,e){return J(t,null,null,e)},J.matchesSelector=function(t,e){if(ut(t),f&&!S[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return J(e,u,null,[t]).length>0},J.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),T.contains(t,e)},J.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.call(e.attrHandle,n.toLowerCase())?r(t,n,!f):void 0;return void 0!==i?i:t.getAttribute(n)},J.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(t,0),P.call(t,A),a){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)O.call(t,n[r],1)}return i=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:z,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(K,Y),t[3]=(t[3]||t[4]||t[5]||"").replace(K,Y),"~="===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]||J.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]&&J.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&H.test(n)&&(e=ct(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(K,Y).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+I+")"+t+"("+I+"|$)"))&&b(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=J.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,d,p=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),_=!u&&!s,b=!1;if(g){if(o){for(;p;){for(f=e;f=f[p];)if(s?C(f,m):1===f.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&_){for(b=(h=(l=(c=g[v]||(g[v]={}))[t]||[])[0]===y&&l[1])&&l[2],f=h&&g.childNodes[h];f=++h&&f&&f[p]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[y,h,b];break}}else if(_&&(b=h=(l=(c=e[v]||(e[v]={}))[t]||[])[0]===y&&l[1]),!1===b)for(;(f=++h&&f&&f[p]||(b=h=0)||d.pop())&&(!(s?C(f,m):1===f.nodeType)||!++b||(_&&((c=f[v]||(f[v]={}))[t]=[y,b]),f!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||J.error("unsupported pseudo: "+t);return i[v]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,o=i(t,n),a=o.length;a--;)t[r=c.call(t,o[a])]=!(e[r]=o[a])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=vt(t.replace(M,"$1"));return r[v]?et((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return J(t,e).length>0}})),contains:et((function(t){return t=t.replace(K,Y),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return G.test(t||"")||J.error("unsupported lang: "+t),t=t.replace(K,Y).toLowerCase(),function(e){var n;do{if(n=f?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:at((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s-1&&(o[l]=!(a[l]=h))}}else d=pt(d===a?d.splice(v,d.length):d),i?i(null,a,d,u):g.apply(a,d)}))}function mt(t){for(var r,i,o,a=t.length,s=e.relative[t[0].type],u=s||e.relative[" "],l=s?1:0,f=ht((function(t){return t===r}),u,!0),h=ht((function(t){return c.call(r,t)>-1}),u,!0),d=[function(t,e,i){var o=!s&&(i||e!=n)||((r=e).nodeType?f(t,e,i):h(t,e,i));return r=null,o}];l1&&dt(d),l>1&&ft(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(M,"$1"),i,l0,o=t.length>0,a=function(a,s,l,c,h){var d,p,m,v=0,_="0",b=a&&[],x=[],w=n,S=a||o&&e.find.TAG("*",h),A=y+=null==w?1:Math.random()||.1,k=S.length;for(h&&(n=s==u||s||h);_!==k&&null!=(d=S[_]);_++){if(o&&d){for(p=0,s||d.ownerDocument==u||(ut(d),l=!f);m=t[p++];)if(m(d,s||u,l)){g.call(c,d);break}h&&(y=A)}i&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=_,i&&_!==v){for(p=0;m=r[p++];)m(b,x,s,l);if(a){if(v>0)for(;_--;)b[_]||x[_]||(x[_]=E.call(c));x=pt(x)}g.apply(c,x),h&&!a&&x.length>0&&v+r.length>1&&T.uniqueSort(c)}return h&&(y=A,n=w),b};return i?et(a):a}(a,o)),s.selector=t}return s}function yt(t,n,r,i){var o,a,s,u,l,c="function"==typeof t&&t,h=!i&&ct(t=c.selector||t);if(r=r||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&f&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(K,Y),n)||[])[0]))return r;c&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=z.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[u=s.type]);)if((l=e.find[u])&&(i=l(s.matches[0].replace(K,Y),Z.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=i.length&&ft(a)))return g.apply(r,i),r;break}}return(c||vt(t,h))(i,n,!f,r,!n||Z.test(t)&&st(n.parentNode)||n),r}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,m.sortStable=v.split("").sort(A).join("")===v,ut(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),T.find=J,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,J.compile=vt,J.select=yt,J.setDocument=ut,J.tokenize=ct,J.escape=T.escapeSelector,J.getText=T.text,J.isXML=T.isXMLDoc,J.selectors=T.expr,J.support=T.support,J.uniqueSort=T.uniqueSort}();var j=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},$=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},F=T.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function V(t,e,n){return v(e)?T.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return c.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(V(this,t||[],!1))},not:function(t){return this.pushStack(V(this,t||[],!0))},is:function(t){return!!V(this,"string"==typeof t&&F.test(t)?T(t):t||[],!1).length}});var H,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:G.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),B.test(r[1])&&T.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=_.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,H=T(_);var z=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(T(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,n){return j(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,n){return j(t,"nextSibling",n)},prevUntil:function(t,e,n){return j(t,"previousSibling",n)},siblings:function(t){return $((t.parentNode||{}).firstChild,t)},children:function(t){return $(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,r){var i=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(U[t]||T.uniqueSort(i),z.test(t)&&i.reverse()),this.pushStack(i)}}));var q=/[^\x20\t\r\n\f]+/g;function Z(t){return t}function K(t){throw t}function Y(t,e,n,r){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(q)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?T.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||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function a(t,e,n,i){return function(){var s=this,u=arguments,l=function(){var r,l;if(!(t=o&&(n!==K&&(s=void 0,u=[r]),e.rejectWith(s,u))}};t?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),r.setTimeout(c))}}return T.Deferred((function(r){e[0][3].add(a(0,r,v(i)?i:Z,r.notifyWith)),e[1][3].add(a(0,r,v(t)?t:Z)),e[2][3].add(a(0,r,v(n)?n:K))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(e,(function(t,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=s.call(arguments),o=T.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(Y(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)Y(i[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&X.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var Q=T.Deferred();function J(){_.removeEventListener("DOMContentLoaded",J),r.removeEventListener("load",J),T.ready()}T.fn.ready=function(t){return Q.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Q.resolveWith(_,[T]))}}),T.ready.then=Q.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?r.setTimeout(T.ready):(_.addEventListener("DOMContentLoaded",J),r.addEventListener("load",J));var tt=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===w(n))for(s in i=!0,n)tt(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(T(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=st.get(t,e),n&&(!r||Array.isArray(n)?r=st.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,i=n.shift(),o=T._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:T.Callbacks("once memory").add((function(){st.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;St=_.createDocumentFragment().appendChild(_.createElement("div")),(At=_.createElement("input")).setAttribute("type","radio"),At.setAttribute("checked","checked"),At.setAttribute("name","t"),St.appendChild(At),m.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="",m.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="",m.option=!!St.lastChild;var Et={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function Pt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],n):n}function Ot(t,e){for(var n=0,r=t.length;n",""]);var It=/<|&#?\w+;/;function Mt(t,e,n,r,i){for(var o,a,s,u,l,c,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d-1)i&&i.push(o);else if(l=mt(o),a=Pt(f.appendChild(o),"script"),l&&Ot(a),n)for(c=0;o=a[c++];)Ct.test(o.type||"")&&n.push(o);return f}var Lt=/^([^.]*)(?:\.(.+)|)/;function Rt(){return!0}function Nt(){return!1}function Dt(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Dt(t,s,n,r,e[s],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)),!1===i)i=Nt;else if(!i)return t;return 1===o&&(a=i,i=function(t){return T().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,e,i,r,n)}))}function jt(t,e,n){n?(st.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,r=st.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=s.call(arguments),st.set(this,e,r),this[e](),n=st.get(this,e),st.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(st.set(this,e,T.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Rt)}})):void 0===st.get(t,e)&&T.event.add(t,e,Rt)}T.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,m=st.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(gt,i),n.guid||(n.guid=T.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(q)||[""]).length;l--;)d=g=(s=Lt.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),T.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,m=st.hasData(t)&&st.get(t);if(m&&(u=m.events)){for(l=(e=(e||"").match(q)||[""]).length;l--;)if(d=g=(s=Lt.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},h=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||T.removeEvent(t,d,m.handle),delete u[d])}else for(d in u)T.event.remove(t,d+e[l],n,r,!0);T.isEmptyObject(u)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=T.event.fix(t),l=(st.get(this,"events")||Object.create(null))[u.type]||[],c=T.event.special[u.type]||{};for(s[0]=u,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:T.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\s*$/g;function Vt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Gt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,r,i,o,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(i in st.remove(e,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof p&&!m.checkClone&&Ft.test(p))return t.each((function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),Wt(o,e,n,r)}));if(h&&(o=(i=Mt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=T.map(Pt(i,"script"),Ht)).length;f0&&Ot(a,!u&&Pt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=T.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[st.expando]){if(e.events)for(r in e.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[st.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),T.fn.extend({detach:function(t){return qt(this,t,!0)},remove:function(t){return qt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.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 Wt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Vt(this,t).appendChild(t)}))},prepend:function(){return Wt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Vt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Wt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Wt(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&&(T.cleanData(Pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(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)&&!Et[(kt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u+l}function ce(t,e,n){var r=Yt(t),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,a=Jt(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(Zt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+le(t,e,n||(i?"border":"content"),o,r,a)+"px"}function fe(t,e,n,r,i){return new fe.prototype.init(t,e,n,r,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Jt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=it(e),u=Kt.test(e),l=t.style;if(u||(e=ie(s)),a=T.cssHooks[e]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"==(o=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=_t(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=it(e);return Kt.test(e)||(e=ie(s)),(a=T.cssHooks[e]||T.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Jt(t,e,r)),"normal"===i&&e in se&&(i=se[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!oe.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,r):Xt(t,ae,(function(){return ce(t,e,r)}))},set:function(t,n,r){var i,o=Yt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,o),u=r?le(t,e,r,s,o):0;return s&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-le(t,e,"border",!1,o)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),ue(0,n,u)}}})),T.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Jt(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=ue)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Yt(t),i=e.length;a1)}}),T.Tween=fe,fe.prototype={constructor:fe,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=fe.propHooks[this.prop];return t&&t.get?t.get(this):fe.propHooks._default.get(this)},run:function(t){var e,n=fe.propHooks[this.prop];return this.options.duration?this.pos=e=T.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):fe.propHooks._default.set(this),this}},fe.prototype.init.prototype=fe.prototype,fe.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=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},fe.propHooks.scrollTop=fe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=fe.prototype.init,T.fx.step={};var he,de,pe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){de&&(!1===_.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(me):r.setTimeout(me,T.fx.interval),T.fx.tick())}function ve(){return r.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function _e(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.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:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(q);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=we[e]||T.find.attr;we[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=we[a],we[a]=i,i=null!=n(t,e,r)?a:null,we[a]=o),i}}));var Se=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function Te(t){return(t.match(q)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(q)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.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=T.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.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)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each((function(e){T(this).addClass(t.call(this,e,ke(this)))})):(e=Ce(t)).length?this.each((function(){if(r=ke(this),n=1===this.nodeType&&" "+Te(r)+" "){for(o=0;o-1;)n=n.replace(" "+i+" "," ");a=Te(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,ke(this),e),e)})):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each((function(){if(s)for(o=T(this),i=0;i-1)return!0;return!1}});var Ee=/\r/g;T.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ee,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},m.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Pe=r.location,Oe={guid:Date.now()},Ie=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Me=/^(?:focusinfocus|focusoutblur)$/,Le=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,i){var o,a,s,u,l,c,f,h,p=[n||_],g=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!Me.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),f=T.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(n,e))){if(!i&&!f.noBubble&&!y(n)){for(u=f.delegateType||g,Me.test(u+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||_)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?u:f.bindType||g,(c=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&c.apply(a,e),(c=l&&a[l])&&c.apply&&ot(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!ot(n)||l&&v(n[g])&&!y(n)&&((s=n[l])&&(n[l]=null),T.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Le),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Le),T.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var Re=/\[\]$/,Ne=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function $e(t,e,n,r){var i;if(Array.isArray(e))T.each(e,(function(e,i){n||Re.test(t)?r(t,i):$e(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==w(e))r(t,e);else for(i in e)$e(t+"["+i+"]",e[i],n,r)}T.param=function(t,e){var n,r=[],i=function(t,e){var n=v(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(n in t)$e(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&je.test(this.nodeName)&&!De.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}})):{name:e.name,value:n.replace(Ne,"\r\n")}})).get()}});var Fe=/%20/g,Be=/#.*$/,Ve=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ge=/^(?:GET|HEAD)$/,ze=/^\/\//,Ue={},We={},qe="*/".concat("*"),Ze=_.createElement("a");function Ke(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(q)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ye(t,e,n,r){var i={},o=t===We;function a(s){var u;return i[s]=!0,T.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Xe(t,e){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&T.extend(!0,t,r),t}Ze.href=Pe.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,T.ajaxSettings),e):Xe(T.ajaxSettings,t)},ajaxPrefilter:Ke(Ue),ajaxTransport:Ke(We),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,a,s,u,l,c,f,h,d=T.ajaxSetup({},e),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?T(p):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=d.statusCode||{},b={},x={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=He.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),A(0,e),this}};if(m.promise(S),d.url=((t||d.url||Pe.href)+"").replace(ze,Pe.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(q)||[""],null==d.crossDomain){u=_.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ze.protocol+"//"+Ze.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Ye(Ue,d,e,S),l)return S;for(f in(c=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ge.test(d.type),i=d.url.replace(Be,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Fe,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Ie.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Ve,"$1"),h=(Ie.test(i)?"&":"?")+"_="+Oe.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&S.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&S.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+qe+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,S,d)||l))return S.abort();if(w="abort",v.add(d.complete),S.done(d.success),S.fail(d.error),n=Ye(We,d,e,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,d]),l)return S;d.async&&d.timeout>0&&(s=r.setTimeout((function(){S.abort("timeout")}),d.timeout));try{l=!1,n.send(b,A)}catch(t){if(l)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,e,a,u){var f,h,_,b,x,w=e;l||(l=!0,s&&r.clearTimeout(s),n=void 0,o=u||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(b=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,S,a)),!f&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(d,b,S,f),f?(d.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=S.getResponseHeader("etag"))&&(T.etag[i]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=b.state,h=b.data,f=!(_=b.error))):(_=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",f?m.resolveWith(p,[h,w,S]):m.rejectWith(p,[S,w,_]),S.statusCode(y),y=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,d,f?h:_]),v.fireWith(p,[S,w]),c&&(g.trigger("ajaxComplete",[S,d]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:n,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(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 v(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},Je=T.ajaxSettings.xhr();m.cors=!!Je&&"withCredentials"in Je,m.ajax=Je=!!Je,T.ajaxTransport((function(t){var e,n;if(m.cors||Je&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Qe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.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 T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=T("